mirror of https://github.com/webbukkit/dynmap.git
Fix Forge 1.12.2 build
This commit is contained in:
parent
79c8add641
commit
d6aa2f9e17
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"java.configuration.updateBuildConfiguration": "automatic"
|
||||
}
|
|
@ -1 +1,4 @@
|
|||
/target/
|
||||
/build/
|
||||
/bin/
|
||||
/.classpath
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
/target/
|
||||
/build/
|
||||
/bin/
|
||||
/.classpath
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
/target/
|
||||
/build/
|
||||
/bin/
|
||||
/.classpath
|
||||
|
|
|
@ -71,6 +71,7 @@ shadowJar {
|
|||
attributes 'FMLAT': 'dynmap_at.cfg'
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar.doLast {
|
||||
task ->
|
||||
ant.checksum file: task.archivePath
|
||||
|
|
|
@ -13,10 +13,10 @@ buildscript {
|
|||
}
|
||||
|
||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
|
||||
dependencies {
|
||||
compile project(":DynmapCore")
|
||||
compile project(":DynmapCoreAPI")
|
||||
compile project(path: ":DynmapCore", configuration: "shadow")
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
|
@ -61,29 +61,15 @@ processResources
|
|||
rename '(.+_at.cfg)', 'META-INF/$1'
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'FMLAT': 'dynmap_at.cfg'
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
dependencies {
|
||||
include(dependency('com.googlecode.json-simple:json-simple:'))
|
||||
include(dependency('org.yaml:snakeyaml:'))
|
||||
include(dependency('com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:'))
|
||||
include(dependency('org.eclipse.jetty::'))
|
||||
include(dependency('org.eclipse.jetty.orbit:javax.servlet:'))
|
||||
include(dependency(':DynmapCore'))
|
||||
include(dependency(':DynmapCoreAPI'))
|
||||
}
|
||||
relocate('org.json.simple', 'org.dynmap.json.simple')
|
||||
relocate('org.yaml.snakeyaml', 'org.dynmap.snakeyaml')
|
||||
relocate('org.eclipse.jetty', 'org.dynmap.jetty')
|
||||
relocate('org.owasp.html', 'org.dynmap.org.owasp.html')
|
||||
relocate('javax.servlet', 'org.dynmap.javax.servlet' )
|
||||
}
|
||||
archiveName = "Dynmap-${parent.version}-forge-1.12.2.jar"
|
||||
destinationDir = file '../target'
|
||||
manifest {
|
||||
attributes 'FMLAT': 'dynmap_at.cfg'
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar.doLast {
|
||||
|
|
Loading…
Reference in New Issue