Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "🔨 Run Build"
id: build
env:
Expand All @@ -48,14 +48,14 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "📤 Publish Snapshot to repo.grails.org"
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GRADLE_PUBLISH_RELEASE: 'false'
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }}
MAVEN_PUBLISH_URL: ${{ secrets.GRAILS_NEXUS_PUBLISH_SNAPSHOT_URL }}
MAVEN_PUBLISH_USERNAME: ${{ secrets.NEXUS_USER }}
MAVEN_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PW }}
run: ./gradlew publish
docs:
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
Expand All @@ -75,15 +75,15 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "🔨 Build Docs"
id: docs
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew docs:docs --refresh-dependencies
- name: "🚀 Publish to Github Pages"
if: steps.docs.outcome == 'success'
uses: grails/grails-github-actions/deploy-github-pages@main
uses: apache/grails-github-actions/deploy-github-pages@asf
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_PUBLISH_RELEASE: 'false'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "⚙ Run pre-release"
uses: grails/github-actions/pre-release@main
- name: "🧩 Run Assemble"
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "🚀 Release Sonatype Staging Repository"
env:
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "📖 Generate documentation"
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
maven { url = 'https://repository.apache.org/content/repositories/snapshots' }
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
Expand All @@ -13,7 +14,7 @@ buildscript {
}
}
dependencies {
classpath platform("org.grails:grails-bom:$grailsVersion")
classpath platform("org.apache.grails:grails-bom:$grailsVersion")
classpath "org.grails:grails-gradle-plugin"
}
}
Expand All @@ -22,6 +23,7 @@ allprojects {
repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
maven { url = 'https://repository.apache.org/content/repositories/snapshots' }
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
Expand All @@ -35,18 +37,18 @@ allprojects {
}
}

group = "org.grails.plugins"
group = "org.apache.grails"
version = project.projectVersion

subprojects {
if(project.name == 'plugin') {
version = projectVersion
group = "org.grails.plugins"
group = "org.apache.grails"

apply plugin:"org.grails.grails-publish"
grailsPublish {
artifactId = 'cache'
githubSlug = "grails/grails-cache"
githubSlug = "apache/grails-cache"
license {
name = 'Apache-2.0'
}
Expand Down
5 changes: 3 additions & 2 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import grails.doc.gradle.PublishGuide
buildscript {
repositories {
maven { url = 'https://repo.grails.org/grails/core' }
maven { url = 'https://repository.apache.org/content/repositories/snapshots' }
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
Expand All @@ -15,14 +16,14 @@ buildscript {
}
}
dependencies {
classpath "org.grails:grails-docs:$grailsVersion"
classpath "org.apache.grails:grails-docs-core:$grailsVersion"
}
}

apply plugin: 'groovy'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
implementation platform("org.apache.grails:grails-bom:$grailsVersion")
implementation 'org.apache.groovy:groovy-groovydoc'
implementation 'org.apache.groovy:groovy-ant'
implementation 'org.springframework:spring-core'
Expand Down
38 changes: 19 additions & 19 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ buildscript {
}
}
dependencies {
classpath platform("org.grails:grails-bom:$grailsVersion")
classpath 'org.grails:grails-gradle-plugin'
classpath platform("org.apache.grails:grails-bom:$grailsVersion")
classpath 'org.apache.grails:grails-gradle-plugins'
}
}

Expand All @@ -28,44 +28,44 @@ plugins {
version = projectVersion
group = "com.demo"

apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"
apply plugin: "org.apache.grails.gradle.grails-web"
apply plugin: "org.apache.grails.gradle.grails-gsp"

compileJava.options.release = 17

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
implementation platform("org.apache.grails:grails-bom:$grailsVersion")

implementation project(':plugin')

implementation "org.grails:grails-core"
implementation "org.grails:grails-logging"
implementation "org.grails:grails-plugin-databinding"
implementation "org.grails:grails-plugin-i18n"
implementation "org.grails:grails-plugin-interceptors"
implementation "org.grails:grails-plugin-rest"
implementation "org.grails:grails-plugin-services"
implementation "org.grails:grails-plugin-url-mappings"
implementation "org.grails:grails-web-boot"
implementation "org.grails.plugins:gsp"
implementation "org.apache.grails:grails-core"
implementation "org.apache.grails:grails-logging"
implementation "org.apache.grails:grails-databinding"
implementation "org.apache.grails:grails-i18n"
implementation "org.apache.grails:grails-interceptors"
implementation "org.apache.grails:grails-rest-transforms"
implementation "org.apache.grails:grails-services"
implementation "org.apache.grails:grails-url-mappings"
implementation "org.apache.grails.web:grails-web-boot"
implementation "org.apache.grails:grails-gsp"
implementation "org.springframework.boot:spring-boot-autoconfigure"
implementation "org.springframework.boot:spring-boot-starter"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-logging"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.springframework.boot:spring-boot-starter-validation"

console "org.grails:grails-console"
console "org.apache.grails:grails-console"

runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
runtimeOnly "org.fusesource.jansi:jansi"

integrationTestImplementation testFixtures("org.grails.plugins:geb")
integrationTestImplementation testFixtures("org.apache.grails:grails-geb")

testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.grails:grails-web-testing-support"
testImplementation "org.apache.grails:grails-testing-support-datamapping"
testImplementation "org.apache.grails:grails-testing-support-web"
testImplementation "org.spockframework:spock-core"
}

Expand Down
27 changes: 14 additions & 13 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
buildscript {
repositories {
maven { url = 'https://repo.grails.org/grails/core' }
maven { url = 'https://repository.apache.org/content/repositories/snapshots' }
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Grails Core Repo")
maven {
Expand All @@ -13,36 +14,36 @@ buildscript {
}
}
dependencies {
classpath platform("org.grails:grails-bom:$grailsVersion")
classpath 'org.grails:grails-gradle-plugin'
classpath platform("org.apache.grails:grails-bom:$grailsVersion")
classpath 'org.apache.grails:grails-gradle-plugins'
}
}

version = projectVersion
group = "org.grails.plugins"
group = "org.apache.grails"

apply plugin: 'groovy'
apply plugin: 'java-library'

apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.apache.grails.gradle.grails-plugin'

dependencies {
implementation platform("org.grails:grails-bom:$grailsVersion")
implementation platform("org.apache.grails:grails-bom:$grailsVersion")

api "org.grails:grails-core"
api "org.grails:grails-web-boot"
api "org.grails:grails-plugin-services"
api "org.apache.grails:grails-core"
api "org.apache.grails.web:grails-web-boot"
api "org.apache.grails:grails-services"

api "org.grails.plugins:gsp"
api "org.apache.grails:grails-gsp"
api "org.codehaus.gpars:gpars:$gparsVersion"
api "com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:$concurrentlinkedhashmapLruVersion"

compileOnly "org.grails:grails-plugin-domain-class"
compileOnly "org.apache.grails:grails-domain-class"

console "org.grails:grails-console"
console "org.apache.grails:grails-console"

testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.grails:grails-web-testing-support"
testImplementation "org.apache.grails:grails-testing-support-datamapping"
testImplementation "org.apache.grails:grails-testing-support-web"
testImplementation "org.spockframework:spock-core", {
exclude group: 'org.apache.groovy'
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

def isCI = System.getenv('CI') != null
def isLocal = !isCI
def isAuthenticated = System.getenv('DEVELOCITY_ACCESS_KEY') != null
def isAuthenticated = System.getenv('GRAILS_DEVELOCITY_ACCESS_KEY') != null

develocity {
server = 'https://ge.grails.org'
Expand Down
Loading