lom: fix cross-module dependencies
This commit is contained in:
parent
41e43cdd9d
commit
1f9d4a4379
|
@ -117,10 +117,14 @@ tasks.shadowJar {
|
||||||
destinationDirectory.set(devlibs)
|
destinationDirectory.set(devlibs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used for referencing the unremapped jars of other projects
|
val dev by configurations.creating {
|
||||||
artifacts.add(configurations.create("dev").name, tasks.shadowJar) {
|
isCanBeConsumed = true
|
||||||
type = "jar"
|
isCanBeResolved = false
|
||||||
builtBy(tasks.shadowJar)
|
|
||||||
|
extendsFrom(configurations["shadow"]) // Provide shadowed classes to dependent modules
|
||||||
|
}
|
||||||
|
artifacts {
|
||||||
|
add(dev.name, tasks.shadowJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate sources jar to publish for better debugging with dependents
|
// generate sources jar to publish for better debugging with dependents
|
||||||
|
|
Loading…
Reference in New Issue