Skip to content

Conversation

@caitlinrussell
Copy link

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).

  • 4733365 - Compile to Java 7
  • 52bdc57 - Resolve compiler error in JSE 7
  • 5cc3ea7 - remove reference to Java 8+ package

MIchaelMainer
MIchaelMainer previously approved these changes Mar 6, 2018
Copy link
Collaborator

@MIchaelMainer MIchaelMainer left a 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
Copy link
Contributor

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'
}

Copy link
Contributor

@davidmoten davidmoten Mar 6, 2018

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).

Copy link
Author

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.

Copy link
Author

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

Copy link
Contributor

@davidmoten davidmoten Mar 7, 2018

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'
Copy link
Contributor

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'
}

Copy link
Contributor

@davidmoten davidmoten Mar 7, 2018

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).

MIchaelMainer
MIchaelMainer previously approved these changes Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants