Skip to content

Commit 3ae3a9e

Browse files
committed
libreforge-updater
1 parent 17dbe52 commit 3ae3a9e

2 files changed

Lines changed: 29 additions & 8 deletions

File tree

build.gradle.kts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,21 @@ dependencies {
2424
}
2525
}
2626

27+
java {
28+
withJavadocJar()
29+
}
30+
2731
publishing {
2832
publications {
29-
create<MavenPublication>("shadow") {
33+
// maven-private: only the shaded jar
34+
create<MavenPublication>("private") {
3035
artifactId = if (project.hasProperty("free")) "${rootProject.name}-Free" else rootProject.name
3136
}
37+
// maven-releases + GitHub: full set (none, all, sources, javadoc)
38+
create<MavenPublication>("release") {
39+
artifactId = if (project.hasProperty("free")) "${rootProject.name}-Free" else rootProject.name
40+
from(components["java"])
41+
}
3242
}
3343
repositories {
3444
maven {
@@ -39,20 +49,31 @@ publishing {
3949
password = System.getenv("MAVEN_PASSWORD")
4050
}
4151
}
52+
maven {
53+
name = "AuxilorReleases"
54+
url = uri("https://repo.auxilor.io/repository/maven-releases/")
55+
credentials {
56+
username = System.getenv("MAVEN_USERNAME")
57+
password = System.getenv("MAVEN_PASSWORD")
58+
}
59+
}
4260
}
4361
}
4462

4563
afterEvaluate {
46-
publishing.publications.named<MavenPublication>("shadow") {
64+
publishing.publications.named<MavenPublication>("private") {
4765
artifact(tasks.named("libreforgeJar"))
4866
}
4967
}
5068

51-
tasks.named("generatePomFileForShadowPublication") {
69+
tasks.matching { it.name.startsWith("generatePomFileFor") }.configureEach {
5270
mustRunAfter(tasks.named("clean"))
5371
}
5472
tasks.register("publishToAuxilor") {
55-
dependsOn(tasks.named("publishShadowPublicationToAuxilorRepository"))
73+
dependsOn(
74+
"publishPrivatePublicationToAuxilorRepository",
75+
"publishReleasePublicationToAuxilorReleasesRepository",
76+
)
5677
}
5778

5879
allprojects {

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#libreforge-updater
2-
#Wed Jun 10 19:44:44 BST 2026
1+
#libreforge-updater
2+
#Tue Jun 23 15:48:31 BST 2026
33
eco-version=2026.25
44
kotlin.code.style=official
5-
libreforge-version=2026.24
6-
version=2026.24
5+
libreforge-version=2026.25
6+
version=2026.25

0 commit comments

Comments
 (0)