Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions #8

Merged
merged 5 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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