@@ -52,21 +52,21 @@ findProject(":usvm-python:usvm-python-runner")?.name = "usvm-python-runner"
52
52
include(" usvm-python:usvm-python-commons" )
53
53
findProject(" :usvm-python:usvm-python-commons" )?.name = " usvm-python-commons"
54
54
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.
56
56
// As a workaround, we convert it to a real absolute path.
57
57
// 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