Skip to content

Commit

Permalink
New group id (io.github.gpc)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbglasius committed Dec 30, 2023
1 parent ba86100 commit b213aaa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
34 changes: 26 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ plugins {
id 'org.asciidoctor.jvm.convert' version '3.2.0'
}

version project.projectVersion

group 'org.grails.plugins'
group 'io.github.gpc'

apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.grails-gsp'
Expand Down Expand Up @@ -111,15 +109,35 @@ publishing {

ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository

tasks.withType(InitializeNexusStagingRepository).configureEach {
onlyIf { isReleaseVersion }
shouldRunAfter(tasks.withType(Sign))
afterEvaluate {
signing {
if (System.getenv('SIGN_ARMORED_KEY')) {
String signingKey = System.getenv('SIGN_ARMORED_KEY')
String signingPassword = System.getenv('SIGN_PASSWORD')
useInMemoryPgpKeys(signingKey, signingPassword)
} else {
ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID')
ext["signing.password"] = System.getenv('SIGNING_PASSPHRASE')
ext["signing.secretKeyRingFile"] = System.getenv('SECRING_FILE')
}
required {
isReleaseVersion
}

sign publishing.publications.maven
}
}

tasks.withType(Sign) {
tasks.withType(Sign).configureEach {
onlyIf { isReleaseVersion }
}

import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository

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

nexusPublishing {
Expand Down
5 changes: 2 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
version=3.0.0.BUILD-SNAPSHOT
#projectVersion=2.2.7https://github.com/grails-fields-plugin/grails-fields/blob/master/gradle.properties
grailsVersion=4.1.2
scaffoldingVersion=2.0.0.RC1
cglibNodepVersion=3.2.9
joddWotVersion=3.3.8
servletApiVersion=4.0.1
asciidoc=true
githubSlug=grails-fields-plugin/grails-fields
githubSlug=gpc/fields
githubBranch=master
title=Grails Fields Plugin
projectDesc=Customizable form-field rendering based on overrideable GSP template
guide=../../guide
projectUrl=https://github.com/fields/grails-fields
projectUrl=https://github.com/gpc/fields
developers=Robert Fletcher, Graeme Rocher, Søren Berg Glasius

0 comments on commit b213aaa

Please sign in to comment.