mirror of
https://gitee.com/BDWare/contract-java-example.git
synced 2026-02-15 00:59:31 +00:00
add readme
This commit is contained in:
@@ -36,6 +36,8 @@ sourceSets {
|
||||
dependencies {
|
||||
api 'org.apache.logging.log4j:log4j-core:2.14.1'
|
||||
api 'org.apache.logging.log4j:log4j-api:2.14.1'
|
||||
implementation fileTree(dir: 'cplibs', include: '*.jar')
|
||||
implementation fileTree(dir: 'cplibs/lib/', include: '*.jar')
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
}
|
||||
|
||||
@@ -49,15 +51,15 @@ task copyYJS(type: Copy) {
|
||||
into "./build/output/"
|
||||
}
|
||||
|
||||
task sourcesJar(type:Jar) {
|
||||
task sourcesJar(type: Jar) {
|
||||
from sourceSets.main.allJava
|
||||
archiveClassifier = 'sources'
|
||||
}
|
||||
task copyAssets(type: Copy){
|
||||
task copyAssets(type: Copy) {
|
||||
from "../front"
|
||||
into "./build/output/assets/"
|
||||
}
|
||||
task mergeJar(dependsOn: ["sourcesJar", "jar"]){
|
||||
task mergeJar(dependsOn: ["sourcesJar", "jar"]) {
|
||||
doLast {
|
||||
org.bdware.datanet.YPKPacker.mergeJar("./backend/build/libs/$project.name-${project.version}.jar",
|
||||
"./backend/build/libs/$project.name-${project.version}-sources.jar",
|
||||
@@ -68,21 +70,21 @@ task mergeJar(dependsOn: ["sourcesJar", "jar"]){
|
||||
task copyJar(type: Copy, dependsOn: ["mergeJar", ":backend:copyLibs"]) {
|
||||
from "./build/libs/$project.name-${project.version}-all.jar"
|
||||
into "./build/output"
|
||||
rename { String fileName -> "gateway.jar" }
|
||||
rename { String fileName -> "sc-example.jar" }
|
||||
doFirst {
|
||||
println "copyJar start"
|
||||
}
|
||||
}
|
||||
|
||||
task buildZip(type: Zip, dependsOn: ["copyAssets","copyJar", "copyYJS"]) {
|
||||
task buildZip(type: Zip, dependsOn: ["copyAssets", "copyJar", "copyYJS"]) {
|
||||
from './build/output/'
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
archiveFileName = 'contractexample.zip'
|
||||
destinationDirectory = file('build/')
|
||||
}
|
||||
|
||||
task buildYPK (dependsOn:["buildZip"]){
|
||||
task buildYPK(dependsOn: ["buildZip"]) {
|
||||
doLast {
|
||||
org.bdware.datanet.YPKPacker.staticPack("./backend/build/contractexample.zip","./backend/build/contractexample.ypk")
|
||||
org.bdware.datanet.YPKPacker.staticPack("./backend/build/contractexample.zip", "./backend/build/contractexample.ypk")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user