diff --git a/build.gradle b/build.gradle index ca18b237..89206b6e 100644 --- a/build.gradle +++ b/build.gradle @@ -46,3 +46,21 @@ configure(subprojects - project(':android')) { 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' +}