diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-06-21 11:47:56 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-06-29 09:10:13 +0200 |
commit | 25b60cdab5a9c3137e5a24df9c74a8ad269ecfc0 (patch) | |
tree | b8dfc93c45cdc264cf07a9135ee5fef24f29f96c /server/sonar-ce-task-projectanalysis/build.gradle | |
parent | abac7619c39e0e24aa86bb1150ce00b4063fa241 (diff) | |
download | sonarqube-25b60cdab5a9c3137e5a24df9c74a8ad269ecfc0.tar.gz sonarqube-25b60cdab5a9c3137e5a24df9c74a8ad269ecfc0.zip |
create module sonar-ce-task-projectanalysis from sonar-server
Diffstat (limited to 'server/sonar-ce-task-projectanalysis/build.gradle')
-rw-r--r-- | server/sonar-ce-task-projectanalysis/build.gradle | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/server/sonar-ce-task-projectanalysis/build.gradle b/server/sonar-ce-task-projectanalysis/build.gradle new file mode 100644 index 00000000000..4e829cef927 --- /dev/null +++ b/server/sonar-ce-task-projectanalysis/build.gradle @@ -0,0 +1,68 @@ +description = 'Code of the Compute Engine task processing project analysis reports' + +sonarqube { + properties { + property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Task :: Project Analysis" + } +} + +sourceSets { + test { + resources { + srcDirs += ['src/test/projects'] + } + } +} + + +import org.apache.tools.ant.filters.ReplaceTokens +processResources { + filesMatching('build.properties') { + filter ReplaceTokens, tokens: [ + 'buildNumber': release ? 'git rev-parse HEAD'.execute().text.trim() : 'N/A' + ] + } +} + +configurations { + tests + testCompile.extendsFrom compileOnly +} + +dependencies { + // please keep the list grouped by configuration and ordered by name + +// compile 'org.picocontainer:picocontainer' + compile 'org.slf4j:jul-to-slf4j' + compile 'org.slf4j:slf4j-api' + + compileOnly 'com.google.code.findbugs:jsr305' + compileOnly project(':sonar-core') + compileOnly project(':server:sonar-db-dao') + compileOnly project(':server:sonar-process') + compileOnly project(':server:sonar-server-common') + compileOnly project(':server:sonar-server') + compileOnly project(path: ':sonar-plugin-api') + + testCompile 'com.google.code.findbugs:jsr305' + testCompile 'com.h2database:h2' + testCompile 'com.tngtech.java:junit-dataprovider' + testCompile 'junit:junit' + testCompile 'org.apache.logging.log4j:log4j-api' + testCompile 'org.apache.logging.log4j:log4j-core' + testCompile 'org.assertj:assertj-core' + testCompile 'org.assertj:assertj-guava' + testCompile 'org.mockito:mockito-core' + testCompile 'org.reflections:reflections' + testCompile project(':server:sonar-db-testing') + testCompile project(path: ":server:sonar-server", configuration: "tests") +} + +task testJar(type: Jar) { + classifier = 'tests' + from sourceSets.test.output +} + +artifacts { + tests testJar +} |