Skip to content

Commit

Permalink
Ensure junit-platform has compile dep to blockhound in pom (#189)
Browse files Browse the repository at this point in the history
This commit ensures that blockhound-junit-platform exposes its dependency
to blockhound as compile scope in pom, by using the java-library plugin
and the api configuration.

Fixes #188.
  • Loading branch information
simonbasle committed Apr 1, 2021
1 parent 3ac767f commit df4b9f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions junit-platform/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "java"
id "java-library"
id "maven-publish"
id "signing"
}
Expand All @@ -24,7 +24,8 @@ dependencies {
compileOnly 'com.google.auto.service:auto-service-annotations:1.0-rc7'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc7'

implementation project(path: ":agent", configuration: 'shadow')
//the api configuration ensures we publish blockhound at compile scope in pom
api project(path: ":agent", configuration: 'shadow')

compileOnly 'org.junit.platform:junit-platform-launcher:1.0.0'

Expand Down

0 comments on commit df4b9f9

Please sign in to comment.