@@ -0,0 +1,55 @@ | |||
description = 'Code relating to the Compute Engine shared between the Compute Engine and the Web Server' | |||
sonarqube { | |||
properties { | |||
property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Common" | |||
} | |||
} | |||
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 { | |||
testCompile.extendsFrom compileOnly | |||
} | |||
dependencies { | |||
// please keep the list grouped by configuration and ordered by name | |||
compile 'org.slf4j:jul-to-slf4j' | |||
compile 'org.slf4j:slf4j-api' | |||
compile project(':server:sonar-db-dao') | |||
compileOnly 'com.google.code.findbugs:jsr305' | |||
compileOnly project(':server:sonar-ce-task') | |||
compileOnly project(':server:sonar-server-common') | |||
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 project(':sonar-plugin-api') | |||
testCompile project(':sonar-core') | |||
testCompile project(':server:sonar-db-testing') | |||
testCompile project(path: ":server:sonar-server-common", configuration: "tests") | |||
} |
@@ -57,6 +57,7 @@ dependencies { | |||
testCompile project(':server:sonar-db-testing') | |||
testCompile project(path: ":server:sonar-ce-task", configuration: "tests") | |||
testCompile project(path: ":server:sonar-server", configuration: "tests") | |||
testCompile project(path: ":server:sonar-server-common", configuration: "tests") | |||
} | |||
task testJar(type: Jar) { |
@@ -11,6 +11,7 @@ dependencies { | |||
compile 'com.google.protobuf:protobuf-java' | |||
compile 'org.nanohttpd:nanohttpd' | |||
compile project(':server:sonar-ce-common') | |||
compile project(':server:sonar-ce-task') | |||
compile project(':server:sonar-ce-task-projectanalysis') | |||
compile project(':server:sonar-server') |
@@ -1,23 +1,42 @@ | |||
description = 'Code shared between the Web Server and the Compute Engine' | |||
sonarqube { | |||
properties { | |||
property 'sonar.projectName', "${projectTitle} :: Server :: Common" | |||
} | |||
properties { | |||
property 'sonar.projectName', "${projectTitle} :: Server :: Common" | |||
} | |||
} | |||
configurations { | |||
tests | |||
} | |||
dependencies { | |||
// please keep the list grouped by configuration and ordered by name | |||
// please keep the list grouped by configuration and ordered by name | |||
compile 'com.google.guava:guava' | |||
compile 'org.slf4j:slf4j-api' | |||
compile project(':sonar-core') | |||
compile project(':server:sonar-db-dao') | |||
compile 'com.google.guava:guava' | |||
compile 'org.slf4j:slf4j-api' | |||
compileOnly project(path: ':sonar-plugin-api') | |||
compileOnly project(path: ':server:sonar-process') | |||
compile project(':sonar-core') | |||
compileOnly project(path: ':sonar-plugin-api') | |||
compileOnly 'com.google.code.findbugs:jsr305' | |||
compileOnly 'com.google.code.findbugs:jsr305' | |||
testCompile 'com.google.code.findbugs:jsr305' | |||
testCompile 'com.h2database:h2' | |||
testCompile 'com.tngtech.java:junit-dataprovider' | |||
testCompile 'junit:junit' | |||
testCompile 'org.assertj:assertj-core' | |||
testCompile 'org.mockito:mockito-core' | |||
testCompile project(':server:sonar-db-testing') | |||
} | |||
task testJar(type: Jar) { | |||
classifier = 'tests' | |||
from sourceSets.test.output | |||
} | |||
testCompile 'com.google.code.findbugs:jsr305' | |||
testCompile 'com.tngtech.java:junit-dataprovider' | |||
testCompile 'junit:junit' | |||
testCompile 'org.assertj:assertj-core' | |||
testCompile 'org.mockito:mockito-core' | |||
artifacts { | |||
tests testJar | |||
} |
@@ -47,6 +47,7 @@ dependencies { | |||
compile 'org.sonarsource.update-center:sonar-update-center-common' | |||
compile 'org.mindrot:jbcrypt' | |||
compile project(':server:sonar-ce-common') | |||
compile project(':server:sonar-ce-task') | |||
compile project(':server:sonar-db-dao') | |||
compile project(':server:sonar-db-migration') | |||
@@ -83,6 +84,7 @@ dependencies { | |||
testCompile 'org.mockito:mockito-core' | |||
testCompile 'org.subethamail:subethasmtp' | |||
testCompile project(':server:sonar-db-testing') | |||
testCompile project(path: ":server:sonar-server-common", configuration: "tests") | |||
} | |||
task testJar(type: Jar) { |
@@ -4,6 +4,7 @@ include 'plugins:sonar-xoo-plugin' | |||
include 'server:sonar-bitbucketcloud' | |||
include 'server:sonar-ce' | |||
include 'server:sonar-ce-common' | |||
include 'server:sonar-ce-task' | |||
include 'server:sonar-ce-task-projectanalysis' | |||
include 'server:sonar-db-testing' |