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 {
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user