From c7c265fc6875a6274641530363660489d2e23ff1 Mon Sep 17 00:00:00 2001 From: Matt Farmer Date: Sun, 7 Feb 2021 14:56:04 -0500 Subject: [PATCH] Working on the build --- .github/workflows/{gradle.yml => main-ci.yml} | 0 .github/workflows/pr-ci.yml | 17 +++++++++++++++++ lib/build.gradle | 19 +++++++++++++++++++ 3 files changed, 36 insertions(+) rename .github/workflows/{gradle.yml => main-ci.yml} (100%) create mode 100644 .github/workflows/pr-ci.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/main-ci.yml similarity index 100% rename from .github/workflows/gradle.yml rename to .github/workflows/main-ci.yml diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml new file mode 100644 index 0000000..05d0379 --- /dev/null +++ b/.github/workflows/pr-ci.yml @@ -0,0 +1,17 @@ +name: PR CI + +on: + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11.0 + uses: actions/setup-java@v1 + with: + java-version: 11.0 + - name: Compile + run: ./gradlew lib:compileJava lib:compileIntegrationTestJava lib:compileTestJava diff --git a/lib/build.gradle b/lib/build.gradle index de2b597..9e349fe 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -1,7 +1,10 @@ plugins { id 'java-library' + id "com.github.johnrengelman.shadow" version "6.1.0" } +group = "me.frmr.rundeck" + repositories { mavenCentral() } @@ -46,3 +49,19 @@ task integrationTest(type: Test) { tasks.withType(Test) { useJUnitPlatform() } + +shadowJar { + archiveName 'rundeck-kms-plugin-all.jar' + zip64 true + manifest { + attributes( + 'Rundeck-Plugin-Version': '1.2', + 'Rundeck-Plugin-Archive': 'true', + 'Rundeck-Plugin-Classnames': 'me.frmr.rundeck.KmsConverterPlugin', + 'Rundeck-Plugin-Author': 'Matt Farmer', + 'Rundeck-Plugin-URL': 'https://github.com/farmdawgnation/rundeck-kms-plugin', + 'Rundeck-Plugin-Date': '2020-02-07', + 'Rundeck-Plugin-File-Version': '1.0' + ) + } +}