Skip to content

Instantly share code, notes, and snippets.

@Joedobo27
Last active October 26, 2019 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joedobo27/f5c3b35b501dc63e6c50862e452b1d06 to your computer and use it in GitHub Desktop.
Save Joedobo27/f5c3b35b501dc63e6c50862e452b1d06 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
group = "com.joedobo27"
version = "1.0.0"
sourceCompatibility = JavaVersion.VERSION_1_8
def WUServerPath = "C:\\Users\\Jason\\Documents\\WU\\WU-Server\\"
repositories {
mavenCentral()
}
dependencies {
compileOnly files("${WUServerPath}common.jar")
compileOnly files("${WUServerPath}server.jar")
compileOnly files("${WUServerPath}modlauncher.jar")
compileOnly files("${WUServerPath}javassist.jar")
compileOnly (files(WUServerPath + "mods\\jdbCommon\\jdbCommon.jar"))
// https://mvnrepository.com/artifact/junit/junit
testImplementation group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/com.intellij/annotations
compileOnly group: 'com.intellij', name: 'annotations', version: '12.0'
}
jar {
archiveName = "${project.name}.jar"
manifest {
attributes("Implementation-Version": project.version,
"Build-Jdk": sourceCompatibility)
}
}
task dist(type: Zip) {
into("mods", {
into(project.name, {
from jar
})
})
archiveName = "${project.name}-${project.version}.zip"
into("mods", {
into(project.name, {
from("ModResources")
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment