2024-12-03 21:34:44 +01:00
|
|
|
import io.papermc.paperweight.util.defaultJavaLauncher
|
2023-11-23 05:56:28 +01:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
2024-12-06 22:46:41 +01:00
|
|
|
id("io.papermc.paperweight.source-generator")
|
2023-11-23 05:56:28 +01:00
|
|
|
}
|
|
|
|
|
2024-12-06 22:46:41 +01:00
|
|
|
paperweight {
|
|
|
|
atFile.set(layout.projectDirectory.file("wideners.at"))
|
2023-11-23 05:56:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-12-06 22:46:41 +01:00
|
|
|
minecraftJar(project(":paper-server", "mappedJarOutgoing"))
|
|
|
|
implementation(project(":paper-server", "macheMinecraftLibraries"))
|
|
|
|
|
2023-11-23 05:56:28 +01:00
|
|
|
implementation("com.squareup:javapoet:1.13.0")
|
|
|
|
implementation(project(":paper-api"))
|
2024-01-15 20:36:10 +01:00
|
|
|
implementation("io.github.classgraph:classgraph:4.8.47")
|
2024-10-26 18:03:25 +02:00
|
|
|
implementation("org.jetbrains:annotations:24.1.0")
|
2024-04-27 22:30:15 +02:00
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
2024-04-26 03:40:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register<JavaExec>("generate") {
|
2024-04-28 03:00:01 +02:00
|
|
|
dependsOn(tasks.check)
|
2024-04-26 03:40:50 +02:00
|
|
|
mainClass.set("io.papermc.generator.Main")
|
|
|
|
classpath(sourceSets.main.map { it.runtimeClasspath })
|
|
|
|
args(projectDir.toPath().resolve("generated").toString())
|
2024-12-03 21:34:44 +01:00
|
|
|
javaLauncher = javaToolchains.defaultJavaLauncher(project)
|
2023-11-23 05:56:28 +01:00
|
|
|
}
|
|
|
|
|
2024-04-27 22:30:15 +02:00
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
2023-11-23 05:56:28 +01:00
|
|
|
group = "io.papermc.paper"
|
|
|
|
version = "1.0-SNAPSHOT"
|