diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index 97f0a33829..7eecb5588f 100644 --- a/build.gradle +++ b/build.gradle @@ -314,7 +314,7 @@ subprojects { // http://forums.gradle.org/gradle/topics/jacoco_related_failure_in_multiproject_build systemProperties['user.dir'] = workingDir - systemProperties['java.io.tmpdir'] = 'build' + systemProperties['java.io.tmpdir'] = 'build' systemProperties['POI.testdata.path'] = '../test-data' @@ -759,6 +759,26 @@ distributions { binDistZip.dependsOn 'zipJavadocs', ':poi-ooxml-lite:jar' binDistTar.dependsOn 'zipJavadocs', ':poi-ooxml-lite:jar' +task soLinkCheck() { + doLast { + def path = ant.path { + fileset(dir: '.', includes: '**/*.java') { + exclude(name: 'build.gradle') + contains(text: 'stackoverflow.com') + } + } + + path.list().each { + println it + } + + if (path.size() > 0) { + // #65796 - minimize notifications about non-asf open source + throw new GradleException('License issue found - conceal the link and contradict any findings m(') + } + } +} + var srcDep = [ ':poi:cacheJava9', ':poi:cacheTest9', @@ -778,7 +798,8 @@ var srcDep = [ srcDistTar.dependsOn srcDep srcDistZip.dependsOn srcDep -rat.dependsOn srcDep +soLinkCheck.dependsOn srcDep +rat.dependsOn soLinkCheck task fixDistDir { doLast { |