快轉到主要內容

Grails Export Dependencies

·64 字·1 分鐘·
PolloChang
作者
PolloChang
我是一隻雞

Grails 匯出專案中相依套件的 jar

環境
#

  • grails version: grails5

設定方式
#

在 build.gradle 新增設定

1
2
3
4
5
6
7
8
configurations {
    runtime.extendsFrom(compileClasspath, runtimeOnly)
}

task copyToLib(type: Copy) {
    into "$buildDir/output/lib"
    from configurations.runtime
}

參考資料
#