mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
43 lines
No EOL
825 B
Groovy
43 lines
No EOL
825 B
Groovy
apply plugin: 'application'
|
|
project.ext.mainClass = 'brainwine.bootstrap.Bootstrap'
|
|
project.ext.runDir = file("$rootDir/run")
|
|
project.ext.outputDir = file("$rootDir/build")
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':api')
|
|
implementation project(':gameserver')
|
|
}
|
|
|
|
application {
|
|
mainClass = project.ext.mainClass
|
|
}
|
|
|
|
run {
|
|
workingDir = project.ext.runDir
|
|
}
|
|
|
|
|
|
jar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
archiveBaseName = 'brainwine'
|
|
|
|
manifest {
|
|
attributes 'Main-Class': project.ext.mainClass,
|
|
'Multi-Release': 'true'
|
|
}
|
|
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
}
|
|
|
|
task copyJar(type: Copy) {
|
|
from jar
|
|
into project.ext.outputDir
|
|
}
|
|
|
|
jar.finalizedBy copyJar |