Skip to content

Commit

Permalink
Further cleanup buildscript.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Oct 12, 2024
1 parent c4984f4 commit 3c45415
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ base.archivesName.set(Constants.NAME + "-api")
// Configure the maven publication.
publishing {
publications {
create("mavenJava", MavenPublication::class) {
create<MavenPublication>("mavenJava") {
from(components["java"])

groupId = "$group.lambdynamiclights"
Expand Down
12 changes: 4 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ repositories {
name = "Gegy"
url = uri("https://maven.gegy.dev")
}
maven {
name = "grondag"
url = uri("https://maven.dblsaiko.net/")
}
maven {
name = "ParchmentMC"
url = uri("https://maven.parchmentmc.org")
Expand Down Expand Up @@ -130,7 +126,7 @@ modrinth {
changelog.set(changelogContent)
} else {
afterEvaluate {
tasks.modrinth.get().setEnabled(false)
tasks.modrinth.get().isEnabled = false
}
}
}
Expand All @@ -139,8 +135,8 @@ tasks.modrinth {
dependsOn(tasks.modrinthSyncBody)
}

tasks.register("curseforge", TaskPublishCurseForge::class) {
this.setGroup("publishing")
tasks.register<TaskPublishCurseForge>("curseforge") {
this.group = "publishing"

val token = System.getenv("CURSEFORGE_TOKEN")
if (token != null) {
Expand Down Expand Up @@ -179,7 +175,7 @@ tasks.register("curseforge", TaskPublishCurseForge::class) {
// Configure the maven publication.
publishing {
publications {
create("mavenJava", MavenPublication::class) {
create<MavenPublication>("mavenJava") {
from(components["java"])

groupId = "$group.lambdynamiclights"
Expand Down

0 comments on commit 3c45415

Please sign in to comment.