mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +01:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
import io.papermc.paperweight.util.defaultJavaLauncher
|
|
|
|
plugins {
|
|
java
|
|
id("io.papermc.paperweight.source-generator")
|
|
}
|
|
|
|
paperweight {
|
|
atFile.set(layout.projectDirectory.file("wideners.at"))
|
|
}
|
|
|
|
dependencies {
|
|
minecraftJar(project(":paper-server", "mappedJarOutgoing"))
|
|
implementation(project(":paper-server", "macheMinecraftLibraries"))
|
|
|
|
implementation("com.squareup:javapoet:1.13.0")
|
|
implementation(project(":paper-api"))
|
|
implementation("io.github.classgraph:classgraph:4.8.47")
|
|
implementation("org.jetbrains:annotations:24.1.0")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
tasks.register<JavaExec>("generate") {
|
|
dependsOn(tasks.check)
|
|
mainClass.set("io.papermc.generator.Main")
|
|
classpath(sourceSets.main.map { it.runtimeClasspath })
|
|
args(projectDir.toPath().resolve("generated").toString())
|
|
javaLauncher = javaToolchains.defaultJavaLauncher(project)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
group = "io.papermc.paper"
|
|
version = "1.0-SNAPSHOT"
|