mirror of
https://github.com/rgl/nexus-vagrant.git
synced 2026-09-30 00:31:11 +02:00
upgrade dependencies
This commit is contained in:
@@ -3,7 +3,7 @@ set -euxo pipefail
|
||||
|
||||
# see https://github.com/moby/moby/releases
|
||||
# renovate: datasource=github-releases depName=moby/moby
|
||||
default_docker_version='29.1.3'
|
||||
default_docker_version='29.6.0'
|
||||
|
||||
# see https://github.com/moby/moby/releases
|
||||
docker_version="${1:-$default_docker_version}"; shift || true
|
||||
|
||||
@@ -5,25 +5,8 @@ set -euxo pipefail
|
||||
echo 'export DOTNET_CLI_TELEMETRY_OPTOUT=1' >/etc/profile.d/opt-out-dotnet-cli-telemetry.sh
|
||||
source /etc/profile.d/opt-out-dotnet-cli-telemetry.sh
|
||||
|
||||
# pin the microsoft apt repository packages above the distro ones.
|
||||
# see apt-cache policy
|
||||
# see apt-cache policy dotnet-sdk-8.0
|
||||
# see apt-cache showpkg dotnet-sdk-8.0
|
||||
# see http://manpages.ubuntu.com/manpages/jammy/en/man5/apt_preferences.5.html
|
||||
cat >/etc/apt/preferences.d/packages.microsoft.com.pref <<'EOF'
|
||||
Package: *
|
||||
Pin: origin "packages.microsoft.com"
|
||||
Pin-Priority: 999
|
||||
EOF
|
||||
|
||||
# install the dotnet core sdk.
|
||||
# see https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
|
||||
wget -qO packages-microsoft-prod.deb "https://packages.microsoft.com/config/ubuntu/$(lsb_release -s -r)/packages-microsoft-prod.deb"
|
||||
dpkg -i packages-microsoft-prod.deb
|
||||
rm packages-microsoft-prod.deb
|
||||
apt-get install -y apt-transport-https
|
||||
apt-get update
|
||||
apt-get install -y dotnet-sdk-8.0
|
||||
# install the dotnet sdk.
|
||||
apt-get install -y dotnet-sdk-10.0
|
||||
|
||||
# show versions.
|
||||
dotnet --info
|
||||
|
||||
@@ -12,7 +12,7 @@ config_authentication='nexus'
|
||||
|
||||
# install java.
|
||||
# see https://help.sonatype.com/en/sonatype-nexus-repository-system-requirements.html#SystemRequirements-Java
|
||||
apt-get install -y openjdk-17-jre-headless
|
||||
apt-get install -y openjdk-21-jre-headless
|
||||
apt-get install -y gnupg
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ mkdir -p tmp/use-docker-repository && cd tmp/use-docker-repository
|
||||
|
||||
# see https://github.com/golang/go/tags
|
||||
# renovate: datasource=github-tags depName=golang/go extractVersion=go(?<version>.+)
|
||||
go_version='1.25.5'
|
||||
go_version='1.26.4'
|
||||
|
||||
cat >main.go <<'EOF'
|
||||
package main
|
||||
|
||||
@@ -13,7 +13,7 @@ cd tmp/use-maven-repository-from-gradle
|
||||
# download and install gradle.
|
||||
# see https://gradle.org/releases/
|
||||
# renovate: datasource=github-releases depName=gradle/gradle
|
||||
gradle_version='9.2.1'
|
||||
gradle_version='9.6.0'
|
||||
if [ ! -f /opt/gradle/gradle-$gradle_version/bin/gradle ]; then
|
||||
apt-get install -y unzip
|
||||
wget -qO/tmp/gradle-$gradle_version-bin.zip https://services.gradle.org/distributions/gradle-$gradle_version-bin.zip
|
||||
@@ -36,8 +36,8 @@ cat >settings.gradle <<'EOF'
|
||||
rootProject.name = 'gradle-greeter'
|
||||
EOF
|
||||
cat >build.gradle <<'EOF'
|
||||
// see https://docs.gradle.org/9.2.1/userguide/java_library_plugin.html
|
||||
// see https://docs.gradle.org/9.2.1/userguide/maven_plugin.html
|
||||
// see https://docs.gradle.org/9.6.0/userguide/java_library_plugin.html
|
||||
// see https://docs.gradle.org/9.6.0/userguide/maven_plugin.html
|
||||
|
||||
plugins {
|
||||
id 'java-library'
|
||||
@@ -48,8 +48,8 @@ group = 'com.example'
|
||||
version = '1.0.0'
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
jar {
|
||||
@@ -104,10 +104,10 @@ rootProject.name = 'gradle-greeter-application'
|
||||
EOF
|
||||
# see https://mvnrepository.com/artifact/com.gradleup.shadow/shadow-gradle-plugin
|
||||
# renovate: datasource=maven depName=com.gradleup.shadow:shadow-gradle-plugin
|
||||
com_gradleup_shadow_version='9.3.1'
|
||||
com_gradleup_shadow_version='9.4.2'
|
||||
cat >build.gradle <<EOF
|
||||
// see https://docs.gradle.org/9.2.1/userguide/java_plugin.html
|
||||
// see https://docs.gradle.org/9.2.1/userguide/application_plugin.html
|
||||
// see https://docs.gradle.org/9.6.0/userguide/java_plugin.html
|
||||
// see https://docs.gradle.org/9.6.0/userguide/application_plugin.html
|
||||
// see https://gradleup.com/shadow/
|
||||
// see https://github.com/GradleUp/shadow
|
||||
|
||||
@@ -124,8 +124,8 @@ application {
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
jar {
|
||||
|
||||
@@ -12,7 +12,7 @@ cd tmp/use-maven-repository-from-mvn
|
||||
|
||||
# install maven and the java development kit.
|
||||
sudo apt-get install -y maven
|
||||
sudo apt-get install -y openjdk-17-jdk-headless
|
||||
sudo apt-get install -y openjdk-21-jdk-headless
|
||||
sudo apt-get install -y xmlstarlet
|
||||
|
||||
# setup the user maven configuration to use nexus as a mirror the
|
||||
@@ -70,18 +70,12 @@ mvn \
|
||||
archetype:generate \
|
||||
-DgroupId=com.example.helloworld \
|
||||
-DartifactId=example-helloworld \
|
||||
-DarchetypeArtifactId=maven-archetype-quickstart
|
||||
-DarchetypeArtifactId=maven-archetype-quickstart \
|
||||
-DarchetypeVersion=1.5 \
|
||||
-DjavaCompilerVersion=21
|
||||
|
||||
# test publishing a package.
|
||||
pushd example-helloworld
|
||||
# set the java version.
|
||||
xmlstarlet ed --inplace -N pom=http://maven.apache.org/POM/4.0.0 \
|
||||
--subnode /pom:project --type elem --name properties \
|
||||
pom.xml
|
||||
xmlstarlet ed --inplace -N pom=http://maven.apache.org/POM/4.0.0 \
|
||||
--subnode /pom:project/pom:properties --type elem --name maven.compiler.source --value 17 \
|
||||
--subnode /pom:project/pom:properties --type elem --name maven.compiler.target --value 17 \
|
||||
pom.xml
|
||||
# add the nexus repository to pom.xml.
|
||||
xmlstarlet ed --inplace -N pom=http://maven.apache.org/POM/4.0.0 \
|
||||
--subnode '/pom:project' \
|
||||
|
||||
@@ -13,7 +13,7 @@ mkdir -p tmp/use-npm-repository && cd tmp/use-npm-repository
|
||||
|
||||
# install node LTS.
|
||||
# see https://github.com/nodesource/distributions#debinstall
|
||||
curl -sL --fail --show-error https://deb.nodesource.com/setup_22.x | bash
|
||||
curl -sL --fail --show-error https://deb.nodesource.com/setup_24.x | bash
|
||||
apt-get install -y nodejs
|
||||
node --version
|
||||
npm --version
|
||||
@@ -24,7 +24,7 @@ npm --version
|
||||
# a private ca. instead, either set the NODE_USE_SYSTEM_CA environment
|
||||
# variable or use the --use-system-ca command line option.
|
||||
# see https://github.com/nodejs/node/pull/59276
|
||||
# see https://nodejs.org/docs/latest-v22.x/api/cli.html#--use-system-ca
|
||||
# see https://nodejs.org/docs/latest-v24.x/api/cli.html#--use-system-ca
|
||||
export NODE_USE_SYSTEM_CA='1'
|
||||
|
||||
#
|
||||
|
||||
@@ -65,11 +65,11 @@ dotnet nuget list source
|
||||
# see https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target
|
||||
# see https://www.nuget.org/packages/Serilog/
|
||||
# renovate: datasource=nuget depName=Serilog
|
||||
serilog_version='4.3.0'
|
||||
serilog_version='4.3.1'
|
||||
cat >example-hello-world.csproj <<EOF
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<Version>1.0.0</Version>
|
||||
<Authors>Alice Doe</Authors>
|
||||
<Copyright>Copyleft Alice Doe</Copyright>
|
||||
@@ -128,7 +128,7 @@ cat >test.csproj <<'EOF'
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
EOF
|
||||
|
||||
@@ -30,7 +30,7 @@ Set-Location tmp/use-npm-repository
|
||||
|
||||
# install node LTS.
|
||||
# see https://community.chocolatey.org/packages/nodejs-lts
|
||||
choco install -y nodejs-lts --version 22.19.0
|
||||
choco install -y nodejs-lts --version 24.18.0
|
||||
Import-Module C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
|
||||
Update-SessionEnvironment
|
||||
node --version
|
||||
@@ -42,7 +42,7 @@ npm --version
|
||||
# a private ca. instead, either set the NODE_USE_SYSTEM_CA environment
|
||||
# variable or use the --use-system-ca command line option.
|
||||
# see https://github.com/nodejs/node/pull/59276
|
||||
# see https://nodejs.org/docs/latest-v22.x/api/cli.html#--use-system-ca
|
||||
# see https://nodejs.org/docs/latest-v24.x/api/cli.html#--use-system-ca
|
||||
$env:NODE_USE_SYSTEM_CA='1'
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user