mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +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')
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
}
|
||||
tasks.jar.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||
|
||||
task classJar(type: Jar, dependsOn: classes) {
|
||||
classifier = "jar"
|
||||
@ -58,8 +59,14 @@ jar {
|
||||
}
|
||||
from {
|
||||
// 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 {
|
||||
attributes 'Manifest-Version': project.version
|
||||
attributes 'Main-Class': 'org.bdware.sc.ContractProcess'
|
||||
@ -67,8 +74,13 @@ jar {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||
tasks.processTestResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||
tasks.withType(Copy).all {
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
}
|
||||
tasks.withType(Jar).all {
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
}
|
||||
|
||||
|
||||
task copyLibs(type: Copy, dependsOn: ":common:jar") {
|
||||
into "./build/output/libs/"
|
||||
|
Loading…
Reference in New Issue
Block a user