-
Notifications
You must be signed in to change notification settings - Fork 315
Upgrade to gradle v8.5 #8886
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
Upgrade to gradle v8.5 #8886
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,7 +27,17 @@ final testTasks = scalaVersions.collect { scalaLibrary -> | |||||
| def (major, minor) = version.split('_').collect(Integer.&valueOf) | ||||||
| final javaConcatenation = major > 2 || minor > 11 // after 2.11 scala uses java.lang.StringBuilder to perform concatenation | ||||||
|
|
||||||
| final configuration = configurations.create("${version}Implementation") | ||||||
| final configuration = configurations.create("${version}Implementation") { | ||||||
| canBeConsumed = false | ||||||
| canBeResolved = false | ||||||
| canBeDeclared = true | ||||||
| } | ||||||
| final classPathConfiguration = configurations.create("${version}CompileClasspath") { | ||||||
| canBeConsumed = false | ||||||
| canBeResolved = true | ||||||
| canBeDeclared = false | ||||||
| extendsFrom(configuration) | ||||||
| } | ||||||
|
|
||||||
| dependencies { handler -> | ||||||
| handler.add(configuration.name, scalaLibrary) | ||||||
|
|
@@ -40,7 +50,7 @@ final testTasks = scalaVersions.collect { scalaLibrary -> | |||||
| final customSourceSet = sourceSets.create("${version}") { | ||||||
| scala { | ||||||
| srcDirs = ['src/test/scala'] | ||||||
| compileClasspath += configuration | ||||||
| compileClasspath += classPathConfiguration | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -49,7 +59,7 @@ final testTasks = scalaVersions.collect { scalaLibrary -> | |||||
| .filter { !it.toString().contains('scala-library') } // exclude default scala-library | ||||||
| .minus(files(sourceSets.test.scala.classesDirectory)) // exclude default /build/classes/scala/test folder | ||||||
| .plus(customSourceSet.output.classesDirs) // add /build/classes/scala/${version} folder | ||||||
| .plus(configuration) // add new scala-library configuration | ||||||
| .plus(classPathConfiguration) // add new scala-library configuration | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: alignment
Suggested change
|
||||||
| systemProperty('uses.java.concat', javaConcatenation) | ||||||
| dependsOn(tasks.named("compile${version.capitalize()}Scala")) | ||||||
| group = 'verification' | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,8 @@ distributionBase=GRADLE_USER_HOME | |
| distributionPath=wrapper/dists | ||
| # Please note that the version specific cache directory in | ||
| # .gitlab-ci.yml needs to match this version. | ||
| distributionSha256Sum=f2b9ed0faf8472cbe469255ae6c86eddb77076c75191741b4a462f33128dd419 | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip | ||
| distributionSha256Sum=c16d517b50dd28b3f5838f0e844b7520b8f1eb610f2f29de7e4e04a1b7c9c79b | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question: Is there a reason to use the |
||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
|
|
||
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.
This change was required for the upgrade, since we couldn't use the same configuration here both to declare dependencies and to retrieve the class path.
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.
Maybe rename this for consistency with the new variable.