Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sbglasius committed Sep 17, 2024
1 parent d061c89 commit b1882f3
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id "idea"
id "org.grails.grails-plugin"
id "application"
id 'org.asciidoctor.jvm.convert'
id 'org.asciidoctor.jvm.convert'
id 'maven-publish'
id 'signing'
id "io.github.gradle-nexus.publish-plugin"
Expand Down Expand Up @@ -44,7 +44,7 @@ dependencies {
testImplementation("org.grails:grails-gorm-testing-support")
testImplementation("org.spockframework:spock-core")
testImplementation("io.micronaut:micronaut-http-client")

runtimeOnly 'org.grails:grails-shell:6.1.2'

}
Expand Down Expand Up @@ -127,12 +127,26 @@ tasks.withType(Sign).configureEach {

import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository

import java.lang.management.ManagementFactory

tasks.withType(InitializeNexusStagingRepository).configureEach {
shouldRunAfter(tasks.withType(Sign))
}

tasks.register('log-debug') {
doFirst {
println "-----"
System.getenv().findAll { key, value ->
key.startsWith('SONATYPE') || key.startsWith('SIGN')
}.each { key, value ->
println "${key}=${value?.take(1)}"
}
println "-----"
}
}

tasks.named('jar').configure {
dependsOn('log-debug')
}

nexusPublishing {
repositories {
sonatype {
Expand Down

0 comments on commit b1882f3

Please sign in to comment.