@@ -372,18 +372,22 @@ tasks.withType(JavaCompile) { // Java compile-time options:
372
372
application {
373
373
mainClass = ' jme3utilities.minie.TestApp'
374
374
}
375
-
376
- checkstyle {
377
- toolVersion libs. versions. checkstyle. get()
378
- }
379
-
380
375
tasks. withType(JavaExec ). configureEach { // Java runtime options:
381
376
classpath sourceSets. main. runtimeClasspath
382
377
}
383
378
384
379
run. dependsOn(' assemble' )
385
380
test. dependsOn(' assemble' )
386
381
382
+ checkstyle {
383
+ toolVersion libs. versions. checkstyle. get()
384
+ }
385
+ tasks. register(' checkstyle' ) {
386
+ dependsOn ' checkstyleMain' , ' checkstyleTest'
387
+ description ' Checks the style of all Java sourcecode.'
388
+ }
389
+ checkstyleMain. dependsOn(' compileTestJava' )
390
+
387
391
// Register publishing tasks:
388
392
389
393
tasks. register(' install' ) {
@@ -424,8 +428,6 @@ artifacts {
424
428
}
425
429
javadoc. dependsOn(' compileTestJava' )
426
430
427
- checkstyleMain. dependsOn(' compileTestJava' )
428
-
429
431
assemble. dependsOn(' module' , ' moduleAsc' , ' pom' , ' pomAsc' )
430
432
tasks. register(' module' , Copy ) {
431
433
dependsOn ' generateMetadataFileForMavenPublication'
@@ -509,11 +511,6 @@ tasks.withType(Sign) {
509
511
}
510
512
signMavenPublication. dependsOn(' module' )
511
513
512
- tasks. register(' checkstyle' ) {
513
- dependsOn ' checkstyleMain' , ' checkstyleTest'
514
- description ' Checks the style of all Java sourcecode.'
515
- }
516
-
517
514
// Register cleanup tasks:
518
515
519
516
clean. dependsOn(' cleanCxx' , ' cleanDist' , ' cleanLogs' )
0 commit comments