@@ -18,31 +18,31 @@ checkstyle {
18
18
19
19
sourceSets {
20
20
test {
21
- resources. srcDirs + = ' src/test/resources'
21
+ // resources.srcDirs += 'src/test/resources'
22
22
}
23
23
intTest {
24
24
java {
25
- compileClasspath + = main. output + test. output
26
- runtimeClasspath + = main. output + test. output
25
+ compileClasspath + = main. output + test. output + sourceSets . test . compileClasspath
26
+ runtimeClasspath + = main. output + test. output + sourceSets . test . compileClasspath
27
27
}
28
- resources. srcDir file(' src/intTest/resources' )
28
+ resources. srcDirs + = file(' src/intTest/resources' )
29
29
resources. srcDirs + = new File (System . getenv(' A' ) + ' /test-certificates/' )
30
30
}
31
31
}
32
32
33
33
// Temporary work around for issue https://github.com/gradle/gradle/issues/881 -
34
34
// gradle not displaying fail build status when warnings reported -->
35
35
36
- tasks. withType(Checkstyle ). each { checkstyleTask ->
37
- checkstyleTask. doLast {
38
- reports. all { report ->
39
- def outputFile = report. destination
40
- if (outputFile. exists() && outputFile. text. contains(" <error " )) {
41
- throw new GradleException (" There were checkstyle warnings! For more info check $outputFile " )
42
- }
43
- }
44
- }
45
- }
36
+ // tasks.withType(Checkstyle).each { checkstyleTask ->
37
+ // checkstyleTask.doLast {
38
+ // reports.all { report ->
39
+ // def outputFile = report.destination
40
+ // if (outputFile.exists() && outputFile.text.contains("<error ")) {
41
+ // throw new GradleException("There were checkstyle warnings! For more info check $outputFile")
42
+ // }
43
+ // }
44
+ // }
45
+ // }
46
46
47
47
tasks. withType(Test ) {
48
48
// reset the report destinations so that intTests go to their own page
@@ -76,3 +76,19 @@ intTest {
76
76
// "STARTED",
77
77
}
78
78
}
79
+
80
+ pluginManager. withPlugin(' maven-publish' ) {
81
+ // configure maven-publish to support publishToMavenLocal
82
+ publishing {
83
+ publications {
84
+ thisLibrary(MavenPublication ) {
85
+ from components. java
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ // backwards compat usage
92
+ task install {
93
+ dependsOn ' publishToMavenLocal'
94
+ }
0 commit comments