2019-09-22 20:42:26 +00:00
|
|
|
import java.util.Properties
|
|
|
|
|
2019-07-10 20:13:41 +00:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
2021-01-08 02:31:24 +00:00
|
|
|
kotlin("jvm") version embeddedKotlinVersion
|
2019-07-10 20:13:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2021-10-17 14:32:36 +00:00
|
|
|
mavenCentral()
|
2019-07-10 20:13:41 +00:00
|
|
|
gradlePluginPortal()
|
2020-04-01 01:13:32 +00:00
|
|
|
maven {
|
2021-01-21 12:34:33 +00:00
|
|
|
name = "EngineHub"
|
2020-04-01 01:13:32 +00:00
|
|
|
url = uri("https://maven.enginehub.org/repo/")
|
|
|
|
}
|
2021-11-29 23:16:19 +00:00
|
|
|
maven {
|
|
|
|
name = "PaperMC"
|
2022-05-21 10:08:10 +00:00
|
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
2021-11-29 23:16:19 +00:00
|
|
|
content {
|
|
|
|
includeGroupByRegex("io\\.papermc\\..*")
|
|
|
|
}
|
|
|
|
}
|
2019-07-10 20:13:41 +00:00
|
|
|
}
|
|
|
|
|
2019-09-22 20:42:26 +00:00
|
|
|
val properties = Properties().also { props ->
|
|
|
|
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
|
|
|
|
props.load(it)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-10 20:13:41 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(gradleApi())
|
2022-02-23 10:15:01 +00:00
|
|
|
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.1")
|
2022-01-05 16:11:06 +00:00
|
|
|
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
|
2022-06-28 08:17:22 +00:00
|
|
|
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.3.8")
|
2019-07-10 20:13:41 +00:00
|
|
|
}
|
2021-11-25 17:23:18 +00:00
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvmToolchain {
|
|
|
|
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
}
|