Skip to content

Commit

Permalink
Update github actions (#8)
Browse files Browse the repository at this point in the history
* Update github actions

---------

Co-authored-by: Karl DeBisschop <karl.debisschop@bioraft.com>
  • Loading branch information
kdebisschop and Karl DeBisschop authored Jul 23, 2024
1 parent 3996a6c commit 05cd8f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 3 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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 <prefix><versionSeparator>, 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()
Expand Down

0 comments on commit 05cd8f4

Please sign in to comment.