mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
fix: yjs.jar corrupted
This commit is contained in:
parent
4318162fa8
commit
30d5ca5ace
27
build.gradle
27
build.gradle
@ -8,7 +8,6 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//mainClassName = 'org.bdware.sc.ContractProcess'
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -57,17 +56,36 @@ task classJar(type: Jar, dependsOn: classes) {
|
|||||||
// classifier = ""
|
// 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) }
|
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
}
|
}
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Manifest-Version': project.version
|
attributes 'Manifest-Version': project.version
|
||||||
// attributes 'Main-Class': mainClassName
|
attributes 'Main-Class': 'org.bdware.sc.ContractProcess'
|
||||||
attributes 'Class-Path': libs
|
attributes 'Class-Path': libs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -111,7 +129,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
|
|||||||
from javadoc.destinationDir
|
from javadoc.destinationDir
|
||||||
}
|
}
|
||||||
//shadowJar {
|
//shadowJar {
|
||||||
// classifier = "jar"
|
// // classifier = "jar"
|
||||||
// dependencies {
|
// dependencies {
|
||||||
// include(dependency(fileTree(dir: 'lib', include: '*.jar')))
|
// include(dependency(fileTree(dir: 'lib', include: '*.jar')))
|
||||||
//// exclude(dependency('com.google.code.gson:gson:2.8.6'))
|
//// exclude(dependency('com.google.code.gson:gson:2.8.6'))
|
||||||
@ -129,6 +147,7 @@ publishing {
|
|||||||
artifact sourceJar
|
artifact sourceJar
|
||||||
artifact javadocJar
|
artifact javadocJar
|
||||||
artifact classJar
|
artifact classJar
|
||||||
|
// artifact customFatJar
|
||||||
pom {
|
pom {
|
||||||
name = "bdware-cp"
|
name = "bdware-cp"
|
||||||
description = "cp"
|
description = "cp"
|
||||||
|
Loading…
Reference in New Issue
Block a user