plugins { `java-library` `maven-publish` id("com.gradleup.shadow") version "8.3.6" } group = "fr.luc" version = "1.0.0-SNAPSHOT" repositories { mavenCentral() maven("https://repo.papermc.io/repository/maven-public/") maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") maven("https://oss.sonatype.org/content/groups/public/") maven("https://jitpack.io") } dependencies { // Paper API 1.20.4 (Fournit Bukkit, CraftBukkit abstractions et Adventure natif) compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT") // Kyori Adventure & MiniMessage compileOnly("net.kyori:adventure-api:4.17.0") compileOnly("net.kyori:adventure-text-minimessage:4.17.0") // Tests unitaires JUnit 5 & Mockito testImplementation(platform("org.junit:junit-bom:5.10.2")) testImplementation("org.junit.jupiter:junit-jupiter") testRuntimeOnly("org.junit.platform:junit-platform-launcher") testImplementation("org.mockito:mockito-core:5.11.0") testImplementation("org.mockito:mockito-junit-jupiter:5.11.0") // Permet d'avoir Paper API et Adventure dans les tests testImplementation("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT") testImplementation("net.kyori:adventure-api:4.17.0") testImplementation("net.kyori:adventure-text-minimessage:4.17.0") } java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 withSourcesJar() withJavadocJar() } tasks.withType { options.encoding = "UTF-8" options.release.set(17) } tasks.withType { options.encoding = "UTF-8" (options as StandardJavadocDocletOptions).apply { addStringOption("Xdoclint:none", "-quiet") encoding = "UTF-8" charSet = "UTF-8" } } tasks.shadowJar { archiveClassifier.set("") } tasks.build { dependsOn(tasks.shadowJar) }