WorldEdit/buildSrc/build.gradle.kts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
2.5 KiB
Plaintext
Raw Normal View History

import java.util.Properties
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 {
2024-04-24 16:17:53 +08:00
includeGroupAndSubgroups("io.papermc")
2022-06-08 06:42:21 +08:00
}
}
maven {
2024-04-24 16:17:53 +08:00
name = "NeoForged Maven"
url = uri("https://maven.neoforged.net/releases")
2022-06-08 06:42:21 +08:00
content {
2024-04-24 16:17:53 +08:00
includeGroupAndSubgroups("net.neoforged")
2022-06-08 06:42:21 +08:00
}
}
mavenCentral()
gradlePluginPortal()
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
maven {
name = "sponge"
url = uri("https://repo.spongepowered.org/maven")
}
maven {
name = "EngineHub Repository"
url = uri("https://maven.enginehub.org/repo/")
}
}
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")
dependencies {
implementation(gradleApi())
implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.6.1")
implementation("org.ajoberstar.grgit:grgit-gradle:5.2.2")
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.2")
implementation("com.github.johnrengelman:shadow:8.1.1")
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:5.2.0")
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-04-24 16:17:53 +08:00
val neoGradleVersion = "7.0.107"
implementation("net.neoforged.gradle:userdev:$neoGradleVersion")
implementation("net.neoforged.gradle:mixin:$neoGradleVersion")
implementation("net.fabricmc:fabric-loom:$loomVersion")
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.2.0")
2024-04-27 12:10:42 +08:00
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.6.0")
constraints {
val asmVersion = "[9.7,)"
implementation("org.ow2.asm:asm:$asmVersion") {
because("Need Java 21 support in shadow")
}
implementation("org.ow2.asm:asm-commons:$asmVersion") {
because("Need Java 21 support in shadow")
}
implementation("org.vafer:jdependency:[2.10,)") {
because("Need Java 21 support in shadow")
}
}
}