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"
description = "BukkitTelnet"
version = "4.8-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
content {
includeGroup("com.github.MilkBowl")
}
}
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
@ -22,14 +26,14 @@ repositories {
dependencies {
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.json:json:20220320"
compileOnly("com.github.MilkBowl:VaultAPI:1.7") {
exclude group: "org.bukkit", module: "bukkit"
}
library 'org.apache.logging.log4j:log4j-api:2.17.2'
library 'org.apache.logging.log4j:log4j-core:2.17.2'
annotationProcessor "org.projectlombok:lombok:1.18.22"
library "org.apache.logging.log4j:log4j-api:2.17.2"
library "org.apache.logging.log4j:log4j-core:2.17.2"
}
tasks {
jar {
@ -67,12 +71,31 @@ shadowJar {
}
publishing {
def config = configurations.getByName("library")
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = "bukkittelnet"
version = project.version
artifacts = [shadowJar]
pom.withXml {
config.getAllDependencies().each { dependency ->
asNode().dependencies[0].appendNode("dependency").with {
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")
}
}
}
}