Skip to content

Commit

Permalink
Updating Scaffolding to M1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Dec 20, 2024
1 parent 0399722 commit 6e9299d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build
- name: "📤 Publish Snapshot to repo.grails.org"
if: success() && github.event_name == 'push'
Expand All @@ -43,6 +44,8 @@ jobs:
publish
- name: "Generate Java & Groovydoc"
run: ./gradlew javadoc groovydoc
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: "📖 Publish docs to Github Pages"
if: success() && github.event_name == 'push'
uses: micronaut-projects/github-pages-deploy-action@grails
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: "📤 Publish to Sonatype"
id: publish
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
Expand All @@ -50,6 +51,7 @@ jobs:
id: assemble
if: steps.publish.outcome == 'success'
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
run: ./gradlew assemble
Expand Down
16 changes: 11 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ group = 'org.grails.plugins'
repositories {
mavenCentral()
maven { url = 'https://repo.grails.org/grails/core' }
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
url = 'https://maven.pkg.github.com/grails/grails-core'
credentials {
username = 'DOES_NOT_MATTER'
password = System.getenv("GITHUB_MAVEN_PASSWORD")
}
}
}
}

compileJava.options.release = 17

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
api "org.grails:grails-plugin-rest"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
projectVersion=6.0.0-SNAPSHOT
grailsVersion=7.0.0-SNAPSHOT
grailsVersion=7.0.0-M1
groovyVersion=4.0.24

org.gradle.caching=true
Expand Down

0 comments on commit 6e9299d

Please sign in to comment.