Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jun 17, 2022
1 parent ac2c1c9 commit a9ddec1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
10 changes: 6 additions & 4 deletions tools/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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"
Expand All @@ -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 (
Expand Down

0 comments on commit a9ddec1

Please sign in to comment.