打包版本号

back_recharge
jiahuiwen 2019-07-05 15:58:53 +08:00
parent 269d4e0267
commit aeeeb61995
1 changed files with 10 additions and 11 deletions

View File

@ -12,12 +12,20 @@ repositories {
mavenCentral() mavenCentral()
} }
jar {
baseName = 'serverlogic'
version = '1.0.0'
manifest {
attributes 'Main-Class': 'com.ljsd.GameApplication'
}
}
dependencies { dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile project(":netty") compile project(":netty")
compile project(":hotfix") compile project(":hotfix")
compile project(":common") compile project(":common")
testCompile group: 'junit', name: 'junit', version: '4.12'
compile("org.javassist:javassist:3.18.2-GA") compile("org.javassist:javassist:3.18.2-GA")
compile("org.springframework.boot:spring-boot:1.5.9.RELEASE") compile("org.springframework.boot:spring-boot:1.5.9.RELEASE")
compile("org.springframework.boot:spring-boot-starter-test:1.5.9.RELEASE") compile("org.springframework.boot:spring-boot-starter-test:1.5.9.RELEASE")
@ -35,15 +43,6 @@ dependencies {
compile files("${System.properties['java.home']}/../lib/tools.jar") compile files("${System.properties['java.home']}/../lib/tools.jar")
} }
jar {
baseName = 'serverlogic'
version = '1.0.0'
manifest {
attributes 'Main-Class': 'com.ljsd.GameApplication'
}
}
//JAR //JAR
task taskJar(type:Jar, dependsOn: compileJava) { task taskJar(type:Jar, dependsOn: compileJava) {
from 'build/classes/main' from 'build/classes/main'