Skip to content
Merged

v7.0 #42

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 28 additions & 44 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@ plugins {
id("com.gradleup.shadow") version("9.3.1")
}

group = "org.lushplugins"
version = "6.0.4"

allprojects {
apply(plugin = "java-library")
apply(plugin = "com.gradleup.shadow")
apply(plugin = "maven-publish")

group = "org.lushplugins"
version = "7.0.0"

repositories {
mavenLocal()
mavenCentral() // Adventure, MiniPlaceholders
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // Spigot
maven("https://repo.papermc.io/repository/maven-public/") // Paper
maven("https://repo.helpch.at/releases") // PlaceholderAPI
}

dependencies {
// Libraries
compileOnly("org.jetbrains:annotations:26.0.2")
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))

Expand All @@ -33,50 +38,29 @@ allprojects {
withType<JavaCompile> {
options.encoding = "UTF-8"
}

shadowJar {
archiveFileName.set("${project.name}-${project.version}.jar")
}
}
}

dependencies {
compileOnly("org.spigotmc:spigot-api:1.21.11-R0.2-SNAPSHOT")
compileOnly("net.kyori:adventure-text-serializer-legacy:4.26.1")
compileOnly("net.kyori:adventure-text-minimessage:4.26.1")
compileOnly("io.github.miniplaceholders:miniplaceholders-api:3.1.0")
compileOnly("me.clip:placeholderapi:2.12.2")
}

publishing {
repositories {
maven {
name = "lushReleases"
url = uri("https://repo.lushplugins.org/releases")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
publishing {
repositories {
maven {
name = "lushReleases"
url = uri("https://repo.lushplugins.org/releases")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
}

maven {
name = "lushSnapshots"
url = uri("https://repo.lushplugins.org/snapshots")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
maven {
name = "lushSnapshots"
url = uri("https://repo.lushplugins.org/snapshots")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
}
}

publications {
create<MavenPublication>("maven") {
groupId = rootProject.group.toString()
artifactId = rootProject.name
version = rootProject.version.toString()
from(project.components["java"])
}
}
}
18 changes: 18 additions & 0 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
dependencies {
// Dependencies
compileOnly("org.spigotmc:spigot-api:1.21.11-R0.2-SNAPSHOT")

// Soft Dependencies
compileOnly("me.clip:placeholderapi:2.12.2")
}

publishing {
publications {
create<MavenPublication>("maven") {
groupId = rootProject.group.toString() + ".chatcolorhandler"
artifactId = project.name
version = rootProject.version.toString()
from(project.components["java"])
}
}
}
Loading
Loading