File tree Expand file tree Collapse file tree
buildSrc/src/main/kotlin/dev/isxander/controlify Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
66
77 id(" me.modmuss50.mod-publish-plugin" )
88 `maven- publish`
9- id(" com.gradleup.nmcp" )
109
1110 id(" dev.kikugie.postprocess.j52j" ) version " 2.1-beta.3"
1211}
@@ -287,33 +286,16 @@ publishing {
287286
288287 artifactId = " controlify"
289288 groupId = " dev.isxander"
289+ }
290+ }
290291
291- pom {
292- name = modstitch.metadata.modName
293- description = modstitch.metadata.modDescription
294- url = " https://www.isxander.dev/projects/controlify"
295- licenses {
296- license {
297- name = " LGPL-3.0-or-later"
298- url = " https://www.gnu.org/licenses/lgpl-3.0.en.html"
299- }
300- }
301- developers {
302- developer {
303- id = " isXander"
304- name = " Xander"
305- email = " business@isxander.dev"
306- }
307- }
308- scm {
309- url = " https://github.com/isXander/Controlify"
310- connection = " scm:git:git//github.com/isXander/Controlify.git"
311- developerConnection = " scm:git:ssh://git@github.com/isXander/Controlify.git"
312- }
292+ repositories {
293+ maven(" https://maven.isxander.dev/releases" ) {
294+ name = " XanderMaven"
295+ credentials {
296+ username = secrets.gradleProperty(" maven.username" ).orNull
297+ password = secrets.gradleProperty(" maven.password" ).orNull
313298 }
314299 }
315300 }
316301}
317- signing {
318- sign(publishing.publications[" mod" ])
319- }
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
66 `java- library`
77 id(" dev.isxander.modstitch.base" )
88 `maven- publish`
9- signing
109 id(" dev.isxander.secrets" )
1110}
1211
@@ -144,27 +143,6 @@ tasks.named<ProcessResources>("generateModMetadata") {
144143 }
145144}
146145
147- val signingKeyProvider = secrets.gradleProperty(" signing.secretKey" )
148- val signingPasswordProvider = secrets.gradleProperty(" signing.password" )
149- // not configuration cache friendly, but neither is the whole of signing plugin
150- // this plugin does not support lazy configuration of signing keys
151- gradle.taskGraph.whenReady {
152- val willSign = allTasks.any { it.name.startsWith(" sign" ) }
153- if (willSign) {
154- signing {
155- val signingKey = signingKeyProvider.orNull
156- val signingPassword = signingPasswordProvider.orNull
157-
158- isRequired = signingKey != null && signingPassword != null
159- if (isRequired) {
160- useInMemoryPgpKeys(signingKey, signingPassword)
161- } else {
162- logger.error(" Signing keys not found; skipping signing!" )
163- }
164- }
165- }
166- }
167-
168146// fix stonecutterGenerate task dependencies
169147tasks.named<ProcessResources >(" generateModMetadata" ) {
170148 duplicatesStrategy = DuplicatesStrategy .INCLUDE
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ plugins {
55 id(" dev.kikugie.stonecutter" )
66 id(" de.undercouch.download" ) version " 5.6.0"
77 id(" org.moddedmc.wiki.toolkit" ) version " 0.2.5"
8- id(" com.gradleup.nmcp.aggregation" ) version " 1.4.3"
98 id(" dev.isxander.secrets" )
109
1110 id(" dev.isxander.modstitch.base" ) apply false
@@ -75,24 +74,6 @@ publishMods {
7574// subprojects depend themselves on this task
7675val releaseModVersions by tasks.registering {
7776 group = " controlify"
78-
79- if (! publishMods.dryRun.get()) {
80- dependsOn(" publishAggregationToCentralPortal" )
81- }
82- }
83-
84- nmcpAggregation {
85- centralPortal {
86- username = secrets.gradleProperty(" mcentral.username" )
87- password = secrets.gradleProperty(" mcentral.password" )
88-
89- publicationName = " controlify:$version "
90- }
91- }
92- dependencies {
93- allprojects {
94- nmcpAggregation(project(path))
95- }
9677}
9778
9879wiki {
You can’t perform that action at this time.
0 commit comments