mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-29 00:50:12 +07:00
Created 'release' task to automatically build and copy artifacts into /build/release
This commit is contained in:
parent
a74c3213a2
commit
5db573d441
18
build.gradle
18
build.gradle
@ -46,3 +46,21 @@ configure(subprojects - project(':android')) {
|
|||||||
options.incremental = true
|
options.incremental = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task release(type: Copy) {
|
||||||
|
doFirst {
|
||||||
|
delete "$buildDir/release"
|
||||||
|
}
|
||||||
|
|
||||||
|
dependsOn ':desktop:jar'
|
||||||
|
from project(':desktop').tasks.getByName('jar').outputs.files
|
||||||
|
|
||||||
|
dependsOn ':tools:mpq-viewer:jar'
|
||||||
|
from project(':tools:mpq-viewer').tasks.getByName('jar').outputs.files
|
||||||
|
|
||||||
|
dependsOn ':tools:map-viewer:jar'
|
||||||
|
from project(':tools:map-viewer').tasks.getByName('jar').outputs.files
|
||||||
|
|
||||||
|
into "$buildDir/release"
|
||||||
|
rename '(.*)-SNAPSHOT(.*)', '$1$2'
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user