fix: yjs.jar corrupted

This commit is contained in:
CaiHQ 2022-05-14 01:17:54 +08:00
parent 4318162fa8
commit 30d5ca5ace

View File

@ -8,7 +8,6 @@ plugins {
}
//mainClassName = 'org.bdware.sc.ContractProcess'
repositories {
mavenLocal()
mavenCentral()
@ -57,17 +56,36 @@ task classJar(type: Jar, dependsOn: classes) {
// classifier = ""
//}
//task customFatJar(type: Jar) {
// String libs = ''
// configurations.runtimeClasspath.each {
// libs = libs + " libs/" + it.name
// }
// baseName = 'pure'
// classifier = ''
// manifest {
// attributes 'Manifest-Version': project.version
// attributes 'Main-Class': 'org.bdware.sc.ContractProcess'
// attributes 'Class-Path': libs
// }
// from {
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
// }
// with jar
//}
jar {
String libs = ''
configurations.runtimeClasspath.each {
libs = libs + " libs/" + it.name
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'Manifest-Version': project.version
// attributes 'Main-Class': mainClassName
attributes 'Main-Class': 'org.bdware.sc.ContractProcess'
attributes 'Class-Path': libs
}
}
@ -111,7 +129,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
//shadowJar {
// classifier = "jar"
// // classifier = "jar"
// dependencies {
// include(dependency(fileTree(dir: 'lib', include: '*.jar')))
//// exclude(dependency('com.google.code.gson:gson:2.8.6'))
@ -129,6 +147,7 @@ publishing {
artifact sourceJar
artifact javadocJar
artifact classJar
// artifact customFatJar
pom {
name = "bdware-cp"
description = "cp"