From a9ddec14dc07a79f836254f8994b55ec21b43fcd Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Fri, 17 Jun 2022 16:15:15 +0200 Subject: [PATCH] chore: cleanup --- renovate.json | 4 ++++ tools/build.ps1 | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/renovate.json b/renovate.json index 2aa715d..ec7c4cf 100644 --- a/renovate.json +++ b/renovate.json @@ -2,6 +2,10 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["local>visualon/renovate-config"], "packageRules": [ + { + "matchPackageNames": ["sat4j"], + "registryUrls": ["https://repository.ow2.org/nexus/content/repositories/releases"] + }, { "description": "Don't automerge until we've good tests", "matchPackageNames": ["IKVM", "sat4j"], diff --git a/tools/build.ps1 b/tools/build.ps1 index edfcd5a..d715490 100644 --- a/tools/build.ps1 +++ b/tools/build.ps1 @@ -2,7 +2,9 @@ param( [Parameter()] - [string] $version = "2.3.6" + [string] + # renovate: datasource=maven depName=sat4j packageName=org.ow2.sat4j:org.ow2.sat4j.pom + $version = "2.3.6" ) $ErrorActionPreference = 'Stop' @@ -16,14 +18,14 @@ if ($env:GITHUB_REF_TYPE -eq 'tag' ) { } # trim leading v -$version = $version -replace "^v?","" +$version = $version -replace "^v?", "" $major, $minor, $patch = $version.Split('-')[0].Split('.') $jarVersion = $version $assemblyversion = "$major.0.0.0" if ($patch.Length -ge 3) { - $patch = $patch.Substring(0, $patch.Length -2) + $patch = $patch.Substring(0, $patch.Length - 2) } $jarVersion = "$major.$minor.$patch" @@ -40,7 +42,7 @@ function ThrowOnNativeFailure { } -$baseUri = "https://repository.ow2.org/nexus/service/local/repositories/releases/content/org/ow2/sat4j" +$baseUri = "https://repository.ow2.org/nexus/content/repositories/releases/org/ow2/sat4j" function get-jar { param (