Skip to content

Commit d323bc7

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

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 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,14 @@ testing {
4747
dependencyLocking {
4848
lockAllConfigurations()
4949
}
50+
configurations.named("testArchRulesRuntime").configure {
51+
resolutionStrategy.dependencySubstitution {
52+
// workaround for classpath issue
53+
all {
54+
val requestedProject = requested
55+
if (requestedProject is ProjectComponentSelector) {
56+
useTarget("com.netflix.nebula" + requestedProject.projectPath + ":0.3.0")
57+
}
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)