-
Notifications
You must be signed in to change notification settings - Fork 12
L2p Service Migration v1.1.1 to v1.2.0 (Java 17)
Philipp Dolif edited this page Oct 5, 2021
·
9 revisions
WIP: This wiki page will be used to document the required changes to update a las2peer service from v1.1.1 to the (not yet released) first version of las2peer that supports Java 17 (v1.2.0).
Most of the services that followed the Gradle migration guide when las2peer v1.1.1 was released should be using Gradle 6.8. To work with Java 17, Gradle needs to be updated to version 7.2.
-
Before updating, you should run
./gradlew build --warning-mode=all
to see the deprecation warnings in the console. These warnings contain useful information helping to update your buildscript to be working with Gradle 7.2. Here are the changes that were necessary in the template-project:
- In the repositories, replace "jcenter()" with "mavenCentral()".
- In the dependencies, replace "compileOnly" with "implementation".
- In the configurations, replace "testCompile.extendsFrom compileOnly" with "testImplementation.extendsFrom implementation".
- In the jar configuration, replace
with
mainClassName = "i5.las2peer.tools.L2pNodeLauncher"
mainClass.set("i5.las2peer.tools.L2pNodeLauncher")
- Replace
with
tasks.withType(Jar) { destinationDir = file("$projectDir/export/jars") }
tasks.withType(Jar) { destinationDirectory = file("$projectDir/export/jars") }
- When using Jacoco, update the toolVersion to 0.8.7.
-
Update Gradle plugins (if any plugins are used).
-
Update the Gradle wrapper by running
gradle wrapper --gradle-version 7.2
- Update the GitHub workflow files (if there are any) to use Java 17.
- Set "java.version" to 17 in gradle.properties file.
TODO