Skip to content

Commit c12c0c2

Browse files
authored
Merge pull request #240 from grails-plugins/more-updates-for-grails-7
Build & Release process cleanup
2 parents 4da94b1 + e5ef637 commit c12c0c2

File tree

4 files changed

+8
-41
lines changed

4 files changed

+8
-41
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
- name: "🚀 Publish to Sonatype OSSRH"
5858
id: publish
5959
env:
60-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
61-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
62-
SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }}
63-
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
60+
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
61+
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
62+
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
63+
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
6464
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
6565
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
6666
SECRING_FILE: ${{ secrets.SECRING_FILE }}
@@ -98,9 +98,10 @@ jobs:
9898
env:
9999
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }}
100100
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }}
101-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
102-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
103-
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
101+
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
102+
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
103+
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
104+
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
104105
working-directory: ./plugin
105106
run: >
106107
../gradlew

examples/audit-test-allow-update-outside-transaction/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
buildscript {
2-
ext {
3-
grailsVersion = project.grailsVersion
4-
}
52
repositories {
63
maven { url "https://repo.grails.org/grails/core" }
74
}
@@ -14,7 +11,6 @@ plugins {
1411
id "com.bertramlabs.asset-pipeline" version "$assetPipelineVersion"
1512
}
1613

17-
1814
version project.projectVersion
1915
group "audit.test"
2016

@@ -24,11 +20,6 @@ apply plugin: 'idea'
2420
apply plugin: "org.grails.grails-web"
2521
apply plugin: "org.grails.grails-gsp"
2622

27-
ext {
28-
grailsVersion = project.grailsVersion
29-
gradleWrapperVersion = project.gradleWrapperVersion
30-
}
31-
3223
assets {
3324
minifyJs = true
3425
minifyCss = true
@@ -80,10 +71,6 @@ dependencies {
8071
profile "org.grails.profiles:web"
8172
}
8273

83-
task wrapper(type: Wrapper) {
84-
gradleVersion = gradleWrapperVersion
85-
}
86-
8774
test {
8875
testLogging {
8976
showStandardStreams = true

examples/audit-test/build.gradle

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
buildscript {
2-
ext {
3-
grailsVersion = project.grailsVersion
4-
}
52
repositories {
63
maven { url "https://repo.grails.org/grails/core" }
74
}
@@ -23,11 +20,6 @@ apply plugin: 'idea'
2320
apply plugin: "org.grails.grails-web"
2421
apply plugin: "org.grails.grails-gsp"
2522

26-
ext {
27-
grailsVersion = project.grailsVersion
28-
gradleWrapperVersion = project.gradleWrapperVersion
29-
}
30-
3123
assets {
3224
minifyJs = true
3325
minifyCss = true
@@ -79,10 +71,6 @@ dependencies {
7971
profile "org.grails.profiles:web"
8072
}
8173

82-
task wrapper(type: Wrapper) {
83-
gradleVersion = gradleWrapperVersion
84-
}
85-
8674
tasks.withType(Test).configureEach { Task it ->
8775
useJUnitPlatform()
8876

plugin/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ apply plugin: "idea"
2222
apply plugin: "org.grails.grails-plugin"
2323
apply plugin: "org.grails.grails-gsp"
2424

25-
ext {
26-
grailsVersion = project.grailsVersion
27-
gradleWrapperVersion = project.gradleWrapperVersion
28-
}
29-
3025
repositories {
3126
mavenLocal()
3227
mavenCentral()
@@ -62,10 +57,6 @@ dependencies {
6257

6358
bootJar.enabled = false
6459

65-
task wrapper(type: Wrapper) {
66-
gradleVersion = gradleWrapperVersion
67-
}
68-
6960
apply plugin: "org.grails.grails-publish"
7061
grailsPublish {
7162
githubSlug = 'grails-plugins/grails-audit-logging-plugin'

0 commit comments

Comments
 (0)