Skip to content

Commit

Permalink
chore: shadowJar XSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
Badbird5907 committed Oct 17, 2024
1 parent 22f7650 commit 6b8c35b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 5 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ subprojects {
compileOnly("org.jetbrains:annotations:24.1.0")
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")

implementation("com.github.cryptomorin:XSeries:11.3.0")

val adventureVersion = "4.17.0"
api("net.kyori:adventure-api:$adventureVersion")
api("net.kyori:adventure-text-serializer-legacy:$adventureVersion")
api("net.kyori:adventure-text-serializer-gson:$adventureVersion")
api("net.kyori:adventure-text-minimessage:$adventureVersion")
api("net.kyori:adventure-platform-bukkit:4.3.3")
compileOnly("net.kyori:adventure-api:$adventureVersion")
compileOnly("net.kyori:adventure-text-serializer-legacy:$adventureVersion")
compileOnly("net.kyori:adventure-text-serializer-gson:$adventureVersion")
compileOnly("net.kyori:adventure-text-minimessage:$adventureVersion")
compileOnly("net.kyori:adventure-platform-bukkit:4.3.3")
}

tasks {
Expand Down
10 changes: 9 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
`maven-publish`
signing
id("com.gradleup.shadow") version "8.3.3"
id("io.freefair.lombok") version "8.10.2"
}

Expand All @@ -11,6 +12,7 @@ repositories {

dependencies {
compileOnly("com.mojang:authlib:6.0.56")
implementation("com.github.cryptomorin:XSeries:11.3.0")
}

val javaComponent: SoftwareComponent = components["java"]
Expand All @@ -21,7 +23,13 @@ java {
}

tasks {
shadowJar {
archiveClassifier.set("")
}

build {
dependsOn(shadowJar)
}
val sourcesJar by creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
Expand Down Expand Up @@ -79,7 +87,7 @@ tasks {

repositories {
repositories {
maven ("https://repo.octopvp.net/public"){
maven("https://repo.octopvp.net/public") {
name = "octomc"
credentials(PasswordCredentials::class)
authentication {
Expand Down

0 comments on commit 6b8c35b

Please sign in to comment.