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()
|
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/")
|
|
|
|
}
|
2021-11-27 10:54:34 +08:00
|
|
|
maven {
|
|
|
|
name = "PaperMC"
|
|
|
|
url = uri("https://papermc.io/repo/repository/maven-public/")
|
|
|
|
content {
|
|
|
|
includeGroupByRegex("io\\.papermc\\..*")
|
|
|
|
}
|
|
|
|
}
|
2021-06-13 11:39:38 +08:00
|
|
|
maven {
|
|
|
|
name = "Forge Maven"
|
|
|
|
url = uri("https://maven.minecraftforge.net/")
|
|
|
|
content {
|
|
|
|
includeGroupByRegex("net\\.minecraftforge\\..*")
|
|
|
|
}
|
|
|
|
}
|
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())
|
2021-07-29 14:01:35 +08:00
|
|
|
implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.6.1")
|
2021-01-25 18:14:09 +08:00
|
|
|
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0")
|
2021-11-14 13:54:21 +08:00
|
|
|
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0")
|
|
|
|
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.24.23")
|
2021-01-25 18:14:09 +08:00
|
|
|
implementation("org.spongepowered:SpongeGradle:0.11.5")
|
2021-12-01 09:11:35 +08:00
|
|
|
implementation("net.minecraftforge.gradle:ForgeGradle:5.1.26")
|
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")
|
2021-12-21 17:49:48 +08:00
|
|
|
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.3.3")
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|