From 1a17e4302e4b63de6b4ce7c049441803b9471524 Mon Sep 17 00:00:00 2001 From: David Rautureau Date: Thu, 8 Feb 2018 15:01:19 +0100 Subject: Move To Gradle --- sonar-testing-harness/build.gradle | 29 +++++++++++++ sonar-testing-harness/pom.xml | 47 ---------------------- .../sonar/test/i18n/BundleSynchronizedMatcher.java | 2 +- 3 files changed, 30 insertions(+), 48 deletions(-) create mode 100644 sonar-testing-harness/build.gradle delete mode 100644 sonar-testing-harness/pom.xml (limited to 'sonar-testing-harness') diff --git a/sonar-testing-harness/build.gradle b/sonar-testing-harness/build.gradle new file mode 100644 index 00000000000..3908c075238 --- /dev/null +++ b/sonar-testing-harness/build.gradle @@ -0,0 +1,29 @@ +sonarqube { + properties { + property 'sonar.projectName', "${projectTitle} :: Testing Harness" + } +} + +dependencies { + compile 'commons-io:commons-io' + compile 'com.googlecode.json-simple:json-simple' + compile 'com.google.code.gson:gson' + compile 'junit:junit' + compile 'org.hamcrest:hamcrest-core' + + compileOnly 'com.google.code.findbugs:jsr305' + + testCompile 'org.assertj:assertj-core' +} + +// Used by sonar-db-core to run DB Unit Tests +artifactoryPublish.skip = false +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + artifact sourcesJar + artifact javadocJar + } + } +} diff --git a/sonar-testing-harness/pom.xml b/sonar-testing-harness/pom.xml deleted file mode 100644 index 3b776e847eb..00000000000 --- a/sonar-testing-harness/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - 4.0.0 - - org.sonarsource.sonarqube - sonarqube - 7.1-SNAPSHOT - - sonar-testing-harness - jar - SonarQube :: Testing Harness - - - - com.googlecode.json-simple - json-simple - - - com.google.code.gson - gson - - - junit - junit - - - org.hamcrest - hamcrest-core - - - commons-io - commons-io - - - - com.google.code.findbugs - jsr305 - provided - - - - org.assertj - assertj-core - test - - - diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java b/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java index 00e6e6096a0..ec7aa2c2a81 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/i18n/BundleSynchronizedMatcher.java @@ -83,7 +83,7 @@ public class BundleSynchronizedMatcher extends BaseMatcher { @Override public void describeTo(Description description) { // report file - File dumpFile = new File("target/l10n/" + bundleName + ".report.txt"); + File dumpFile = new File("build/l10n/" + bundleName + ".report.txt"); // prepare message StringBuilder details = prepareDetailsMessage(dumpFile); -- cgit v1.2.3