Skip to content

Commit

Permalink
Make it launch properly again
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o committed Sep 19, 2023
1 parent dc1971d commit 84555f6
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 32 deletions.
35 changes: 35 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,40 @@ allprojects {
}
}
}
extensions.findByType<PublishingExtension>()?.apply {
repositories {
if (project.hasProperty("moulconfigPassword")) {
maven {
url = uri("https://maven.notenoughupdates.org/releases")
name = "moulconfig"
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
publications.filterIsInstance<MavenPublication>().forEach {
it.pom {
licenses {
license {
name.set("LGPL-3.0 or later")
url.set("https://github.com/NotEnoughUpdates/NotEnoughUpdates/blob/HEAD/COPYING.LESSER")
}
}
developers {
developer {
name.set("NotEnoughUpdates contributors")
}
developer {
name.set("Linnea Gräf")
}
}
scm {
url.set("https://github.com/NotEnoughUpdates/MoulConfig")
}
}
}
}
}
}
36 changes: 5 additions & 31 deletions legacy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ loom {
forge {
pack200Provider.set(dev.architectury.pack200.java.Pack200Adapter())
}
launchConfigs {
"client" {
property("moulconfig.testmod", "true")
}
}
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
Expand Down Expand Up @@ -95,37 +100,6 @@ publishing {
artifact(tasks.shadowJar) {
classifier = "named"
}
pom {
licenses {
license {
name.set("LGPL-3.0 or later")
url.set("https://github.com/NotEnoughUpdates/NotEnoughUpdates/blob/HEAD/COPYING.LESSER")
}
}
developers {
developer {
name.set("NotEnoughUpdates contributors")
}
developer {
name.set("Linnea Gräf")
}
}
scm {
url.set("https://github.com/NotEnoughUpdates/MoulConfig")
}
}
}
}
repositories {
if (project.hasProperty("moulconfigPassword")) {
maven {
url = uri("https://maven.notenoughupdates.org/releases")
name = "moulconfig"
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion test

This file was deleted.

0 comments on commit 84555f6

Please sign in to comment.