Skip to content

Commit

Permalink
Added two comments about gradle wrapper version configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bejibx committed Jan 24, 2025
1 parent 55454ec commit c14cb2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ repositories {
mavenCentral()
}

/*
* Configure default gradle wrapper task to validate currently used gradle wrapper version against value set in versions
* catalog. When value differs task will automatically update wrapper configuration file with version from catalog.
* After this gradle wrapper binary will be updated before next task execution.
*/
tasks.named<Wrapper>("wrapper") {
gradleVersion = libs.versions.gradle.wrapper.get()
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[versions]
# https://gradle.org/releases/
# To actually update gradle wrapper binary after updating this value call wrapper task ("gradlew wrapper") and any
# other task aftewards.
gradle-wrapper = "8.1.1"
# https://kotlinlang.org/docs/releases.html
kotlin-language = "2.0.20"
Expand Down

0 comments on commit c14cb2a

Please sign in to comment.