-
Notifications
You must be signed in to change notification settings - Fork 145
Target Java 7 #72
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
Target Java 7 #72
Conversation
MIchaelMainer
left a comment
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.
Learned about Java map versus hashmap. Thank you for op!
| * This generated file contains a sample Java Library project to get you started. | ||
| * For more details take a look at the Java Libraries chapter in the Gradle | ||
| * user guide available at https://docs.gradle.org/3.5/userguide/java_library_plugin.html | ||
| * user guide available at https://docs.gradle.org/4.5/userguide/java_library_plugin.html |
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.
4.5 -> 4.5.1
|
|
||
| compile 'com.sun.jersey:jersey-server:1.19.4' | ||
| } | ||
|
|
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.
The publishing section is needed so I can call ./gradlew publishToMavenLocal to generate maven artifacts locally. By all means use the properties ${mavenMajorVersion} etc. By the way in the dev branch gradle.properties should have majorPatchVersion=0-SNAPSHOT. It should only get the release version in master branch or in the tag (if I have your workflow correct).
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.
Since we will not be publishing snapshots or nightlies, we do not need to worry about changing the release version.
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.
Added publishing section back in
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.
Thanks. You might not be publishing snapshots or nightlies but any dev should be able to rebuild the release jar at the specificed version locally from whatever branch or tag without manual modification of build.gradle. For this reason the SNAPSHOT belongs in gradle.properties (or to be specific the publishing section version should always match the gradle.properties version).
build.gradle
Outdated
|
|
||
| artifactId 'microsoft-graph' | ||
|
|
||
| version '${mavenMajorVersion}.${mavenMinorVersion}.SNAPSHOT' |
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.
need the patch version too and should be -SNAPSHOT
|
|
||
| compile 'com.sun.jersey:jersey-server:1.19.4' | ||
| } | ||
|
|
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.
Thanks. You might not be publishing snapshots or nightlies but any dev should be able to rebuild the release jar at the specificed version locally from whatever branch or tag without manual modification of build.gradle. For this reason the SNAPSHOT belongs in gradle.properties (or to be specific the publishing section version should always match the gradle.properties version).
The SDK must support Java versions >= 7 but was not set to compile to a specific version (so compiled at whatever version the developer had on their machine, in this case, Java 8).