foundation/build.gradle.kts

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-12-19 02:05:59 +00:00
plugins {
2021-12-21 08:58:44 +00:00
java
id("org.jetbrains.kotlin.jvm") version "1.6.10" apply false
id("com.github.johnrengelman.shadow") version "7.1.1" apply false
2021-12-19 02:05:59 +00:00
}
// Disable the JAR task for the root project.
tasks["jar"].enabled = false
2021-12-21 08:58:44 +00:00
allprojects {
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
2021-12-19 02:05:59 +00:00
}
}
2021-12-21 08:58:44 +00:00
subprojects {
plugins.apply("org.jetbrains.kotlin.jvm")
plugins.apply("com.github.johnrengelman.shadow")
2021-12-21 00:58:22 +00:00
2021-12-21 08:58:44 +00:00
group = "io.gorence"
version = "1.0-SNAPSHOT"
2021-12-21 00:58:22 +00:00
2021-12-21 08:58:44 +00:00
dependencies {
// Kotlin dependencies
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
2021-12-19 02:05:59 +00:00
2021-12-21 08:58:44 +00:00
// Paper API
compileOnly("io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT")
}
java {
val javaVersion = JavaVersion.toVersion(17)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
2021-12-19 02:05:59 +00:00
2021-12-21 08:58:44 +00:00
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
2021-12-19 02:05:59 +00:00
}
}