Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'java-library'
- id 'maven-publish'
- }
- dependencies {
- compileOnly "io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT"
- api "dev.triumphteam:triumph-gui:3.1.10"
- }
- def targetJavaVersion = 21
- java {
- withSourcesJar()
- def javaVersion = JavaVersion.toVersion(targetJavaVersion)
- sourceCompatibility = javaVersion
- targetCompatibility = javaVersion
- if (JavaVersion.current() < javaVersion) {
- toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
- }
- }
- tasks.withType(JavaCompile).configureEach {
- if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
- options.release = targetJavaVersion
- }
- }
- publishing {
- repositories {
- maven {
- url myMavenRepoWriteUrl
- credentials {
- username myMavenRepoWriteUsername
- password myMavenRepoWritePassword
- }
- }
- }
- }
- publishing {
- publications {
- maven(MavenPublication) {
- groupId = group
- artifactId = 'EdenorRP-api'
- version = version
- from components.java
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement