mirror of
https://gitee.com/BDWare/cp.git
synced 2025-12-28 01:49:26 +00:00
support debug log and normal log
This commit is contained in:
13
build.gradle
13
build.gradle
@@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "org.bdware.sc"
|
||||
version = "1.5.7"
|
||||
version = "1.6.0"
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
@@ -58,7 +58,7 @@ jar {
|
||||
}
|
||||
from {
|
||||
// uncomment this when publish!
|
||||
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
manifest {
|
||||
attributes 'Manifest-Version': project.version
|
||||
@@ -75,10 +75,17 @@ task copyLibs(type: Copy, dependsOn: ":common:jar") {
|
||||
from configurations.runtimeClasspath
|
||||
}
|
||||
|
||||
task copyJar(type: Copy, dependsOn: ":cp:jar") {
|
||||
task copyJar(type: Copy, dependsOn: [":cp:jar",":copyLog4jProp"]) {
|
||||
into "./build/output/"
|
||||
from "./build/libs/$project.name-${version}.jar"
|
||||
rename { String fileName -> "yjs.jar" }
|
||||
from "./src/main/resources/log4j2.debug.properties"
|
||||
from "./src/main/resources/log4j2.properties"
|
||||
}
|
||||
task copyLog4jProp(type: Copy) {
|
||||
into "./build/output/"
|
||||
from "./src/main/resources/log4j2.debug.properties"
|
||||
from "./src/main/resources/log4j2.properties"
|
||||
}
|
||||
|
||||
task buildBundle(dependsOn: [":cp:copyLibs", ":cp:copyJar"]) {
|
||||
|
||||
Reference in New Issue
Block a user