Skip to content

Commit ba41393

Browse files
committed
add workaround for classpath issue
1 parent 611bc04 commit ba41393

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

nebula-archrules-gradle-plugin/build.gradle.kts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ java {
3333
}
3434
}
3535
testing {
36-
suites{
37-
named<JvmTestSuite>("test"){
36+
suites {
37+
named<JvmTestSuite>("test") {
3838
useJUnitJupiter()
3939
targets.all {
4040
testTask.configure {
@@ -47,3 +47,18 @@ testing {
4747
dependencyLocking {
4848
lockAllConfigurations()
4949
}
50+
configurations.named("testImplementation") {
51+
52+
// extendsFrom(configurations.getByName("archRules"))
53+
}
54+
configurations.named("testArchRulesRuntime").configure {
55+
resolutionStrategy.dependencySubstitution {
56+
// workaround for classpath issue
57+
all {
58+
val requestedProject = requested
59+
if (requestedProject is ProjectComponentSelector) {
60+
useTarget("com.netflix.nebula" + requestedProject.projectPath + ":0.3.0")
61+
}
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)