Comments (11)
I'm afraid this must be a side-effect of using module-info in Java 9. The only way to get both is probably a multi-version-jar.
from jsr354-ri.
from jsr354-ri.
Are you sure, the API 1.0.2 works with Java 8? I was able to reproduce the problem building Moneta, so the API JAR could be based on the wrong JVM version, too.
The multi-release-jar plugin works perfectly fine but fails in Travis ;-/
from jsr354-ri.
from jsr354-ri.
Then it should be possible to build Moneta with Java 8, but right now it fails like
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.883 s
[INFO] Finished at: 2018-04-15T21:15:29+02:00
[INFO] Final Memory: 24M/252M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project moneta-core: Fatal error compiling: invalid flag: --module-path -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :moneta-core
from jsr354-ri.
from jsr354-ri.
The examples are downstream use cases that should build with Java 8 for now.
from jsr354-ri.
from jsr354-ri.
I could not verify with examples but now that both API and RI should be on JCenter or MavenCentral soon I can try. It felt better for the API because the build did not fail with a "Wrong class version" already.
At the very least when features like "value objects" in Java 11 or above become available, maybe Moneta more than the API seems a viable candidate for multi-version-jars, that is why I gave it a try. If the API can remain smaller for now that's good, but with the fast pace at which new JDK versions are poured onto the market now it seems inevitable we have to use something for multi-version-jars pretty soon.
from jsr354-ri.
If you switch from 1.2 to 1.2.1 then it can be compiled with Java8 again
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<version>1.2.1</version>
from jsr354-ri.
Yes, I'd say we can close this with 1.2.1
from jsr354-ri.
Related Issues (20)
- ScheduledDataLoaderService should load from remote and ignore resource cache HOT 15
- ExchangeRateProvider implementations shouldn't load data within constructor
- Fixed class loader PriorityAwareServiceProvider unable to find all SPI classes. HOT 19
- Fix problems of MonetaryConfig HOT 3
- Document maven coordinates of JARs in Moneta User Guide HOT 2
- MonetaryConversions.getConversion loosing rate date for exchange rate providers HOT 7
- Money.of with scaled BigDecimal leads to unexpected getNumber value HOT 1
- Decomission Java 9 in CI pipeline
- Add Java 17 to CI pipeline
- moneta-core depends on JEE8, making it unusable with JEE9 HOT 9
- Published license identifier is not compliant with the SPDX license list
- Update TestNG to 7.7.1 or above
- Would you mind wrapping up a 1.4.3 release? HOT 23
- Unexpected rounding behaviour using FastMoney HOT 1
- Provider incorrectly marked as available + doesn't fallback to next provider in the chain HOT 7
- Money (USD) calculations not rounding properly HOT 1
- 1.4.3 Release Train HOT 1
- Fix Resource Caching based on ECB findings HOT 1
- Unnecessary logging on INFO level HOT 2
- java.lang.IllegalStateException: AmbiguousConfiguration detected for 'org.javamoney.moneta.Money.defaults.roundingMode' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsr354-ri.