Skip to content

Commit

Permalink
Setup maven central publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Apr 13, 2024
1 parent e3d8c75 commit 0ad1e29
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.neoforged.gradleutils.PomUtilsExtension.License

plugins {
id 'org.cadixdev.licenser' version '0.6.1'
Expand Down Expand Up @@ -48,6 +49,10 @@ allprojects {
}
}

gradleutils {
setupCentralPublishing()
}

base {
archivesName = 'installertools'
}
Expand Down Expand Up @@ -90,16 +95,9 @@ allprojects {
publications {
withType(MavenPublication).configureEach {
it.pom {
rootProject.pomUtils.githubRepo(it, 'InstallerTools')

licenses {
license {
name = 'LGPLv2.1'
url = 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt'
}
}

rootProject.pomUtils.neoForgedDeveloper(it)
pomUtils.githubRepo(it, 'InstallerTools')
pomUtils.license(it, License.LGPL_v2)
pomUtils.neoForgedDeveloper(it)
}
}
}
Expand Down

0 comments on commit 0ad1e29

Please sign in to comment.