Skip to content

Commit 439dc79

Browse files
committed
chore: use local jar if there is no Parsek module
1 parent 22f3b27 commit 439dc79

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

build.gradle.kts

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

2727
dependencies {
2828
if (bootstrap) {
29-
compileOnly(project(mapOf("path" to ":Parsek")))
30-
compileOnly(project(mapOf("path" to ":plugins:parsek-plugin-auth")))
29+
listOf(
30+
":Parsek" to "Parsek*.jar",
31+
":plugins:parsek-plugin-auth" to "parsek-plugin-auth*.jar"
32+
).forEach { (path, pattern) ->
33+
if (findProject(path) != null) {
34+
compileOnly(project(path))
35+
} else {
36+
compileOnly(fileTree(rootDir) { include(pattern) })
37+
}
38+
}
3139
} else {
3240
compileOnly("dev.parsek:core:1.0.0-beta.19")
3341
compileOnly("dev.parsek:parsek-plugin-auth:1.0.0-dev.7")

0 commit comments

Comments
 (0)