Skip to content

Commit

Permalink
Fix Forge 1.12.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeprimm committed Apr 25, 2020
1 parent 79c8add commit d6aa2f9
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}
3 changes: 3 additions & 0 deletions bukkit-helper-114-1/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/target/
/build/
/bin/
/.classpath
3 changes: 3 additions & 0 deletions bukkit-helper-114/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/target/
/build/
/bin/
/.classpath
3 changes: 3 additions & 0 deletions bukkit-helper-115/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/target/
/build/
/bin/
/.classpath
1 change: 1 addition & 0 deletions forge-1.11.2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ shadowJar {
attributes 'FMLAT': 'dynmap_at.cfg'
}
}

shadowJar.doLast {
task ->
ant.checksum file: task.archivePath
Expand Down
26 changes: 6 additions & 20 deletions forge-1.12.2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d6aa2f9

Please sign in to comment.