File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ plugins {
33 `java- library`
44 `maven- publish`
55 jacoco
6- alias(libs.plugins.publishdata)
76}
87
98group = " net.theevilreaper"
10- version = " 1.11.1 "
9+ version = " 1.11.2 "
1110description = " Aves"
1211
1312java {
@@ -60,34 +59,25 @@ tasks {
6059 }
6160}
6261
63- publishData {
64- addMainRepo(" https://repo.onelitefeather.dev/onelitefeather-releases" )
65- addMasterRepo(" https://repo.onelitefeather.dev/onelitefeather-releases" )
66- addSnapshotRepo(" https://repo.onelitefeather.dev/onelitefeather-snapshots" )
67- publishTask(" jar" )
68- }
69-
7062publishing {
71- publications {
72- create<MavenPublication >(" maven" ) {
73- // configure the publication as defined previously.
74- publishData.configurePublication(this )
75- version = publishData.getVersion(false )
76- }
63+ publications.create<MavenPublication >(" maven" ) {
64+ from(components[" java" ])
7765 }
66+
7867 repositories {
7968 maven {
8069 authentication {
8170 credentials(PasswordCredentials ::class ) {
82- // Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository
8371 username = System .getenv(" ONELITEFEATHER_MAVEN_USERNAME" )
8472 password = System .getenv(" ONELITEFEATHER_MAVEN_PASSWORD" )
8573 }
8674 }
87-
8875 name = " OneLiteFeatherRepository"
89- // Get the detected repository from the publish data
90- url = uri(publishData.getRepository())
76+ url = if (project.version.toString().contains(" SNAPSHOT" )) {
77+ uri(" https://repo.onelitefeather.dev/onelitefeather-snapshots" )
78+ } else {
79+ uri(" https://repo.onelitefeather.dev/onelitefeather-releases" )
80+ }
9181 }
9282 }
9383}
Original file line number Diff line number Diff line change 11rootProject.name = " aves"
2- pluginManagement {
3- repositories {
4- gradlePluginPortal()
5- maven(" https://eldonexus.de/repository/maven-public/" )
6- }
7- }
2+
83dependencyResolutionManagement {
94 repositories {
105 mavenCentral()
@@ -27,16 +22,13 @@ dependencyResolutionManagement {
2722 versionCatalogs {
2823 create(" libs" ) {
2924 version(" bom" , " 1.4.5" )
30- version(" publishdata" , " 1.4.0" )
3125 library(" mycelium.bom" , " net.onelitefeather" , " mycelium-bom" ).versionRef(" bom" )
3226 library(" minestom" ," net.minestom" , " minestom" ).withoutVersion()
3327 library(" adventure" , " net.kyori" , " adventure-text-minimessage" ).withoutVersion()
3428 library(" cyano" , " net.onelitefeather" , " cyano" ).withoutVersion()
3529 library(" junit-jupiter" , " org.junit.jupiter" , " junit-jupiter" ).withoutVersion()
3630 library(" junit-jupiter-engine" , " org.junit.jupiter" , " junit-jupiter-engine" ).withoutVersion()
3731 library(" junit.platform.launcher" , " org.junit.platform" , " junit-platform-launcher" ).withoutVersion()
38-
39- plugin(" publishdata" , " de.chojo.publishdata" ).versionRef(" publishdata" )
4032 }
4133 }
4234}
You can’t perform that action at this time.
0 commit comments