Skip to content

Commit 07afe67

Browse files
committed
chore: use local jar if there is no Parsek module
1 parent 705a2fb commit 07afe67

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

build.gradle.kts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ repositories {
2626

2727
dependencies {
2828
if (bootstrap) {
29-
compileOnly(project(mapOf("path" to ":Parsek")))
30-
compileOnly(project(mapOf("path" to ":plugins:parsek-plugin-database")))
29+
if (findProject(":Parsek") != null) {
30+
compileOnly(project(":Parsek"))
31+
} else {
32+
compileOnly(fileTree(rootDir) { include("Parsek*.jar") })
33+
}
34+
35+
if (findProject(":plugins:parsek-plugin-database") != null) {
36+
compileOnly(project(":plugins:parsek-plugin-database"))
37+
} else {
38+
compileOnly(fileTree(rootDir) { include("parsek-plugin-database*.jar") })
39+
}
3140
} else {
3241
compileOnly("dev.parsek:core:1.0.0-beta.19")
3342
compileOnly("dev.parsek:parsek-plugin-database:1.0.0-dev.5")

0 commit comments

Comments
 (0)