2019-09-23 04:42:26 +08:00
|
|
|
import java.util.Properties
|
|
|
|
|
2019-07-11 04:13:41 +08:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
kotlin("jvm") version embeddedKotlinVersion
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
gradlePluginPortal()
|
|
|
|
maven {
|
|
|
|
name = "Forge Maven"
|
|
|
|
url = uri("https://files.minecraftforge.net/maven")
|
|
|
|
}
|
2019-09-23 04:42:26 +08:00
|
|
|
maven {
|
|
|
|
name = "Fabric"
|
|
|
|
url = uri("https://maven.fabricmc.net/")
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "sponge"
|
|
|
|
url = uri("https://repo.spongepowered.org/maven")
|
|
|
|
}
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
|
|
|
// Fabric needs this.
|
2019-07-16 00:14:02 +08:00
|
|
|
force(
|
|
|
|
"commons-io:commons-io:2.5",
|
|
|
|
"org.ow2.asm:asm:7.1",
|
|
|
|
"org.ow2.asm:asm-commons:7.1"
|
|
|
|
)
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-23 04:42:26 +08:00
|
|
|
val properties = Properties().also { props ->
|
|
|
|
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
|
|
|
|
props.load(it)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val loomVersion: String = properties.getProperty("loom.version")
|
|
|
|
val mixinVersion: String = properties.getProperty("mixin.version")
|
|
|
|
|
2019-07-11 04:13:41 +08:00
|
|
|
dependencies {
|
|
|
|
implementation(gradleApi())
|
|
|
|
implementation("gradle.plugin.net.minecrell:licenser:0.4.1")
|
|
|
|
implementation("org.ajoberstar.grgit:grgit-gradle:3.1.1")
|
|
|
|
implementation("com.github.jengelman.gradle.plugins:shadow:5.1.0")
|
|
|
|
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
|
|
|
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
|
|
|
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.9.7")
|
|
|
|
implementation("gradle.plugin.org.spongepowered:spongegradle:0.9.0")
|
2020-02-01 06:03:10 +08:00
|
|
|
implementation("net.minecraftforge.gradle:ForgeGradle:3.0.159")
|
2019-09-23 04:42:26 +08:00
|
|
|
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
|
|
|
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
2019-12-09 10:46:18 +08:00
|
|
|
implementation("gradle.plugin.com.mendhak.gradlecrowdin:plugin:0.1.0")
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|