mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-31 17:53:09 -05:00
Introduce prepareScripts and assembleArchive tasks to gradle build.
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -1,3 +1,5 @@
|
||||
import org.apache.tools.ant.filters.*
|
||||
|
||||
apply plugin: 'groovy'
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
@@ -18,7 +20,16 @@ dependencies {
|
||||
testCompile group: 'org.vert-x', name: 'vertx-lang-groovy', version: '1.2.3.final'
|
||||
}
|
||||
|
||||
task copyTask(type: Copy) {
|
||||
from "scripts/gvm"
|
||||
into 'bin'
|
||||
task prepareScripts(type: Copy) {
|
||||
from "srv/scripts"
|
||||
into 'build/scripts'
|
||||
include '**/*'
|
||||
filter(ReplaceTokens, tokens: [GVM_VERSION:gvmVersion, GVM_SERVICE:gvmService])
|
||||
}
|
||||
|
||||
task assembleArchive(type: Zip) {
|
||||
classifier = 'scripts'
|
||||
from "build/scripts"
|
||||
include "gvm*"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user