-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 11 #3
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3 +/- ##
=========================================
Coverage 23.20% 23.20%
Complexity 76 76
=========================================
Files 51 51
Lines 737 737
Branches 76 76
=========================================
Hits 171 171
Misses 550 550
Partials 16 16 Continue to review full report at Codecov.
|
If the problem is only the dependencies + configuration, we could use a similar approach as jmad-modelpack-fx :) In the if(JavaVersion.current() <= JavaVersion.VERSION_1_8){
compile group: 'org.controlsfx', name: 'controlsfx', version: '8.40.14'
} else {
compile group: 'org.controlsfx', name: 'controlsfx', version: '9.0.0'
} This could solve it temporarily until we have a clear decision for CERN dependency.. |
This sounds good ... We still need a release per java version, right? ... because this 'if' will not work for transitive projects... |
exactly. We would still release for jdk8 for the moment if you need it for a demo. When would you need a released version of this? Anyway, we could also have a separate repository in Bintray (not synchronized with JCenter) and fetch the Java 11 version from there. The release mechanism will be similar but the dependant projects will need to add this specific repo on the build.gradle.. Also this will be likely a new branch... I would say if you can wait a bit would be better, but we should definitely tackle this in case the decision here takes more time then anticipated or we have to stay with jdk8.. |
Mhmm .. I think I would like to get something working soon ... However, probably a new repo is a good idea.... the additional "-11" suffix you do not like too much, I assume? (This is what I am trying right now ...)... (I blocked the mavencentral sync for those for the moment) |
One point is: Even i CERN moves to java 11 .. there might still be some need for java 8 deps... |
I just messed up the releases (by typing 1.1.1 instead of 0.1.1....) ... But the principle seems to work: Having versions like 1.1.1 for java 8, 1.1.1-11 for java 11 .... Not sure what the version: '+' woould take in this case .... Would you think something like this would be ok? (Actually it is borrowed from Fontawesome ;-) ... If it is ok, we could merge the branch ... as the same branch now can deliver both versions (via 2 travis builds) |
Hi Kajetan, don't worry for the release, if it is not synched with maven central I think we could simply remove the artifact from bintray and the release from github :) Anyway, ok if you need it soon then I would tend to use the The two repositories option is a temporary solution in order to have only one version published to the public.. so in your apps you would have to put the other repository to fetch minifx. But it would need some tests since I never did it.. |
@@ -25,6 +33,12 @@ buildscript { | |||
} | |||
} | |||
|
|||
|
|||
plugins { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure, but this could be removed since it is an alternative syntax of apply plugin
that is done in the if jdk >= 11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that in the apply plugin syntax, there is no way to specify a version ... I will check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concerning the -8 version ... I am not sure ... it seems if the two versions exist:
1.1.1
1.1.1-10
then a 'version: "+"' picks up the 1.1.1-10 .... So i wonder if it would do the same with 1.1.1-8 (did not try) ... In the end this concept might not be ideal as there is no well defined order anymore ... so probably your proposal with 2 repos is better ... However, not sure if a temporary solution is good enough ...
I did not find the button to remove the versions.... Can you point me to it?
@@ -25,6 +33,12 @@ buildscript { | |||
} | |||
} | |||
|
|||
|
|||
plugins { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that in the apply plugin syntax, there is no way to specify a version ... I will check
Link shared :) |
|
I searched a bit more and somehow it looks as a proper way to do these different jars would be a 'classifier'. In gradle one would then have to use: compile group: 'org.minifx', name: 'minifx-workbench', version: '1.1.1', classifier: 'jdk11' (I am not sure which one is picked, if the classifier is not given) |
Is this ready to be released? I just took a look at the |
Dear @smac89, from the functionality point of view it is ready to be released. (For the moment it is a struggle with libraries, where some only work with java8, others only with java 11). |
classifier system property now directly queried in deployment-script
I tell you ... again STUUPID me ;-) From the documentation there are 2 main things to keep in mind:
especially because of (2), @andreacalia s remark is totally valid: we should qualify the old version not the new one. ==> Therefore, I propose:
What do you think? |
A first trial release of this can be found in bintray with version 0.1.1 (I know it is lower than 1.1.1). In case you all agree with this solution, I would then:
Concerning the module-info.java, I created a separate issue #4 . I know it is a bit inconsistent to not do it directly, but the thing serves the urgent need for the moment ;-) |
Ciao kajetan! Sorry for the delay.. I think using -jdk8 for the old ones is only valid if then we don't want to maintain backward compatibility with the main release path.. (just aiming for the current lts jdk) What do you think? I think we can try with what you propose kajetan |
Hi again, so Andrea, what would you propose as naming? |
If I'm understanding this naming issue correctly, you guys are looking for a way to release the jars so that you can target different java versions? Have you considered developing something called a multi-release jar? This will allow you to continue with the current naming scheme (i.e. no changes to the name), but still target the correct java version using just one jar. There are many nice articles online on how to do this, but this one seems the most promising: |
I think our problem is not only to release jars for different jdk versions, but that the tranient dependencies have to be different for different jdk versions ... this means that we need different poms for different jdks... Therefore , I think a multi-release jar would not help. Or would it? |
Not needed anymore, as we desided to go to java11 directly. |
Hi guys, this is a branch which makes the thing compatible with java 11 (and has to be released with java 11 as in Fontawesome there are already class files of version 55.
I would need a release of this version for my demo project for gsi ...
I see the options:
Simplest would of course be option 1 .... (I will create a pull request... let me know what you think)