Arclight/arclight-common/build.gradle

87 lines
2.6 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://repo.spongepowered.org/maven' }
jcenter()
mavenCentral()
maven { url = 'https://jitpack.io' }
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath 'com.github.IzzelAliz:arclight-gradle-plugin:1.3'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'io.izzel.arclight'
ext {
2020-05-30 12:16:25 +00:00
minecraftVersion = '1.15.2'
forgeVersion = '31.2.0'
}
arclight {
mcVersion = minecraftVersion
forgeVersion = project.ext.forgeVersion
2020-05-30 12:16:25 +00:00
bukkitVersion = 'v1_15_R1'
wipeVersion = true
reobfVersion = false
}
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
2020-05-30 12:16:25 +00:00
mappings channel: 'snapshot', version: "20200530-1.15.1"
accessTransformer = project.file('src/main/resources/META-INF/accesstransformer.cfg')
2020-05-21 02:33:47 +00:00
}
repositories {
jcenter()
maven { url = 'https://repo.spongepowered.org/maven' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.codemc.io/repository/nms/' }
maven { url = 'https://files.minecraftforge.net/maven/' }
2020-05-21 02:33:47 +00:00
}
dependencies {
minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"
compile "org.spigotmc:spigot-api:$minecraftVersion-R0.1-SNAPSHOT@jar"
compile 'org.jetbrains:annotations:19.0.0'
compile 'org.spongepowered:mixin:0.8'
compile 'jline:jline:2.12.1'
compile 'net.md-5:SpecialSource:1.8.6'
compile 'org.apache.logging.log4j:log4j-jul:2.11.2'
compile 'net.md-5:bungeecord-chat:1.13-SNAPSHOT'
compile 'mysql:mysql-connector-java:5.1.47'
compile 'org.yaml:snakeyaml:1.23'
2020-05-21 02:33:47 +00:00
compile project(':arclight-api')
2020-06-09 13:22:16 +00:00
compile project(':i18n-config')
2020-05-21 02:33:47 +00:00
}
remapSpigotJar {
includes.add('net/minecraft/block/ChestBlock$DoubleInventory')
}
generateArclightMeta {
doFirst {
throw new StopExecutionException()
}
}
mixin {
add sourceSets.main, 'mixins.arclight.refmap.json'
}
compileJava {
options.compilerArgs << '-XDignore.symbol.file' << '-XDenableSunApiLintControl'
options.encoding = 'UTF-8'
2020-06-15 11:22:10 +00:00
options.compilerArgs += [
"-AreobfTsrgFiles=${project.file('extra_mapping.tsrg').canonicalPath}"
]
}