2019-09-23 04:42:26 +08:00
|
|
|
import java.util.Properties
|
|
|
|
|
2019-07-11 04:13:41 +08:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2022-06-08 06:42:21 +08:00
|
|
|
maven {
|
|
|
|
name = "PaperMC"
|
2023-03-05 14:52:44 +08:00
|
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
2022-06-08 06:42:21 +08:00
|
|
|
content {
|
|
|
|
includeGroupByRegex("io\\.papermc\\..*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "Forge Maven"
|
|
|
|
url = uri("https://maven.minecraftforge.net/")
|
|
|
|
content {
|
|
|
|
includeGroupByRegex("net\\.minecraftforge(|\\..*)$")
|
|
|
|
}
|
|
|
|
}
|
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/")
|
|
|
|
}
|
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")
|
2024-01-22 07:51:21 +08:00
|
|
|
implementation("org.ajoberstar.grgit:grgit-gradle:5.2.1")
|
2022-06-07 08:11:41 +08:00
|
|
|
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.0")
|
2023-06-04 13:40:08 +08:00
|
|
|
implementation("com.github.johnrengelman:shadow:8.1.1")
|
2024-01-22 07:51:21 +08:00
|
|
|
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:5.1.14")
|
2023-11-21 20:39:42 +08:00
|
|
|
implementation("org.spongepowered:spongegradle-plugin-development:2.2.0")
|
|
|
|
implementation("org.spongepowered:vanillagradle:0.2.1-20231105.223944-69")
|
2024-03-31 10:38:11 +08:00
|
|
|
implementation("net.minecraftforge.gradle:ForgeGradle:6.0.21")
|
2019-09-23 04:42:26 +08:00
|
|
|
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
|
|
|
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
2023-06-04 13:40:08 +08:00
|
|
|
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.2.0")
|
2024-01-22 07:51:21 +08:00
|
|
|
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.5.11")
|
2023-08-16 15:56:12 +08:00
|
|
|
implementation("org.spongepowered:mixingradle:0.7.38")
|
2019-07-11 04:13:41 +08:00
|
|
|
}
|