Skip to content

Commit

Permalink
Merge pull request #240 from grails-plugins/more-updates-for-grails-7
Browse files Browse the repository at this point in the history
Build & Release process cleanup
  • Loading branch information
jdaugherty authored Dec 11, 2024
2 parents 4da94b1 + e5ef637 commit c12c0c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 41 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
- name: "🚀 Publish to Sonatype OSSRH"
id: publish
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_NEXUS_URL: ${{ secrets.SONATYPE_NEXUS_URL }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
SECRING_FILE: ${{ secrets.SECRING_FILE }}
Expand Down Expand Up @@ -98,9 +98,10 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.DEVELOCITY_BUILD_CACHE_NODE_KEY }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
working-directory: ./plugin
run: >
../gradlew
Expand Down
13 changes: 0 additions & 13 deletions examples/audit-test-allow-update-outside-transaction/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
Expand All @@ -14,7 +11,6 @@ plugins {
id "com.bertramlabs.asset-pipeline" version "$assetPipelineVersion"
}


version project.projectVersion
group "audit.test"

Expand All @@ -24,11 +20,6 @@ apply plugin: 'idea'
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"

ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}

assets {
minifyJs = true
minifyCss = true
Expand Down Expand Up @@ -80,10 +71,6 @@ dependencies {
profile "org.grails.profiles:web"
}

task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}

test {
testLogging {
showStandardStreams = true
Expand Down
12 changes: 0 additions & 12 deletions examples/audit-test/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
Expand All @@ -23,11 +20,6 @@ apply plugin: 'idea'
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"

ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}

assets {
minifyJs = true
minifyCss = true
Expand Down Expand Up @@ -79,10 +71,6 @@ dependencies {
profile "org.grails.profiles:web"
}

task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}

tasks.withType(Test).configureEach { Task it ->
useJUnitPlatform()

Expand Down
9 changes: 0 additions & 9 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ apply plugin: "idea"
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-gsp"

ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}

repositories {
mavenLocal()
mavenCentral()
Expand Down Expand Up @@ -62,10 +57,6 @@ dependencies {

bootJar.enabled = false

task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}

apply plugin: "org.grails.grails-publish"
grailsPublish {
githubSlug = 'grails-plugins/grails-audit-logging-plugin'
Expand Down

0 comments on commit c12c0c2

Please sign in to comment.