3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 19:02:36 +01:00
FastAsyncWorldEdit/worldedit-forge/build.gradle

93 Zeilen
2.0 KiB
Groovy

buildscript {
repositories {
mavenCentral()
maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
2016-01-12 10:46:10 +01:00
apply plugin: 'net.minecraftforge.gradle.forge'
2018-10-05 02:18:43 +02:00
configurations.all {
resolutionStrategy {
force 'org.ow2.asm:asm:5.2'
}
}
2017-08-17 01:07:18 +02:00
dependencies {
compile project(':worldedit-core')
2017-08-17 01:07:18 +02:00
compile 'org.spongepowered:spongeapi:6.0.0-SNAPSHOT'
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
repositories {
2016-01-12 10:46:10 +01:00
maven {
name = "Sponge"
url = "https://repo.spongepowered.org/maven"
}
}
2017-08-17 01:07:18 +02:00
ext.forgeVersion = "14.22.0.2456"
minecraft {
2017-08-17 01:07:18 +02:00
version = "1.12.1-${project.forgeVersion}"
mappings = "snapshot_20170815"
2016-01-12 10:46:10 +01:00
runDir = 'run'
replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
replace "%VERSION%", project.version
}
project.archivesBaseName = "${project.archivesBaseName}-mc${minecraft.version}"
processResources {
from (sourceSets.main.resources.srcDirs) {
expand 'version': project.version,
'mcVersion': project.minecraft.version,
2016-01-12 10:46:10 +01:00
'forgeVersion': project.forgeVersion,
'internalVersion': project.internalVersion
include 'mcmod.info'
}
from (sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
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'))
}
}
2016-01-12 10:46:10 +01:00
reobf {
shadowJar {
mappingType = 'SEARGE'
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
artifacts {
archives deobfJar
}