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