mirror of
https://gitee.com/BDWare/ypk-deploy-tool
synced 2026-02-15 00:19:26 +00:00
add simple-ypk-packer
This commit is contained in:
24
build.gradle
24
build.gradle
@@ -4,10 +4,9 @@ plugins {
|
||||
id 'maven-publish'
|
||||
id 'signing'
|
||||
}
|
||||
group 'org.bdware.bdcontract'
|
||||
version '0.4.0'
|
||||
group "org.bdware.bdcontract"
|
||||
version "0.5.2"
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
@@ -24,6 +23,25 @@ dependencies {
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
}
|
||||
|
||||
task copyLibs(type: Copy, dependsOn: [':ypk-deploy-tool:jar']) {
|
||||
from configurations.runtimeClasspath
|
||||
into "./build/output/libs/"
|
||||
}
|
||||
task copyScript(type: Copy) {
|
||||
from "./docker/javarun.sh"
|
||||
from "./docker/docker-compose/deployentry.json"
|
||||
into "./build/output/"
|
||||
}
|
||||
task copyJar(type: Copy, dependsOn: [":ypk-deploy-tool:copyLibs",":ypk-deploy-tool:copyScript"]) {
|
||||
from "./build/libs/$project.name-${project.version}.jar"
|
||||
into "./build/output"
|
||||
rename { String fileName -> "${project.name}.jar" }
|
||||
doFirst {
|
||||
println "copyJar start"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
task classJar(type: Jar, dependsOn: classes) {
|
||||
classifier = "jar"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user