diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-08-14 08:43:40 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-08-14 20:21:15 +0200 |
commit | c980b1b86b4589538642a9535ea2fec807c3eb3b (patch) | |
tree | 299a7165f4332cc74d4cda652e0426fd51bc960c /sonar-plugin-api-impl | |
parent | 5334895ce0eacaa2a2787cd6c47ac507dbe0d723 (diff) | |
download | sonarqube-c980b1b86b4589538642a9535ea2fec807c3eb3b.tar.gz sonarqube-c980b1b86b4589538642a9535ea2fec807c3eb3b.zip |
remove all other dependencies onto sonar-server
was causing funky dependency tree for tests (almost loop)
dependency was sometimes added for transitive dependencies
module was super large yet hardly a couple classes were used
Diffstat (limited to 'sonar-plugin-api-impl')
-rw-r--r-- | sonar-plugin-api-impl/build.gradle | 6 | ||||
-rw-r--r-- | sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/DefaultTempFolderTest.java | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sonar-plugin-api-impl/build.gradle b/sonar-plugin-api-impl/build.gradle index 274ca7ea96c..ee9930a295d 100644 --- a/sonar-plugin-api-impl/build.gradle +++ b/sonar-plugin-api-impl/build.gradle @@ -17,13 +17,13 @@ dependencies { compileOnly 'com.google.code.findbugs:jsr305' compileOnly 'junit:junit' - testCompile 'junit:junit' - testCompile 'com.google.code.findbugs:jsr305' + testCompileOnly 'com.google.code.findbugs:jsr305' + testCompile 'com.google.guava:guava' testCompile 'com.tngtech.java:junit-dataprovider' + testCompile 'junit:junit' testCompile 'org.assertj:assertj-core' testCompile 'org.mockito:mockito-core' - testCompile project(':server:sonar-server') } artifactoryPublish.skip = false diff --git a/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/DefaultTempFolderTest.java b/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/DefaultTempFolderTest.java index b21d2077ebb..eadf5e8a272 100644 --- a/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/DefaultTempFolderTest.java +++ b/sonar-plugin-api-impl/src/test/java/org/sonar/api/impl/utils/DefaultTempFolderTest.java @@ -27,7 +27,6 @@ import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import org.sonar.api.utils.log.LogTester; import org.sonar.api.utils.log.LoggerLevel; -import org.sonar.server.util.TempFolderCleaner; import static org.assertj.core.api.Assertions.assertThat; @@ -51,7 +50,7 @@ public class DefaultTempFolderTest { File file = underTest.newFile(); assertThat(file).exists().isFile(); - new TempFolderCleaner(underTest).stop(); + underTest.clean(); assertThat(rootTempFolder).doesNotExist(); } @@ -63,7 +62,7 @@ public class DefaultTempFolderTest { assertThat(dir).exists().isDirectory(); assertThat(new File(rootTempFolder, "sample")).isEqualTo(dir); - new TempFolderCleaner(underTest).stop(); + underTest.clean(); assertThat(rootTempFolder).doesNotExist(); } |