-
Notifications
You must be signed in to change notification settings - Fork 1
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 #2 from rundeck-plugins/enh/grails4
Grails 4 upgrade
- Loading branch information
Showing
29 changed files
with
362 additions
and
428 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,34 @@ | ||
name: Java CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get Fetch Tags | ||
run: git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin | ||
if: "!contains(github.ref, 'refs/tags')" | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Get Release Version | ||
id: get_version | ||
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION | ||
- name: Upload jar | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: Grails-Plugin-${{ steps.get_version.outputs.VERSION }} | ||
# Directory containing files to upload | ||
path: rundeck-job-kill-handler/build/libs/rundeck-job-kill-handler-${{ steps.get_version.outputs.VERSION }}.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'release-*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
name: Upload Release Asset | ||
|
||
jobs: | ||
build: | ||
name: Upload Release Asset | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Get Release Version | ||
id: get_version | ||
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ steps.get_version.outputs.VERSION }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset (jar) | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./rundeck-job-kill-handler/build/libs/rundeck-job-kill-handler-${{ steps.get_version.outputs.VERSION }}.jar | ||
asset_name: rundeck-job-kill-handler-${{ steps.get_version.outputs.VERSION }}.jar | ||
asset_content_type: application/octet-stream |
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,73 +1,32 @@ | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
buildscript{ | ||
dependencies { | ||
classpath "org.grails:grails-gradle-plugin:$grailsVersion" | ||
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.2" | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | ||
} | ||
} | ||
|
||
version "0.1" | ||
group "com.rundeck.plugins.killhandler" | ||
|
||
apply plugin:"eclipse" | ||
apply plugin:"idea" | ||
apply plugin:"org.grails.grails-plugin" | ||
apply plugin:"org.grails.grails-plugin-publish" | ||
apply plugin:"asset-pipeline" | ||
apply plugin:"org.grails.grails-gsp" | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
|
||
dependencies { | ||
compile "org.rundeck:rundeck-core:3.2.5-20200403" | ||
|
||
compile "org.springframework.boot:spring-boot-starter-logging" | ||
compile "org.springframework.boot:spring-boot-autoconfigure" | ||
compile "org.grails:grails-core" | ||
compile "org.springframework.boot:spring-boot-starter-actuator" | ||
compile "org.springframework.boot:spring-boot-starter-tomcat" | ||
compile "org.grails:grails-web-boot" | ||
compile "org.grails:grails-logging" | ||
compile "org.grails:grails-plugin-rest" | ||
compile "org.grails:grails-plugin-databinding" | ||
compile "org.grails:grails-plugin-i18n" | ||
compile "org.grails:grails-plugin-services" | ||
compile "org.grails:grails-plugin-url-mappings" | ||
compile "org.grails:grails-plugin-interceptors" | ||
compile "org.grails.plugins:cache" | ||
compile "org.grails.plugins:async" | ||
compile "org.grails.plugins:scaffolding" | ||
compile "org.grails.plugins:gsp" | ||
console "org.grails:grails-console" | ||
profile "org.grails.profiles:web-plugin" | ||
provided "org.grails:grails-plugin-services" | ||
provided "org.grails:grails-plugin-domain-class" | ||
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.14.2" | ||
testCompile "org.grails:grails-gorm-testing-support" | ||
testCompile "org.grails:grails-plugin-testing" | ||
testCompile "org.grails.plugins:geb" | ||
testCompile "org.grails:grails-web-testing-support" | ||
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1" | ||
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18" | ||
plugins { | ||
id 'pl.allegro.tech.build.axion-release' version '1.9.3' | ||
} | ||
|
||
bootRun { | ||
jvmArgs('-Dspring.output.ansi.enabled=always') | ||
addResources = true | ||
String springProfilesActive = 'spring.profiles.active' | ||
systemProperty springProfilesActive, System.getProperty(springProfilesActive) | ||
scmVersion { | ||
ignoreUncommittedChanges = true | ||
} | ||
// enable if you wish to package this plugin as a standalone application | ||
bootRepackage.enabled = false | ||
|
||
version = scmVersion.version | ||
|
||
|
||
assets { | ||
packagePlugin = true | ||
subprojects { | ||
version = scmVersion.version | ||
group "com.rundeck.addons" | ||
ext { | ||
copyright = "© ${java.time.LocalDate.now().year}, Rundeck, Inc.".toString() | ||
projUrl = 'https://rundeck.com' | ||
buildDateString = new Date().format("yyyy-MM-dd'T'HH:mm:ssXXX") | ||
} | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
} |
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 @@ | ||
grailsVersion=3.3.11 | ||
gormVersion=6.1.12.RELEASE | ||
gradleWrapperVersion=3.5 | ||
groovyVersion=2.5.6 | ||
grailsVersion=4.0.3 | ||
gormVersion=7.0.4.RELEASE | ||
assetPluginVersion=3.0.11 | ||
rundeckVersion=3.2.6-20200427 |
Binary file not shown.
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,6 +1,5 @@ | ||
#Fri Nov 27 23:09:32 CET 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip |
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
Oops, something went wrong.