3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-09 13:00:05 +01:00
FastAsyncWorldEdit/worldedit-forge/build.gradle

107 Zeilen
2.8 KiB
Groovy

buildscript {
repositories {
2018-11-18 08:47:43 +01:00
mavenLocal()
mavenCentral()
2018-12-15 13:13:13 +01:00
maven { url = "https://files.minecraftforge.net/maven" }
jcenter()
}
dependencies {
2018-11-18 08:47:43 +01:00
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
2018-11-18 08:47:43 +01:00
apply plugin: 'net.minecraftforge.gradle'
2019-02-16 06:20:52 +01:00
def minecraftVersion = "1.13.2"
def forgeVersion = "25.0.76"
2018-11-18 08:47:43 +01:00
dependencies {
compile project(':worldedit-core')
2018-11-18 08:47:43 +01:00
2019-02-16 06:20:52 +01:00
minecraft "net.minecraftforge:forge:${minecraftVersion}-${forgeVersion}"
2018-11-18 08:47:43 +01:00
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.0-rc1'
}
2017-08-17 01:07:18 +02:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
mappings channel: 'snapshot', version: '20190311-1.13.2'
runs {
client = {
// recommended logging data for a userdev environment
properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
// recommended logging level for the console
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run').canonicalPath
source sourceSets.main
}
server = {
// recommended logging data for a userdev environment
properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
// recommended logging level for the console
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run').canonicalPath
source sourceSets.main
}
}
accessTransformer = file('worldedit_at.cfg')
}
2018-11-18 08:47:43 +01:00
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraftVersion}"
processResources {
2018-12-15 13:13:13 +01:00
// 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
}
2018-12-15 13:13:13 +01:00
// copy everything else except the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'META_INF/mods.toml'
}
}
jar {
manifest {
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
2016-01-12 11:03:02 +01:00
"WorldEdit-Version": version,
"FMLAT": "worldedit_at.cfg")
}
}
shadowJar {
dependencies {
include(dependency(':worldedit-core'))
}
}
afterEvaluate {
reobf {
shadowJar {
mappings = createMcpToSrg.output
}
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
artifacts {
archives deobfJar
}