Skip to content

Commit 9ed4cc7

Browse files
committed
Local jacodb
1 parent c3f2332 commit 9ed4cc7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

settings.gradle.kts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,21 @@ findProject(":usvm-python:usvm-python-runner")?.name = "usvm-python-runner"
5252
include("usvm-python:usvm-python-commons")
5353
findProject(":usvm-python:usvm-python-commons")?.name = "usvm-python-commons"
5454

55-
// Actually, `includeBuild("../jacodb")` is enough, but there is a bug in IDEA when path is a symlink.
55+
// Actually, relative path is enough, but there is a bug in IDEA when the path is a symlink.
5656
// As a workaround, we convert it to a real absolute path.
5757
// See IDEA bug: https://youtrack.jetbrains.com/issue/IDEA-329756
58-
// val jacodbPath = file("jacodb").takeIf { it.exists() }
59-
// ?: file("../jacodb").takeIf { it.exists() }
60-
// ?: error("Local JacoDB directory not found")
61-
// includeBuild(jacodbPath.toPath().toRealPath().toAbsolutePath()) {
62-
// dependencySubstitution {
63-
// all {
64-
// val requested = requested
65-
// if (requested is ModuleComponentSelector && requested.group == "com.github.UnitTestBot.jacodb") {
66-
// val targetProject = ":${requested.module}"
67-
// useTarget(project(targetProject))
68-
// logger.info("Substituting ${requested.group}:${requested.module} with $targetProject")
69-
// }
70-
// }
71-
// }
72-
// }
58+
val jacodbPath = file("jacodb").takeIf { it.exists() }
59+
?: file("../jacodb").takeIf { it.exists() }
60+
?: error("Local JacoDB directory not found")
61+
includeBuild(jacodbPath.toPath().toRealPath().toAbsolutePath()) {
62+
dependencySubstitution {
63+
all {
64+
val requested = requested
65+
if (requested is ModuleComponentSelector && requested.group == "com.github.UnitTestBot.jacodb") {
66+
val targetProject = ":${requested.module}"
67+
useTarget(project(targetProject))
68+
logger.info("Substituting ${requested.group}:${requested.module} with $targetProject")
69+
}
70+
}
71+
}
72+
}

0 commit comments

Comments
 (0)