Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

We have a gradle multiproject setup:

  • rootproject
    • modules
      • submodule1
      • submodule2
    • services
      • service1
      • service2

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
286 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...