mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 09:54:07 +00:00
upgrade rocksdb
publish cp-1.6.4 publish common-1.5.9
This commit is contained in:
parent
2770908f2b
commit
639d8dc6cb
18
build.gradle
18
build.gradle
@ -47,6 +47,7 @@ dependencies {
|
|||||||
implementation fileTree(dir: 'lib', include: '*.jar')
|
implementation fileTree(dir: 'lib', include: '*.jar')
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
|
tasks.jar.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||||
|
|
||||||
task classJar(type: Jar, dependsOn: classes) {
|
task classJar(type: Jar, dependsOn: classes) {
|
||||||
classifier = "jar"
|
classifier = "jar"
|
||||||
@ -58,8 +59,14 @@ jar {
|
|||||||
}
|
}
|
||||||
from {
|
from {
|
||||||
// uncomment this when publish!
|
// uncomment this when publish!
|
||||||
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
configurations.runtimeClasspath.filter {
|
||||||
|
// it.getAbsolutePath().contains("/lib/")
|
||||||
|
false
|
||||||
|
}.collect {
|
||||||
|
it.isDirectory() ? it : zipTree(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Manifest-Version': project.version
|
attributes 'Manifest-Version': project.version
|
||||||
attributes 'Main-Class': 'org.bdware.sc.ContractProcess'
|
attributes 'Main-Class': 'org.bdware.sc.ContractProcess'
|
||||||
@ -67,8 +74,13 @@ jar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
tasks.withType(Copy).all {
|
||||||
tasks.processTestResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
|
}
|
||||||
|
tasks.withType(Jar).all {
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
task copyLibs(type: Copy, dependsOn: ":common:jar") {
|
task copyLibs(type: Copy, dependsOn: ":common:jar") {
|
||||||
into "./build/output/libs/"
|
into "./build/output/libs/"
|
||||||
|
Loading…
Reference in New Issue
Block a user