Plex-FAWE/buildSrc/build.gradle.kts

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

42 lines
1.0 KiB
Plaintext
Raw Normal View History

import java.util.Properties
plugins {
`kotlin-dsl`
kotlin("jvm") version embeddedKotlinVersion
}
repositories {
mavenCentral()
gradlePluginPortal()
maven {
2021-01-21 12:34:33 +00:00
name = "EngineHub"
url = uri("https://maven.enginehub.org/repo/")
}
2021-11-29 23:16:19 +00:00
maven {
name = "PaperMC"
url = uri("https://repo.papermc.io/repository/maven-public/")
2021-11-29 23:16:19 +00:00
content {
includeGroupByRegex("io\\.papermc\\..*")
}
}
}
val properties = Properties().also { props ->
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
props.load(it)
}
}
dependencies {
implementation(gradleApi())
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.1")
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.3.8")
}
2021-11-25 17:23:18 +00:00
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17))
}
}