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