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 {
|
2021-04-07 04:45:57 +08:00
|
|
|
mavenCentral()
|
2019-07-11 04:13:41 +08:00
|
|
|
gradlePluginPortal()
|
|
|
|
maven {
|
|
|
|
name = "Forge Maven"
|
2021-04-21 11:20:26 +08:00
|
|
|
url = uri("https://maven.minecraftforge.net/")
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|
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")
|
|
|
|
}
|
2020-02-22 13:50:26 +08:00
|
|
|
maven {
|
|
|
|
name = "EngineHub Repository"
|
|
|
|
url = uri("https://maven.enginehub.org/repo/")
|
|
|
|
}
|
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")
|
2021-01-25 18:14:09 +08:00
|
|
|
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0")
|
|
|
|
implementation("com.github.jengelman.gradle.plugins:shadow:6.1.0")
|
2019-07-11 04:13:41 +08:00
|
|
|
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")
|
2021-03-28 14:30:10 +08:00
|
|
|
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.21.0")
|
2021-01-25 18:14:09 +08:00
|
|
|
implementation("org.spongepowered:SpongeGradle:0.11.5")
|
2021-04-21 11:20:26 +08:00
|
|
|
implementation("net.minecraftforge.gradle:ForgeGradle:4.1.7")
|
2019-09-23 04:42:26 +08:00
|
|
|
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
|
|
|
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
2020-02-22 13:50:26 +08:00
|
|
|
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.1.0")
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|