From df4b9f9994f282c00c8358980889755b4f77c70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Basl=C3=A9?= Date: Thu, 1 Apr 2021 13:53:13 +0200 Subject: [PATCH] Ensure junit-platform has compile dep to blockhound in pom (#189) 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. --- junit-platform/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/junit-platform/build.gradle b/junit-platform/build.gradle index 99a90d7..4d9348c 100644 --- a/junit-platform/build.gradle +++ b/junit-platform/build.gradle @@ -1,5 +1,5 @@ plugins { - id "java" + id "java-library" id "maven-publish" id "signing" } @@ -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'