2020-05-30 10:02:34 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2021-07-24 10:53:37 +00:00
|
|
|
maven { url = 'https://maven.minecraftforge.net' }
|
2020-05-30 10:02:34 +00:00
|
|
|
maven { url = 'https://repo.spongepowered.org/maven' }
|
|
|
|
mavenCentral()
|
2021-01-21 10:13:12 +00:00
|
|
|
maven { url = 'https://maven.izzel.io/releases' }
|
2021-08-26 14:17:58 +00:00
|
|
|
maven { url = 'https://maven.parchmentmc.org' }
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-08-26 14:17:58 +00:00
|
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: "${forge_gradle_version}", changing: true
|
|
|
|
classpath 'org.parchmentmc:librarian:1.+'
|
2021-07-27 16:08:18 +00:00
|
|
|
classpath 'org.spongepowered:mixingradle:0.7.2-SNAPSHOT'
|
2021-07-26 12:20:33 +00:00
|
|
|
classpath "io.izzel.arclight:arclight-gradle-plugin:$agpVersion"
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
2021-08-26 14:17:58 +00:00
|
|
|
apply plugin: 'org.parchmentmc.librarian.forgegradle'
|
2020-05-30 10:02:34 +00:00
|
|
|
apply plugin: 'org.spongepowered.mixin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'io.izzel.arclight'
|
|
|
|
|
|
|
|
arclight {
|
|
|
|
mcVersion = minecraftVersion
|
|
|
|
forgeVersion = project.ext.forgeVersion
|
2021-07-24 10:53:37 +00:00
|
|
|
bukkitVersion = 'v1_17_R1'
|
2020-05-30 10:02:34 +00:00
|
|
|
wipeVersion = true
|
2021-07-30 07:09:18 +00:00
|
|
|
reobfVersion = true
|
2020-07-05 09:29:40 +00:00
|
|
|
accessTransformer = project.file('bukkit.at')
|
2021-07-24 10:53:37 +00:00
|
|
|
// packageName = 'spigot'
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|
|
|
|
|
2021-07-30 07:09:18 +00:00
|
|
|
configurations {
|
|
|
|
embed
|
|
|
|
}
|
|
|
|
|
2021-07-27 16:08:18 +00:00
|
|
|
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
|
2020-05-30 10:02:34 +00:00
|
|
|
|
|
|
|
minecraft {
|
2021-08-26 14:17:58 +00:00
|
|
|
mappings channel: 'parchment', version: "2021.08.22-$minecraftVersion"
|
2020-05-30 10:02:34 +00:00
|
|
|
accessTransformer = project.file('src/main/resources/META-INF/accesstransformer.cfg')
|
2020-05-21 02:33:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2020-05-30 10:02:34 +00:00
|
|
|
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://files.minecraftforge.net/maven/' }
|
2020-08-22 12:26:14 +00:00
|
|
|
maven { url = 'https://jitpack.io/' }
|
2021-02-08 16:03:59 +00:00
|
|
|
maven { url = 'https://maven.izzel.io/releases' }
|
2020-05-21 02:33:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-05-30 10:02:34 +00:00
|
|
|
minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"
|
2021-01-28 11:51:42 +00:00
|
|
|
implementation "org.spigotmc:spigot-api:$minecraftVersion-R0.1-SNAPSHOT@jar"
|
|
|
|
implementation 'org.jetbrains:annotations:19.0.0'
|
2021-07-24 10:53:37 +00:00
|
|
|
|
2021-09-08 05:19:27 +00:00
|
|
|
implementation "org.spongepowered:mixin:$mixinVersion"
|
2021-07-26 12:20:33 +00:00
|
|
|
annotationProcessor 'org.spongepowered:mixin:0.8.3:processor'
|
2021-07-24 10:53:37 +00:00
|
|
|
|
2021-01-28 11:51:42 +00:00
|
|
|
implementation 'com.github.ArclightTeam:mixin-tools:1.0.0'
|
|
|
|
annotationProcessor 'com.github.ArclightTeam:mixin-tools:1.0.0'
|
2021-07-24 10:53:37 +00:00
|
|
|
|
2021-01-28 11:51:42 +00:00
|
|
|
implementation 'jline:jline:2.12.1'
|
2021-03-13 04:44:58 +00:00
|
|
|
implementation 'net.md-5:SpecialSource:1.9.0'
|
2021-01-28 11:51:42 +00:00
|
|
|
implementation 'org.apache.logging.log4j:log4j-jul:2.11.2'
|
|
|
|
implementation 'net.md-5:bungeecord-chat:1.16-R0.4'
|
|
|
|
implementation 'mysql:mysql-connector-java:5.1.49'
|
|
|
|
implementation 'org.yaml:snakeyaml:1.27'
|
2021-06-13 14:06:33 +00:00
|
|
|
implementation "io.izzel:tools:$toolsVersion"
|
|
|
|
implementation "io.izzel.arclight:arclight-api:$apiVersion"
|
2021-01-28 11:51:42 +00:00
|
|
|
implementation project(':i18n-config')
|
2021-07-30 07:09:18 +00:00
|
|
|
embed 'net.md-5:bungeecord-chat:1.16-R0.4@jar'
|
|
|
|
embed "org.spigotmc:spigot-api:$minecraftVersion-R0.1-SNAPSHOT@jar"
|
2020-05-21 02:33:47 +00:00
|
|
|
}
|
2020-05-30 10:02:34 +00:00
|
|
|
|
2021-07-30 07:09:18 +00:00
|
|
|
jar {
|
|
|
|
manifest.attributes 'MixinConnector': 'io.izzel.arclight.common.mod.ArclightConnector'
|
|
|
|
manifest.attributes 'Implementation-Title': 'Arclight'
|
|
|
|
manifest.attributes 'Implementation-Version': "arclight-$minecraftVersion-${project.version}-$gitHash"
|
|
|
|
manifest.attributes 'Implementation-Vendor': 'Arclight Team'
|
|
|
|
manifest.attributes 'Implementation-Timestamp': new Date().format("yyyy-MM-dd HH:mm:ss")
|
|
|
|
from(configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }) {
|
|
|
|
exclude "META-INF/MANIFEST.MF"
|
|
|
|
exclude "META-INF/*.SF"
|
|
|
|
exclude "META-INF/*.DSA"
|
|
|
|
exclude "META-INF/*.RSA"
|
|
|
|
exclude "LICENSE.txt"
|
|
|
|
exclude "META-INF/services/**"
|
|
|
|
exclude "org/apache/commons/lang/enum/**"
|
|
|
|
}
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|
|
|
|
|
2021-07-30 07:09:18 +00:00
|
|
|
processResources {
|
|
|
|
filesMatching("**/mods.toml") {
|
|
|
|
expand 'version': "$minecraftVersion-${project.version}-$gitHash"
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 07:09:18 +00:00
|
|
|
remapSpigotJar {
|
|
|
|
includes.add('net/minecraft/world/level/block/ChestBlock$DoubleInventory')
|
|
|
|
includes.add('net/minecraft/tileentity/LecternTileEntity$LecternInventory')
|
|
|
|
}
|
|
|
|
|
2020-05-30 10:02:34 +00:00
|
|
|
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}"
|
|
|
|
]
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|