Skip to content

Commit 1d99567

Browse files
committed
Updated for gradle/
1 parent 8ca8547 commit 1d99567

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gradle/jacoco.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ afterEvaluate {
5252
}
5353
}
5454

55-
jacocoTestCoverageVerification {
55+
tasks.named("jacocoTestCoverageVerification") {
5656
violationRules {
5757
rule {
5858
element = 'CLASS'

gradle/java_no_deps.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

@@ -98,7 +98,7 @@ java {
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

0 commit comments

Comments
 (0)