33 lines
661 B
Kotlin
33 lines
661 B
Kotlin
plugins {
|
|
id("multiloader-common")
|
|
}
|
|
|
|
val commonJava: Configuration by configurations.creating {
|
|
isCanBeResolved = true
|
|
}
|
|
val commonResources: Configuration by configurations.creating {
|
|
isCanBeResolved = true
|
|
}
|
|
|
|
dependencies {
|
|
val commonPath = common.hierarchy.toString()
|
|
compileOnly(project(path = commonPath))
|
|
commonJava(project(path = commonPath, configuration = "commonJava"))
|
|
commonResources(project(path = commonPath, configuration = "commonResources"))
|
|
}
|
|
|
|
tasks {
|
|
compileJava {
|
|
dependsOn(commonJava)
|
|
source(commonJava)
|
|
}
|
|
|
|
processResources {
|
|
dependsOn(commonResources)
|
|
from(commonResources)
|
|
}
|
|
|
|
jar {
|
|
exclude("accesswideners/**")
|
|
}
|
|
} |