Skip to content

Upgrade to Gradle 5 and Java 10 - #40

Open
klmcc wants to merge 2 commits into
danthegoodman:masterfrom
klmcc:master
Open

Upgrade to Gradle 5 and Java 10#40
klmcc wants to merge 2 commits into
danthegoodman:masterfrom
klmcc:master

Conversation

@klmcc

@klmcc klmcc commented Dec 20, 2018

Copy link
Copy Markdown

Starting with the work done by @vehovsky, I went through and made the changes needed to support Gradle 5. I did this while still using Java 1.8, just to keep things separate. Most of the changes were logical: upgrade gradlew related files, fix things Gradle 5 no longer supported (the closure, instances of left shift). Some of the changes, I'm not sure why they were needed: testng needed an explicit dependency, the test data in CapsuleManifestTest came out in a different (but consistent) order.

Then I looked at Java 10 support. The only problem here was that older versions of Gradle would not work. This was fixed somewhere around version 4.2.X (where X was 2 or 3). So I went into test.sh and cut off every version of Gradle before 4.3. This seemed reasonable to me, but other people may have their reasons for using older versions.

Used with Java 10, there are a number of warnings issued due to Gradle using reflection in a way that is now deprecated. I did not attempt to address those, I think that requires changes to Gradle itself.

Gradle versions before 4.3 do not work
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.

1 participant