diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-09-20 15:22:55 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-09-23 20:21:06 +0200 |
commit | 6e203c337d71afe34de053c0d0475b3b14745a3b (patch) | |
tree | 87e8d944b7dc119a3952cfc0a81ffb80ff8a1f69 /build.gradle | |
parent | 92ba9d4826161c8fc720d69673cd7a7bd4f7b264 (diff) | |
download | sonarqube-6e203c337d71afe34de053c0d0475b3b14745a3b.tar.gz sonarqube-6e203c337d71afe34de053c0d0475b3b14745a3b.zip |
enable testFixtures plugin only on projects with testFixtures source
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 290ce4d7ffb..4f702836795 100644 --- a/build.gradle +++ b/build.gradle @@ -95,13 +95,17 @@ subprojects { apply plugin: 'io.spring.dependency-management' apply plugin: 'jacoco' apply plugin: 'java' - apply plugin: 'java-test-fixtures' apply plugin: 'idea' apply plugin: 'org.owasp.dependencycheck' // do not deploy to Artifactory by default artifactoryPublish.skip = true + def testFixtureSrc = 'src/testFixtures' + if (file(testFixtureSrc).exists()) { + apply plugin: 'java-test-fixtures' + } + ext { protobufVersion = '3.7.0' } |