@@ -10,10 +10,8 @@ plugins {
1010
1111group = " io.github.malczuuu.problem4j"
1212
13- /* *
14- * In order to avoid hardcoding snapshot versions, we derive the version from the current Git commit hash. For CI/CD add
15- * -Pversion={releaseVersion} parameter to match Git tag.
16- */
13+ // In order to avoid hardcoding snapshot versions, we derive the version from the current Git commit hash. For CI/CD add
14+ // -Pversion={releaseVersion} parameter to match Git tag.
1715version =
1816 if (version == " unspecified" ) {
1917 getSnapshotVersion(rootProject.rootDir)
@@ -113,6 +111,7 @@ spotless {
113111 target(" **/src/**/*.java" )
114112 forbidWildcardImports()
115113
114+ // NOTE: decided not to upgrade Google Java Format, as versions 1.29+ require running it on Java 21
116115 googleJavaFormat(" 1.28.0" )
117116 endWithNewline()
118117 lineEndings = LineEnding .UNIX
@@ -129,16 +128,14 @@ spotless {
129128 kotlinGradle {
130129 target(" **/*.gradle.kts" )
131130
132- ktlint(" 1.7.1 " ).editorConfigOverride(mapOf (" max_line_length" to " 120" ))
131+ ktlint(" 1.8.0 " ).editorConfigOverride(mapOf (" max_line_length" to " 120" ))
133132 endWithNewline()
134133 lineEndings = LineEnding .UNIX
135134 }
136135}
137136
138- /* *
139- * Usage:
140- * ./gradlew printVersion
141- */
137+ // Usage:
138+ // ./gradlew printVersion
142139tasks.register(" printVersion" ) {
143140 description = " Prints the current project version to the console"
144141 group = " help"
@@ -162,9 +159,7 @@ tasks.withType<Jar>().configureEach {
162159 }
163160}
164161
165- /* *
166- * Disable doclint to avoid errors and warnings on missing JavaDoc comments.
167- */
162+ // Disable doclint to avoid errors and warnings on missing JavaDoc comments.
168163tasks.withType<Javadoc >().configureEach {
169164 (options as StandardJavadocDocletOptions ).apply {
170165 addStringOption(" Xdoclint:none" , " -quiet" )
0 commit comments