diff options
Diffstat (limited to 'sonar-plugin-api-impl/build.gradle')
-rw-r--r-- | sonar-plugin-api-impl/build.gradle | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-plugin-api-impl/build.gradle b/sonar-plugin-api-impl/build.gradle index 8b7216073ed..8dc960886ce 100644 --- a/sonar-plugin-api-impl/build.gradle +++ b/sonar-plugin-api-impl/build.gradle @@ -21,9 +21,14 @@ dependencies { testImplementation 'com.google.guava:guava' testImplementation 'com.tngtech.java:junit-dataprovider' testImplementation 'junit:junit' + testImplementation 'org.junit.jupiter:junit-jupiter-api' testImplementation 'org.assertj:assertj-core' testImplementation 'org.mockito:mockito-core' + testImplementation 'org.mockito:mockito-junit-jupiter' testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures' + + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' + testRuntimeOnly 'org.junit.vintage:junit-vintage-engine' } import org.apache.tools.ant.filters.ReplaceTokens @@ -47,3 +52,7 @@ publishing { } } } +test { + // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle) + useJUnitPlatform() +} |