mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
54 lines
No EOL
994 B
Groovy
54 lines
No EOL
994 B
Groovy
plugins {
|
|
id 'application'
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.15.0'
|
|
implementation project(':api')
|
|
implementation project(':gameserver')
|
|
}
|
|
|
|
application {
|
|
mainClass = 'brainwine.Bootstrap'
|
|
}
|
|
|
|
run {
|
|
workingDir = file('run')
|
|
}
|
|
|
|
jar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
archiveBaseName = 'brainwine'
|
|
|
|
manifest {
|
|
attributes 'Main-Class': application.mainClass,
|
|
'Multi-Release': 'true'
|
|
}
|
|
}
|
|
|
|
startScripts {
|
|
doLast {
|
|
windowsScript.text = windowsScript.text.replace('..', '')
|
|
unixScript.text = unixScript.text.replace('..', '')
|
|
}
|
|
}
|
|
|
|
distZip {
|
|
eachFile { file ->
|
|
if(file.path.contains('/bin/')) {
|
|
file.setPath(file.path.replace('bin/', ''))
|
|
}
|
|
}
|
|
}
|
|
|
|
distTar {
|
|
eachFile { file ->
|
|
if(file.path.contains('/bin/')) {
|
|
file.setPath(file.path.replace('bin/', ''))
|
|
}
|
|
}
|
|
} |