代码拉取完成,页面将自动刷新
buildscript {
repositories{
mavenCentral()
mavenLocal()
}
dependencies {
classpath "org.bdware.bdcontract:simple-ypk-packer:0.5.0"
classpath "org.bdware.bdcontract:ypk-deploy-tool:0.5.2"
}
}
plugins {
id 'java'
id 'java-library'
}
sourceSets {
main {
java {
srcDirs 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'src/test/resources'
}
}
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
implementation 'org.bdware.doip:doip-sdk:1.2.1'
implementation 'org.bdware.doip:irp-sdk:1.0.2'
implementation 'org.bdware.doip:doip-audit-tool:0.9.4'
implementation 'org.bdware.sc:cp:1.5.7'
testImplementation 'junit:junit:4.13.2'
}
task copyYJS(type: Copy) {
from "./yjs"
into "./build/output/"
}
task sourcesJar(type:Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task mergeJar(dependsOn: ["sourcesJar", "jar"]){
doLast {
org.bdware.datanet.YPKPacker.mergeJar("./datanet-gateway-backend/build/libs/$project.name-${project.version}.jar",
"./datanet-gateway-backend/build/libs/$project.name-${project.version}-sources.jar",
"./datanet-gateway-backend/build/libs/$project.name-${project.version}-all.jar")
}
}
task copyJar(type: Copy, dependsOn: ["jar", ":datanet-gateway-backend:copyLibs"]) {
from "./build/libs/$project.name-${project.version}.jar"
into "./build/output"
rename { String fileName -> "gateway.jar" }
doFirst {
println "copyJar start"
}
}
task copyFront(type: Copy) {
from "../datanet-gateway-front/dist"
into "./build/output/assets/"
doFirst {
println "copyFront start"
}
}
def relativePath = "./datanet-gateway-backend"
def currVersion = "1.1.0"
task grepCP (dependsOn:["copyJar","copyLibs"]){
doLast {
org.bdware.datanet.YPKPacker.grepJarByCPVersion("${relativePath}/build/output/libs",org.bdware.datanet.CPVersion.cp_1_5_3)
org.bdware.datanet.YPKPacker.grepJarByListFile("${relativePath}/build/output/libs","${relativePath}/grepcp.list")
}
}
task copyLibs(type: Copy ) {
from configurations.runtimeClasspath
into "./build/output/libs/"
}
task buildZip(type: Zip, dependsOn: ["copyJar", "copyYJS","grepCP"]) {
from './build/output/'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = 'Gateway.zip'
destinationDirectory = file('build/')
}
task buildYPK(dependsOn: ["buildZip"]) {
doLast {
org.bdware.datanet.YPKPacker.staticPack("${relativePath}/build/Gateway.zip", "${relativePath}/build/Gateway-${currVersion}.ypk")
}
}
task deploy(dependsOn: ["buildYPK"]){
doLast {
org.bdware.ypkdeploy.HTTPTool.deployWithYpk("${relativePath}/debugconf.json", "${relativePath}/build/gateway-${currVersion}.ypk")
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。