Update build.gradle

This commit is contained in:
Telesphoreo 2022-04-11 21:51:50 -05:00
parent 91563a7b4b
commit c59bbd67f0

View File

@ -8,12 +8,16 @@ plugins {
} }
group = "me.totalfreedom" group = "me.totalfreedom"
description = "BukkitTelnet"
version = "4.8-SNAPSHOT" version = "4.8-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven { maven {
url = uri("https://jitpack.io") url = uri("https://jitpack.io")
content {
includeGroup("com.github.MilkBowl")
}
} }
maven { maven {
url = uri("https://papermc.io/repo/repository/maven-public/") url = uri("https://papermc.io/repo/repository/maven-public/")
@ -22,14 +26,14 @@ repositories {
dependencies { dependencies {
compileOnly "io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT" compileOnly "io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT"
annotationProcessor "org.projectlombok:lombok:1.18.22"
library "org.projectlombok:lombok:1.18.22" library "org.projectlombok:lombok:1.18.22"
library "org.json:json:20220320" library "org.json:json:20220320"
compileOnly("com.github.MilkBowl:VaultAPI:1.7") { compileOnly("com.github.MilkBowl:VaultAPI:1.7") {
exclude group: "org.bukkit", module: "bukkit" exclude group: "org.bukkit", module: "bukkit"
} }
library 'org.apache.logging.log4j:log4j-api:2.17.2' library "org.apache.logging.log4j:log4j-api:2.17.2"
library 'org.apache.logging.log4j:log4j-core:2.17.2' library "org.apache.logging.log4j:log4j-core:2.17.2"
annotationProcessor "org.projectlombok:lombok:1.18.22"
} }
tasks { tasks {
jar { jar {
@ -67,12 +71,31 @@ shadowJar {
} }
publishing { publishing {
def config = configurations.getByName("library")
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {
groupId = project.group pom.withXml {
artifactId = "bukkittelnet" config.getAllDependencies().each { dependency ->
version = project.version asNode().dependencies[0].appendNode("dependency").with {
artifacts = [shadowJar] it.appendNode("groupId", dependency.group)
it.appendNode("artifactId", dependency.name)
it.appendNode("version", dependency.version)
it.appendNode("scope", "provided")
}
}
}
from(components.java)
}
}
repositories {
maven {
def releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases/")
def snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots/")
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv("plexUser")
password = System.getenv("plexPassword")
}
} }
} }
} }