File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ afterEvaluate {
5252 }
5353 }
5454
55- jacocoTestCoverageVerification {
55+ tasks . named( " jacocoTestCoverageVerification" ) {
5656 violationRules {
5757 rule {
5858 element = ' CLASS'
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ if (project.hasProperty('minJavaVersionForTests') && project.getProperty('minJav
5858 }
5959 }
6060
61- " compileMain_${ name} Java" {
61+ tasks . named( " compileMain_${ name} Java" ) {
6262 sourceCompatibility = version
6363 targetCompatibility = version
6464 }
@@ -74,7 +74,7 @@ if (project.hasProperty('minJavaVersionForTests') && project.getProperty('minJav
7474 }
7575 }
7676
77- jar {
77+ tasks . named( " jar" ) {
7878 from sourceSets. " main_$name " . output
7979 }
8080
9898 withSourcesJar()
9999}
100100
101- jar {
101+ tasks . named( " jar" ) {
102102 /**
103103 Make Jar build fail on duplicate files
104104 By default Gradle Jar task can put multiple files with the same name
@@ -136,7 +136,7 @@ tasks.withType(Javadoc).configureEach {
136136 }
137137}
138138
139- javadoc {
139+ tasks . named( " javadoc" ) {
140140 source = sourceSets. main. java. srcDirs
141141 classpath = configurations. compileClasspath
142142
You can’t perform that action at this time.
0 commit comments