Giter Site home page Giter Site logo

Comments (11)

keilw avatar keilw commented on May 31, 2024

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.

atsticks avatar atsticks commented on May 31, 2024

from jsr354-ri.

keilw avatar keilw commented on May 31, 2024

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.

atsticks avatar atsticks commented on May 31, 2024

from jsr354-ri.

keilw avatar keilw commented on May 31, 2024

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.

atsticks avatar atsticks commented on May 31, 2024

from jsr354-ri.

keilw avatar keilw commented on May 31, 2024

The examples are downstream use cases that should build with Java 8 for now.

from jsr354-ri.

atsticks avatar atsticks commented on May 31, 2024

from jsr354-ri.

keilw avatar keilw commented on May 31, 2024

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.

dominik42 avatar dominik42 commented on May 31, 2024

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.

keilw avatar keilw commented on May 31, 2024

Yes, I'd say we can close this with 1.2.1

from jsr354-ri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.