34 lines
800 B
Plaintext
34 lines
800 B
Plaintext
plugins {
|
|
`java-library`
|
|
}
|
|
|
|
version = project.extra["plugin_version"] as String
|
|
group = project.extra["plugin_group"] as String
|
|
base.archivesName = project.extra["plugin_base_name"] as String
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "papermc"
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
|
implementation("net.kyori:adventure-api:4.25.0")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
// Explicitly specify a Mojang-mapped server, see PaperMC docs
|
|
// https://docs.papermc.io/paper/dev/project-setup/#mojang-mappings
|
|
tasks.jar {
|
|
manifest {
|
|
attributes["paperweight-mappings-namespace"] = "mojang"
|
|
}
|
|
} |