Skip to content

Commit b2ad2f6

Browse files
gpetrouflobernd
authored andcommitted
Update TargetFrameworks (#8052)
1 parent 1acd792 commit b2ad2f6

33 files changed

+1619
-2032
lines changed

.buildkite/DockerFile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
ARG DOTNET_VERSION=6.0.403
1+
ARG DOTNET_VERSION=8.0.100
22
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build
33

4+
ENV NUGET_SCRATCH="/tmp/NuGetScratch"
5+
46
ARG USER_ID
57
ARG GROUP_ID
68

@@ -42,6 +44,7 @@ RUN chown -R $GROUP_ID:$USER_ID /tmp/NuGetScratch
4244
COPY . .
4345

4446
# making sure enough git info is available inside the container
47+
RUN git config --global --add safe.directory '*'
4548
RUN git rev-parse HEAD .
4649

4750
# USER user

.buildkite/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
env:
66
TEST_SUITE: "{{ matrix.suite }}"
77
STACK_VERSION: master-SNAPSHOT
8-
DOTNET_VERSION: 6.0.403
8+
DOTNET_VERSION: 8.0.100
99
matrix:
1010
setup:
1111
suite:

.buildkite/run-repository.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
$NODE_NAME,
1515

1616
[string]
17-
$DOTNET_VERSION = "6.0.403"
17+
$DOTNET_VERSION = "8.0.100"
1818
)
1919

2020
$ESC = [char]27

.buildkite/run-repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
DOTNET_VERSION=${DOTNET_VERSION-6.0.403}
12+
DOTNET_VERSION=${DOTNET_VERSION-8.0.100}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

.buildkite/run-tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param (
88
$TEST_SUITE = "free",
99

1010
[string]
11-
$DOTNET_VERSION = "6.0.403"
11+
$DOTNET_VERSION = "8.0.100"
1212
)
1313

1414
$ESC = [char]27

.ci/DockerFile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
ARG DOTNET_VERSION=6.0.403
1+
ARG DOTNET_VERSION=8.0.100
22
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build
33

4+
ENV NUGET_SCRATCH="/tmp/NuGetScratch"
5+
46
ARG USER_ID
57
ARG GROUP_ID
68

@@ -42,6 +44,7 @@ RUN chown -R $GROUP_ID:$USER_ID /tmp/NuGetScratch
4244
COPY . .
4345

4446
# making sure enough git info is available inside the container
47+
RUN git config --global --add safe.directory '*'
4548
RUN git rev-parse HEAD .
4649

4750
# USER user

.ci/make.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OUTPUT_DIR="$repo/${output_folder}"
4242
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
4343
mkdir -p "$OUTPUT_DIR"
4444

45-
DOTNET_VERSION=${DOTNET_VERSION-6.0.403}
45+
DOTNET_VERSION=${DOTNET_VERSION-8.0.100}
4646

4747
echo -e "\033[34;1mINFO:\033[0m PRODUCT ${product}\033[0m"
4848
echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m"
@@ -121,7 +121,8 @@ echo -e "\033[34;1mINFO: building $product container\033[0m"
121121

122122
docker build --file .ci/DockerFile --tag ${product} \
123123
--build-arg USER_ID="$(id -u)" \
124-
--build-arg GROUP_ID="$(id -g)" .
124+
--build-arg GROUP_ID="$(id -g)" \
125+
--build-arg DOTNET_VERSION="$DOTNET_VERSION" .
125126

126127
# ------------------------------------------------------- #
127128
# Run the Container

.ci/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ STACK_VERSION=8.0.0-SNAPSHOT ./.ci/run-tests
3030
|-------------------------|-------------|-------------|
3131
| `STACK_VERSION` | `N/A` | The elasticsearch version to target
3232
| `TEST_SUITE` | `basic` | `free` or `platinum` sets which test suite to run and which container to run against. |
33-
| `DOTNET_VERSION` | `6.0.403` | The .NET sdk version used to grab the proper container |
33+
| `DOTNET_VERSION` | `8.0.100` | The .NET sdk version used to grab the proper container |
3434

3535
If you want to manually spin up elasticsearch for these tests and call the runner afterwards you can use
3636

.ci/run-repository.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
$NODE_NAME,
1515

1616
[string]
17-
$DOTNET_VERSION = "6.0.403"
17+
$DOTNET_VERSION = "8.0.100"
1818
)
1919

2020
$ESC = [char]27

.ci/run-repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
DOTNET_VERSION=${DOTNET_VERSION-6.0.403}
12+
DOTNET_VERSION=${DOTNET_VERSION-8.0.100}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

.ci/run-tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param (
88
$TEST_SUITE = "free",
99

1010
[string]
11-
$DOTNET_VERSION = "6.0.403"
11+
$DOTNET_VERSION = "8.0.100"
1212
)
1313

1414
$ESC = [char]27

.ci/test-matrix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ TEST_SUITE:
88
- platinum
99

1010
DOTNET_VERSION:
11-
- 6.0.403
11+
- 8.0.100
1212

1313
exclude: ~

.github/workflows/integration-jobs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v3
41-
- uses: actions/setup-dotnet@v3
41+
- uses: actions/setup-dotnet@v4
4242
with:
43-
dotnet-version: '6.0.403'
43+
dotnet-version: '8.0.100'
4444
- uses: actions/cache@v3
4545
with:
4646
path: ~/.nuget/packages

.github/workflows/make-bump.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
Updates ${{ github.event.inputs.branch }} to version ${{ github.event.inputs.version }}.
3434
labels: "infra,code-gen"
3535
# Add version and backport labels automatically
36-
- uses: actions/setup-dotnet@v3
36+
- uses: actions/setup-dotnet@v4
3737
with:
38-
dotnet-version: '6.0.403'
38+
dotnet-version: '8.0.100'
3939
- name: Install dotnet-script
4040
run: dotnet tool install release-notes --tool-path dotnet-tool
4141

.github/workflows/make-release-notes.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
with:
5050
ref: "${{ matrix.branch }}"
5151

52-
- uses: actions/setup-dotnet@v3
52+
- uses: actions/setup-dotnet@v4
5353
with:
54-
dotnet-version: '6.0.403'
54+
dotnet-version: '8.0.100'
5555
- name: Install dotnet-script
5656
run: dotnet tool install release-notes --tool-path dotnet-tool
5757

.github/workflows/stale-jobs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v3
25-
- uses: actions/setup-dotnet@v3
25+
- uses: actions/setup-dotnet@v4
2626
with:
27-
dotnet-version: '6.0.403'
27+
dotnet-version: '8.0.100'
2828
- uses: actions/cache@v3
2929
with:
3030
path: ~/.nuget/packages

.github/workflows/test-jobs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v3
24-
- uses: actions/setup-dotnet@v3
24+
- uses: actions/setup-dotnet@v4
2525
with:
26-
dotnet-version: '6.0.403'
26+
dotnet-version: '8.0.100'
2727
- uses: actions/cache@v3
2828
with:
2929
path: ~/.nuget/packages
@@ -51,9 +51,9 @@ jobs:
5151
steps:
5252
- name: Checkout
5353
uses: actions/checkout@v3
54-
- uses: actions/setup-dotnet@v3
54+
- uses: actions/setup-dotnet@v4
5555
with:
56-
dotnet-version: '6.0.403'
56+
dotnet-version: '8.0.100'
5757
- uses: actions/cache@v3
5858
with:
5959
path: ~/.nuget/packages

.github/workflows/unified-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v3
29-
- uses: actions/setup-dotnet@v3
29+
- uses: actions/setup-dotnet@v4
3030
with:
31-
dotnet-version: '6.0.403'
31+
dotnet-version: '8.0.100'
3232

3333
- run: "./.ci/make.sh assemble ${{ matrix.stack_version }}"
3434
name: Assemble ${{ matrix.stack_version }}

build/scripts/Benchmarking.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Benchmarker =
1818
let password = match args.CommandArguments with | Benchmark b -> b.Password | _ -> None
1919
let runInteractive = not args.NonInteractive
2020
let credentials = (username, password)
21-
let runCommandPrefix = "run -f net5.0 -c Release"
21+
let runCommandPrefix = "run -f net8.0 -c Release"
2222
let runCommand =
2323
match (runInteractive, url, credentials) with
2424
| (false, Some url, (Some username, Some password)) -> sprintf "%s -- --all \"%s\" \"%s\" \"%s\"" runCommandPrefix url username password

build/scripts/Documentation.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Documentation =
1313

1414
exception DocGenError of string
1515
let Generate args =
16-
let path = Paths.InplaceBuildOutput "DocGenerator" "net5.0"
16+
let path = Paths.InplaceBuildOutput "DocGenerator" "net8.0"
1717
let generator = sprintf "%s.dll" "DocGenerator"
1818

1919
printfn "==> %s" path

build/scripts/packages.lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": 1,
33
"dependencies": {
4-
"net6.0": {
4+
"net8.0": {
55
"Bullseye": {
66
"type": "Direct",
77
"requested": "[3.3.0, )",

build/scripts/scripts.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<!-- Type Providers are restored using net461, fine for netcoreapp2.2 so we kill the warning -->
66
<NoWarn>$(NoWarn);NU1701</NoWarn>

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.403",
3+
"version": "8.0.100",
44
"rollForward": "minor",
55
"allowPrerelease": false
66
},

src/Elastic.Clients.Elasticsearch.JsonNetSerializer/Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PropertyGroup>
1111
<IsPackable>true</IsPackable>
1212
<GenerateDocumentationFile>true</GenerateDocumentationFile>
13-
<TargetFrameworks>netstandard2.0;net461;netstandard2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
13+
<TargetFrameworks>netstandard2.0;net462;netstandard2.1;net6.0;net8.0</TargetFrameworks>
1414
</PropertyGroup>
1515
<ItemGroup>
1616
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />

0 commit comments

Comments
 (0)