-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vsachinv/6.x-upgrade
Upgrade grails console plugin to Grails 6.x
- Loading branch information
Showing
397 changed files
with
127,385 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created | ||
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle | ||
|
||
name: Gradle Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup up node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.5.1' | ||
- run: npm install | ||
- run: npm install --global gulp-cli | ||
- run: npm gulp grails5Release | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Run build with Gradle Wrapper | ||
run: ./gradlew build | ||
working-directory: grails6/plugin | ||
- name: Publish to GitHub Packages | ||
run: ./gradlew publishMavenJarPublicationToGitHubPackagesRepository | ||
working-directory: grails6/plugin | ||
env: | ||
GITHUB_USERNAME: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## Local Deployment | ||
|
||
This page is meant for people not willing to wait for an official plugin release. | ||
|
||
### Build | ||
|
||
```shell | ||
npm run grails3:release | ||
|
||
cd grails3/plugin | ||
|
||
./gradlew clean | ||
./gradlew build | ||
``` | ||
|
||
### Public local | ||
|
||
Steps to use new version locally: | ||
* Add mavenLocal() as a repository location in the main build.gradle | ||
* Make sure mavenLocal() is in the first position of the list. | ||
* Make sure you are using the correct version of your library. | ||
|
||
``` | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
... | ||
``` | ||
|
||
Now, every time you change a line in the Library you need to execute within library project path, the following gradle command: | ||
|
||
```shell | ||
./gradlew build publishToMavenLocal | ||
``` | ||
|
||
### Publish to S3 | ||
|
||
You can follow one of the guides on how to deploy to S3 bucket you can find in [Google](https://www.google.com/search?q=maven+publish+to+s3). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
npm install | ||
|
||
# for Grails 3 | ||
|
||
npx gulp grails3Release | ||
|
||
cd grails3/plugin | ||
./gradlew clean | ||
./gradlew jar | ||
|
||
echo | ||
realpath build/libs/grails-console-*.jar | ||
|
||
# for Grails 4 | ||
|
||
npx gulp grails4Release | ||
|
||
cd grails4/plugin | ||
./gradlew clean | ||
./gradlew jar | ||
|
||
echo | ||
realpath build/libs/grails-console-*.jar | ||
|
||
|
||
# for Grails 5 | ||
|
||
npx gulp grails5Release | ||
|
||
cd grails5/plugin | ||
./gradlew clean | ||
./gradlew jar | ||
|
||
echo | ||
realpath build/libs/grails-console-*.jar | ||
|
||
|
||
# for Grails 6 | ||
|
||
npx gulp grails6Release | ||
|
||
cd grails6/plugin | ||
./gradlew clean | ||
./gradlew jar | ||
|
||
echo | ||
realpath build/libs/grails-console-*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.gradle | ||
build | ||
classes | ||
classes | ||
|
||
out |
Oops, something went wrong.