fix: yjs.jar corrupted

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

View File

@ -1,8 +1,6 @@
plugins {
id 'java'
id 'java-library'
//id 'application'
id 'com.github.johnrengelman.shadow' version '4.0.2'
id 'maven-publish'
id 'signing'
}
@ -52,36 +50,14 @@ dependencies {
task classJar(type: Jar, dependsOn: classes) {
classifier = "jar"
}
//jar {
// 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) }
// uncomment this when publish!
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'Manifest-Version': project.version
@ -147,7 +123,7 @@ publishing {
artifact sourceJar
artifact javadocJar
artifact classJar
// artifact customFatJar
// artifact customFatJar
pom {
name = "bdware-cp"
description = "cp"