@@ -4,21 +4,26 @@ plugins {
44 id(" com.gradleup.shadow" ) version(" 9.3.1" )
55}
66
7- group = " org.lushplugins"
8- version = " 6.0.4"
9-
107allprojects {
118 apply (plugin = " java-library" )
12- apply (plugin = " com.gradleup.shadow" )
9+ apply (plugin = " maven-publish" )
10+
11+ group = " org.lushplugins"
12+ version = " 7.0.0"
1313
1414 repositories {
1515 mavenLocal()
16- mavenCentral() // Adventure, MiniPlaceholders
16+ mavenCentral()
1717 maven(" https://hub.spigotmc.org/nexus/content/repositories/snapshots/" ) // Spigot
1818 maven(" https://repo.papermc.io/repository/maven-public/" ) // Paper
1919 maven(" https://repo.helpch.at/releases" ) // PlaceholderAPI
2020 }
2121
22+ dependencies {
23+ // Libraries
24+ compileOnly(" org.jetbrains:annotations:26.0.2" )
25+ }
26+
2227 java {
2328 toolchain.languageVersion.set(JavaLanguageVersion .of(21 ))
2429
@@ -33,50 +38,29 @@ allprojects {
3338 withType<JavaCompile > {
3439 options.encoding = " UTF-8"
3540 }
36-
37- shadowJar {
38- archiveFileName.set(" ${project.name} -${project.version} .jar" )
39- }
4041 }
41- }
4242
43- dependencies {
44- compileOnly(" org.spigotmc:spigot-api:1.21.11-R0.2-SNAPSHOT" )
45- compileOnly(" net.kyori:adventure-text-serializer-legacy:4.26.1" )
46- compileOnly(" net.kyori:adventure-text-minimessage:4.26.1" )
47- compileOnly(" io.github.miniplaceholders:miniplaceholders-api:3.1.0" )
48- compileOnly(" me.clip:placeholderapi:2.12.2" )
49- }
50-
51- publishing {
52- repositories {
53- maven {
54- name = " lushReleases"
55- url = uri(" https://repo.lushplugins.org/releases" )
56- credentials(PasswordCredentials ::class )
57- authentication {
58- isAllowInsecureProtocol = true
59- create<BasicAuthentication >(" basic" )
43+ publishing {
44+ repositories {
45+ maven {
46+ name = " lushReleases"
47+ url = uri(" https://repo.lushplugins.org/releases" )
48+ credentials(PasswordCredentials ::class )
49+ authentication {
50+ isAllowInsecureProtocol = true
51+ create<BasicAuthentication >(" basic" )
52+ }
6053 }
61- }
6254
63- maven {
64- name = " lushSnapshots"
65- url = uri(" https://repo.lushplugins.org/snapshots" )
66- credentials(PasswordCredentials ::class )
67- authentication {
68- isAllowInsecureProtocol = true
69- create<BasicAuthentication >(" basic" )
55+ maven {
56+ name = " lushSnapshots"
57+ url = uri(" https://repo.lushplugins.org/snapshots" )
58+ credentials(PasswordCredentials ::class )
59+ authentication {
60+ isAllowInsecureProtocol = true
61+ create<BasicAuthentication >(" basic" )
62+ }
7063 }
7164 }
7265 }
73-
74- publications {
75- create<MavenPublication >(" maven" ) {
76- groupId = rootProject.group.toString()
77- artifactId = rootProject.name
78- version = rootProject.version.toString()
79- from(project.components[" java" ])
80- }
81- }
8266}
0 commit comments