More Forge 1.13.2 updates
This commit is contained in:
parent
8bca1f5e34
commit
81163e16ab
2 changed files with 20 additions and 51 deletions
|
|
@ -13,6 +13,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle'
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":DynmapCore")
|
compile project(":DynmapCore")
|
||||||
|
|
@ -30,74 +31,38 @@ repositories {
|
||||||
url = 'http://files.minecraftforge.net/maven'
|
url = 'http://files.minecraftforge.net/maven'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'snapshot', version: '20180921-1.13'
|
mappings channel: 'snapshot', version: '20180921-1.13'
|
||||||
|
|
||||||
runs {
|
runs {
|
||||||
client {
|
|
||||||
workingDirectory project.file('run')
|
|
||||||
|
|
||||||
// Recommended logging data for a userdev environment
|
|
||||||
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
|
||||||
|
|
||||||
// Recommended logging level for the console
|
|
||||||
property 'forge.logging.console.level', 'debug'
|
|
||||||
|
|
||||||
mods {
|
|
||||||
dynmap {
|
|
||||||
source sourceSets.main
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
workingDirectory project.file('run')
|
workingDirectory project.file('run').canonicalPath
|
||||||
|
|
||||||
// Recommended logging data for a userdev environment
|
|
||||||
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
|
||||||
|
|
||||||
// Recommended logging level for the console
|
|
||||||
property 'forge.logging.console.level', 'debug'
|
|
||||||
|
|
||||||
mods {
|
|
||||||
dynmap {
|
|
||||||
source sourceSets.main
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//replaceIn "Version.java"
|
replaceIn "Version.java"
|
||||||
//replace "@VERSION@", project.version + '-' + project.ext.buildNumber
|
replace "@VERSION@", project.version + '-' + project.ext.buildNumber
|
||||||
//replace "@BUILD_NUMBER@", project.ext.buildNumber
|
replace "@BUILD_NUMBER@", project.ext.buildNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
project.archivesBaseName = "${project.archivesBaseName}-forge-1.13.2"
|
project.archivesBaseName = "${project.archivesBaseName}-forge-1.13.2"
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
|
inputs.property "version", project.version + '-' + project.ext.buildNumber
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
// replace stuff in mcmod.info, nothing else
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include 'mcmod.info'
|
include 'META-INF/mods.toml'
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand version: project.version + '-' + project.ext.buildNumber
|
||||||
version: project.version + '-' + project.ext.buildNumber,
|
|
||||||
mcversion: "1.13.2"
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
// copy everything else, thats not the mcmod.info
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
exclude 'mcmod.info'
|
include 'META-INF/mods.toml'
|
||||||
}
|
}
|
||||||
// Move access transformer to META-INF
|
|
||||||
rename '(.+_at.cfg)', 'META-INF/$1'
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
|
||||||
manifest {
|
|
||||||
attributes 'FMLAT': 'dynmap_at.cfg'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
|
@ -124,10 +89,13 @@ shadowJar.doLast {
|
||||||
ant.checksum file: task.archivePath
|
ant.checksum file: task.archivePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
//reobf {
|
reobf {
|
||||||
// mappings channel: 'snapshot', version: '20180921-1.13'
|
shadowJar {
|
||||||
//}
|
mappings = createMcpToSrg.output
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task deobfJar(type: Jar) {
|
task deobfJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ loaderVersion="[25,)"
|
||||||
issueTrackerURL="https://github.com/webbukkit/dynmap/issues"
|
issueTrackerURL="https://github.com/webbukkit/dynmap/issues"
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId="dynmap"
|
modId="dynmap"
|
||||||
version="${file.jarVersion}"
|
version="${version}"
|
||||||
displayName="Dynmap"
|
displayName="Dynmap"
|
||||||
#updateJSONURL="http://myurl.me/" #optional
|
#updateJSONURL="http://myurl.me/" #optional
|
||||||
#displayURL="http://example.com/" #optional
|
#displayURL="http://example.com/" #optional
|
||||||
|
|
@ -14,6 +14,7 @@ authors="mikeprimm"
|
||||||
description='''
|
description='''
|
||||||
Dynamic, Google-maps style rendered maps for your Minecraft server
|
Dynamic, Google-maps style rendered maps for your Minecraft server
|
||||||
'''
|
'''
|
||||||
|
|
||||||
[[dependencies.dynmap]]
|
[[dependencies.dynmap]]
|
||||||
modId="forge"
|
modId="forge"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue