File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,30 +57,30 @@ dependencies {
5757 implementation(project(" :library" )) // for latest sourcecode
5858}
5959
60- configurations.all {
60+ configurations.configureEach {
6161 resolutionStrategy.cacheChangingModulesFor(0 , " seconds" ) // to disable caching of snapshots
6262}
6363
6464checkstyle {
6565 toolVersion = libs.versions.checkstyle.get()
6666}
6767
68- tasks.withType<JavaCompile >().all { // Java compile-time options:
68+ tasks.withType<JavaCompile >().configureEach { // Java compile-time options:
6969 options.compilerArgs.add(" -Xdiags:verbose" )
7070 options.compilerArgs.add(" -Xlint:unchecked" )
7171 options.encoding = " UTF-8"
7272 options.release = 11
7373 options.setDeprecation(true ) // to provide detailed deprecation warnings
7474}
7575
76- tasks.withType<Javadoc >().all { // Javadoc options:
76+ tasks.withType<Javadoc >().configureEach { // Javadoc options:
7777 (options as CoreJavadocOptions ).apply {
7878 }
7979}
8080
8181val enableNativeAccess = JavaVersion .current().isCompatibleWith(JavaVersion .VERSION_17 )
8282
83- tasks.withType<JavaExec >().all { // Java runtime options:
83+ tasks.withType<JavaExec >().configureEach { // Java runtime options:
8484 classpath = sourceSets.main.get().getRuntimeClasspath()
8585 enableAssertions = true
8686 if (enableNativeAccess) {
Original file line number Diff line number Diff line change @@ -53,23 +53,23 @@ dependencies {
5353 }
5454}
5555
56- configurations.all {
56+ configurations.configureEach {
5757 resolutionStrategy.cacheChangingModulesFor(0 , " seconds" ) // to disable caching of snapshots
5858}
5959
6060checkstyle {
6161 toolVersion = libs.versions.checkstyle.get()
6262}
6363
64- tasks.withType<JavaCompile >().all { // Java compile-time options:
64+ tasks.withType<JavaCompile >().configureEach { // Java compile-time options:
6565 options.compilerArgs.add(" -Xdiags:verbose" )
6666 options.compilerArgs.add(" -Xlint:unchecked" )
6767 options.encoding = " UTF-8"
6868 options.release = 11
6969 // options.setDeprecation(true) // to provide detailed deprecation warnings
7070}
7171
72- tasks.withType<Javadoc >().all { // Javadoc runtime options:
72+ tasks.withType<Javadoc >().configureEach { // Javadoc runtime options:
7373 (options as CoreJavadocOptions ).apply {
7474 }
7575}
@@ -200,7 +200,7 @@ tasks.named("publishMavenPublicationToCentralRepository") { dependsOn("assemble"
200200signing {
201201 sign(publishing.publications[" maven" ])
202202}
203- tasks.withType<Sign >().all {
203+ tasks.withType<Sign >().configureEach {
204204 onlyIf { project.hasProperty(" signing.keyId" ) }
205205}
206206tasks.named(" signMavenPublication" ) { dependsOn(" module" ) }
You can’t perform that action at this time.
0 commit comments