12345678910111213141516171819202122232425262728293031323334353637383940 |
- plugins {
- id 'java'
- id 'application'
- id "com.github.johnrengelman.shadow" version "7.1.2"
- }
- group 'com.incubator.game'
- version '1.0-SNAPSHOT'
- application {
- mainClassName = 'com.incubator.game.GameServerStart'
- }
- //禁掉jar task
- jar.enabled = false
- // 执行shadow的打包
- shadowJar {
- zip64 true
- baseName = 'incubator-game'
- //classifier是生成jar包的后缀
- classifier = null
- version = '1.0-SNAPSHOT'
- manifest {
- attributes 'Main-Class': 'com.incubator.game.GameServerStart'
- }
- }
- dependencies {
- implementation project(path: ':incubator-core')
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
- }
- assemble.dependsOn(shadowJar)
- test {
- useJUnitPlatform()
- }
|