Further work on Forge 1.13 compat.
This commit is contained in:
@ -2,7 +2,7 @@ buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url = "http://files.minecraftforge.net/maven" }
|
||||
maven { url = "https://files.minecraftforge.net/maven" }
|
||||
jcenter()
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ buildscript {
|
||||
apply plugin: 'net.minecraftforge.gradle'
|
||||
|
||||
def minecraftVersion = "1.13"
|
||||
def forgeVersion = "24.0.16-1.13-pre"
|
||||
def forgeVersion = "24.0.32-1.13-pre"
|
||||
|
||||
dependencies {
|
||||
compile project(':worldedit-core')
|
||||
@ -28,26 +28,28 @@ sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
minecraft {
|
||||
mappings channel: 'snapshot', version: '20181215'
|
||||
// runDir = 'run'
|
||||
|
||||
// replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
|
||||
// replace "%VERSION%", project.version
|
||||
mappings channel: 'snapshot', version: '20180921-1.13'
|
||||
}
|
||||
|
||||
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraftVersion}"
|
||||
|
||||
processResources {
|
||||
from (sourceSets.main.resources.srcDirs) {
|
||||
expand 'version': project.version,
|
||||
'mcVersion': minecraftVersion,
|
||||
'forgeVersion': forgeVersion,
|
||||
'internalVersion': project.internalVersion
|
||||
include 'mcmod.info'
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property 'version', project.version
|
||||
inputs.property 'mcversion', minecraftVersion
|
||||
inputs.property 'internalVersion', internalVersion
|
||||
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'META_INF/mods.toml'
|
||||
|
||||
// replace version and mcversion
|
||||
expand 'version':project.version, 'mcversion': minecraftVersion, 'internalVersion': internalVersion
|
||||
}
|
||||
|
||||
from (sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
// copy everything else except the mcmod.info
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'META_INF/mods.toml'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user