Skip to content

Commit

Permalink
Update to Gradle 8.11
Browse files Browse the repository at this point in the history
The release notes are available [here](https://docs.gradle.org/8.11/release-notes.html).
  • Loading branch information
MGaetan89 committed Nov 13, 2024
1 parent 93fb116 commit 6ea0ecc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,16 @@ fun prefetchSdk(
println("Prefetching $coordinates...")

// Prefetch into Maven local repo...
project.exec {
val mvnCommand =
"mvn -q dependency:get -DrepoUrl=https://maven.google.com " +
"-DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version"
project.providers
.exec {
val mvnCommand =
"mvn -q dependency:get -DrepoUrl=https://maven.google.com " +
"-DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version"

commandLine(mvnCommand.split(" "))
}
commandLine(mvnCommand.split(" "))
}
.result
.get()

// Prefetch into Gradle local cache...
val config = configurations.create("sdk$apiLevel")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
13 changes: 8 additions & 5 deletions preinstrumented/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ val instrumentAll by
val outputPath =
layout.buildDirectory.file(androidSdk.preinstrumentedJarFileName).get().asFile.path

javaexec {
classpath = sourceSets.getByName("main").runtimeClasspath
mainClass.set(javaMainClass)
args = listOf(inputPath, outputPath)
}
providers
.javaexec {
classpath = sourceSets.getByName("main").runtimeClasspath
mainClass.set(javaMainClass)
args = listOf(inputPath, outputPath)
}
.result
.get()
}
}
}
Expand Down

0 comments on commit 6ea0ecc

Please sign in to comment.