From 05cd8f439753f69ccec3664bc475db1f998bc10b Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Tue, 23 Jul 2024 11:50:09 -0400 Subject: [PATCH] Update github actions (#8) * Update github actions --------- Co-authored-by: Karl DeBisschop --- .github/workflows/gradle.yml | 5 +++-- build.gradle | 25 +++---------------------- 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 7192b4f..ce300a4 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,10 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: corretto java-version: 17 - name: Run unit tests run: ./gradlew test diff --git a/build.gradle b/build.gradle index 2b6bfe6..a442664 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { - id 'pl.allegro.tech.build.axion-release' version '1.10.3' + id "pl.allegro.tech.build.axion-release" version "1.18.2" id 'com.github.johnrengelman.shadow' version '5.2.0' - id("org.sonarqube") version "5.1.0.4882" + id "org.sonarqube" version "5.1.0.4882" id 'jacoco' id 'java' id 'maven-publish' @@ -47,26 +47,7 @@ ext.pluginClassNames='com.bioraft.rundeck.nexus.Nexus3OptionProvider' ext.pluginName = 'Nexus3 Option Values Provider' ext.pluginDescription = 'Fetches and filters assets from a Nexus3 repository' -scmVersion { - ignoreUncommittedChanges = true - tag { - // Ignore tags that begin with , include all tags - // if prefix is empty. - prefix = '' - versionSeparator = '' - - // Append .0 to satisfy SemVer if the tag version is only X.Y - def origDeserialize = deserialize - deserialize = { config, position, tagName -> - String orig = origDeserialize(config, position, tagName) - if (orig.split('\\.').length < 3) { - orig += ".0" - } - orig - } - } -} -project.version = scmVersion.version +version = scmVersion.version repositories { mavenCentral()