(該章需加入更多內(nèi)容。。。原稿寫的太簡單了)我們同時(shí)也加入了一個(gè)發(fā)行版本, 將會(huì)送到客戶端:
Example 7.14. 多項(xiàng)目構(gòu)建 - 發(fā)行文件
api/build.gradle
task dist(type: Zip) {
dependsOn spiJar
from 'src/dist'
into('libs') {
from spiJar.archivePath
from configurations.runtime
}
}
artifacts {
archives dist
}