/* * This file was generated by the Gradle 'init' task. * * This generated file contains a sample Java library project to get you started. * For more details on building Java & JVM projects, please refer to https://docs.gradle.org/9.2.1/userguide/building_java_projects.html in the Gradle documentation. */ plugins { `java-library` id("com.gradleup.shadow") version "9.3.0" id("xyz.jpenilla.run-velocity") version "3.0.2" } repositories { mavenCentral() maven { name = "papermc" url = uri("https://repo.papermc.io/repository/maven-public/") } } dependencies { // This dependency is exported to consumers, that is to say found on their compile classpath. api(libs.commons.math3) // This dependency is used internally, and not exposed to consumers on their own compile classpath. implementation(libs.guava) compileOnly("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT") annotationProcessor("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT") } // Apply a specific Java toolchain to ease working on different environments. java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } tasks { shadowJar { archiveFileName.set("mineroo-velocity.jar") } runVelocity { // Configure the Velocity version for our task. // This is the only required configuration besides applying the plugin. // Your plugin's jar (or shadowJar if present) will be used automatically. velocityVersion("3.4.0-SNAPSHOT") } }