first
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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/**")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user