Skip to content

Commit

Permalink
Define gradle wrapper task in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
onewhl committed Jan 19, 2024
1 parent 4f658a9 commit 9550c78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ allprojects {
}
}

tasks {
wrapper {
gradleVersion = project.findProperty("gradleVersion").toString()
}
}

project(":util") {
dependencies {
implementation("junit:junit:4.13")
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
org.gradle.jvmargs = -XX:MaxMetaspaceSize=1g
kotlin.incremental.useClasspathSnapshot = false
kotlin.incremental.useClasspathSnapshot = false
kotlin.code.style = official
gradleVersion = 8.0
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.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 9550c78

Please sign in to comment.