We have a gradle multiproject setup:
- rootproject
- modules
- submodule1
- submodule2
- services
- service1
- service2
- modules
For all services I currently have added manually following:
plugins {
war
}
tasks.war {
archiveFileName.set("ROOT.war")
}
configurations.create("war") {
extendsFrom(configurations["compile"])
}
val warArtifact = artifacts.add("war", tasks.named<War>("war"))
Is there a way to create some common gradle.kts file to import for each of the services
?