upgrade rocksdb

publish cp-1.6.4
publish common-1.5.9
This commit is contained in:
CaiHQ 2022-06-29 02:30:24 +08:00
parent 2770908f2b
commit 639d8dc6cb

View File

@ -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/"