Skip to content

KCLnet AWS credentials role change and dependabot auto-merge fix #262

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

Merged
merged 211 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
e6dfd65
inital commit + credentials
skyero-aws May 7, 2025
02b7b6e
gitignore .idea
skyero-aws May 7, 2025
7f21942
add setup .NET
skyero-aws May 7, 2025
b13ad10
uodate dotnet setup version
skyero-aws May 7, 2025
d2f08a3
add extra net verison
skyero-aws May 7, 2025
a1d27db
ass os specification
skyero-aws May 7, 2025
7c5aced
remove os specification for build
skyero-aws May 7, 2025
281e6bd
change target framework to net9.0
skyero-aws May 7, 2025
10464ef
remove target framework
skyero-aws May 7, 2025
7efd6ad
change csproj to 5.0
skyero-aws May 7, 2025
82239da
change target framework to net8.0
skyero-aws May 7, 2025
34ee1c1
change target framework to 7.0
skyero-aws May 7, 2025
45760c5
add multiple frameworks
skyero-aws May 7, 2025
99a9a72
add multiple frameworks + syntax
skyero-aws May 7, 2025
4efcd2b
change target framework to netcoreapp
skyero-aws May 7, 2025
684e5a9
change target framework to net
skyero-aws May 7, 2025
b017adc
update target frameworks to 7.0 and 8.0
skyero-aws May 7, 2025
97f203c
change 5.0 to 6.0
skyero-aws May 7, 2025
ad0ccba
change clientlibrary target framework to netcoreapp8.0
skyero-aws May 7, 2025
4c27d2e
change clientlibrary target framework to netcoreapp6.0
skyero-aws May 7, 2025
0d0f3df
remove .net matrix
skyero-aws May 7, 2025
3ca550f
show dotnet verison
skyero-aws May 7, 2025
c64271e
download aws sdk
skyero-aws May 7, 2025
42653fe
add path for awssdk
skyero-aws May 7, 2025
bc405e9
add path for awssdk 2
skyero-aws May 7, 2025
f14b2e3
fix directory pathing
skyero-aws May 7, 2025
cedf5db
download awssdk into both sample files
skyero-aws May 7, 2025
614e59b
add dotnet run job
skyero-aws May 7, 2025
90e255d
add dotnet run job
skyero-aws May 7, 2025
de3bce3
run KCL producer w/ pwd
skyero-aws May 7, 2025
2d2e7f6
run KCL producer
skyero-aws May 7, 2025
7f58125
update awssdk version
skyero-aws May 7, 2025
96f107f
run kcl consumer w/ timeout
skyero-aws May 8, 2025
579036b
add --project path
skyero-aws May 8, 2025
88b0f73
remove --execute
skyero-aws May 8, 2025
8604080
remove args
skyero-aws May 8, 2025
207e5c1
print command and run cmdsub
skyero-aws May 8, 2025
923a484
build sampleconsumer and run bootstrap
skyero-aws May 8, 2025
c9a83f9
run from SampleConsumer
skyero-aws May 8, 2025
e34a7be
remove exit clause
skyero-aws May 8, 2025
9e7bb05
add dotnet build
skyero-aws May 8, 2025
4edbc13
add dotnet build and proper cd pathing
skyero-aws May 8, 2025
2dbd6d4
more directory pathing
skyero-aws May 8, 2025
b7ab0f4
remove timeout
skyero-aws May 8, 2025
de02523
run SampleConsumer
skyero-aws May 8, 2025
b24bebc
add extra build step
skyero-aws May 8, 2025
227a375
add extra build step2
skyero-aws May 8, 2025
793d5f3
pathing changes
skyero-aws May 8, 2025
7bc6909
pathing changes2
skyero-aws May 8, 2025
bad67fc
run sampleconsumer.dll
skyero-aws May 8, 2025
8a0bed6
build again
skyero-aws May 8, 2025
8e5ad0b
nobuild
skyero-aws May 8, 2025
574ba12
run csproj
skyero-aws May 8, 2025
349efc4
run csproj
skyero-aws May 8, 2025
2e68555
project path to bootstrap
skyero-aws May 8, 2025
3f599c1
project path to bootstrap + prop path
skyero-aws May 8, 2025
5a61235
cd to Sample consumer
skyero-aws May 8, 2025
b88fdcd
change pathing againe
skyero-aws May 8, 2025
0c55620
print kcl command
skyero-aws May 8, 2025
41d7923
print kcl command
skyero-aws May 8, 2025
7dcef76
change build and dependency order
skyero-aws May 9, 2025
e95023e
change build and dependency order
skyero-aws May 9, 2025
5adc700
change build and dependency order
skyero-aws May 9, 2025
09bddbb
change build and dependency order
skyero-aws May 9, 2025
2bfe118
change build and dependency order
skyero-aws May 9, 2025
3b80131
cd bootstrap // dotnet run
skyero-aws May 9, 2025
0a491bd
cd bootstrap // dotnet run --properties
skyero-aws May 9, 2025
e21a873
cd bootstrap // dotnet run --project bootstrap --properties
skyero-aws May 9, 2025
d7f1c16
cd sampleconsumer // dotnet run --project bootstrap --properties
skyero-aws May 9, 2025
37602d4
cd sampleconsumer // dotnet run --project ../bootstrap/bootstrap --pr…
skyero-aws May 9, 2025
71a66ac
cd sampleconsumer // dotnet run --project ../bootstrap/bootstrap --pr…
skyero-aws May 9, 2025
d8f3f17
add timeout
skyero-aws May 9, 2025
ecaea90
re-add producer and install coreutils
skyero-aws May 9, 2025
db923c0
re-add jdk versions
skyero-aws May 9, 2025
16d5680
FAILURE TESTING: logback to 1.5.16 from 1.3.15 (jdk8 error)
skyero-aws May 9, 2025
81e22e0
SUCCCESS TESTING: logback to 1.3.14 from 1.5.16
skyero-aws May 9, 2025
008f066
add dependabot auto merge
skyero-aws May 9, 2025
8d980b8
change frequency of dependabot scan
skyero-aws May 9, 2025
6ba5a10
rmove clientlibrary awssdk packages
skyero-aws May 9, 2025
09e516a
remove on push
skyero-aws May 9, 2025
9193107
remove on push
skyero-aws May 9, 2025
7d46181
testing netcoreapp5.0
skyero-aws May 9, 2025
4726e74
remove on push
skyero-aws May 9, 2025
bece424
revert dependabot file
skyero-aws May 9, 2025
0da1e7c
add on.push:master
skyero-aws May 9, 2025
34017e3
change aws role name; update workflow triggers
skyero-aws May 12, 2025
3dec05a
remove extra dotnet add packages and add env variable for aws sdk
skyero-aws May 12, 2025
47b20d4
remove extra dotnet add packages and add env variable for aws sdk
skyero-aws May 12, 2025
690e144
remove extra dotnet add packages and add env variable for aws sdk
skyero-aws May 12, 2025
9ab7312
update aws sdk version in SampleProducer.csproj
skyero-aws May 13, 2025
d4cab88
change all targets to netstandard2.0
skyero-aws May 13, 2025
1f7375a
multitarget including netstandard2.0
skyero-aws May 13, 2025
4457002
multitarget including netstandard2.0
skyero-aws May 13, 2025
1d8da3b
add net8.0 multitargeting
skyero-aws May 13, 2025
ca11d74
change net8.0 to netcoreapp8.0
skyero-aws May 13, 2025
bf11e46
success testing: reverted
skyero-aws May 13, 2025
007bd33
change build order
skyero-aws May 13, 2025
c7aafbf
revert awssdk version is sampleproducer.csproj
skyero-aws May 13, 2025
099dcc6
add permissions; add approval step in automerge
skyero-aws May 14, 2025
c380522
add maven as package ecosystem
skyero-aws May 14, 2025
24a5fc9
Bump fasterxml-jackson.version from 2.13.5 to 2.19.0
dependabot[bot] May 14, 2025
7d0e798
Bump kcl.version from 3.0.0 to 3.0.3
dependabot[bot] May 14, 2025
9676309
Merge pull request #2 from skyero-aws/dependabot/maven/kcl.version-3.0.3
github-actions[bot] May 14, 2025
7f8060b
Merge pull request #1 from skyero-aws/dependabot/maven/fasterxml-jack…
github-actions[bot] May 14, 2025
af99eae
Bump commons-codec:commons-codec from 1.15 to 1.18.0
dependabot[bot] May 15, 2025
400f915
Merge pull request #3 from skyero-aws/dependabot/maven/commons-codec-…
github-actions[bot] May 15, 2025
df3f3bb
revert kcl version in pom
skyero-aws May 15, 2025
b09cff7
revert pom
skyero-aws May 15, 2025
3f50ca7
update bootstrap httpclient 1
skyero-aws May 15, 2025
6534a37
update bootstrap httpclient 2
skyero-aws May 15, 2025
c9a173d
update bootstrap httpclient 3
skyero-aws May 15, 2025
361d6ec
update bootstrap httpclient 4
skyero-aws May 15, 2025
c1f8a98
update bootstrap httpclient 5
skyero-aws May 15, 2025
a558b2d
update bootstrap httpclient 6
skyero-aws May 15, 2025
a8041d7
update bootstrap httpclient 7
skyero-aws May 15, 2025
bcfd540
update bootstrap httpclient 7
skyero-aws May 15, 2025
1ff8916
update bootstrap httpclient 8
skyero-aws May 15, 2025
0db6969
update bootstrap httpclient 9
skyero-aws May 15, 2025
708039e
update bootstrap httpclient 10
skyero-aws May 15, 2025
2e24a15
change jar download website
skyero-aws May 15, 2025
ce51c3c
add retry strategy and await on mp.Fetch
skyero-aws May 15, 2025
a46ab8e
make FetchJars async
skyero-aws May 15, 2025
c1885a0
make Main async
skyero-aws May 15, 2025
4968a93
revert
skyero-aws May 15, 2025
8cd2108
revert with retry strategy
skyero-aws May 15, 2025
f83acf3
revert with retry strategy 2
skyero-aws May 15, 2025
34c8416
revert with retry strategy 3
skyero-aws May 15, 2025
b66c872
remove retry strategy
skyero-aws May 15, 2025
477a411
remove retry strategy
skyero-aws May 15, 2025
4fbf805
remove retry strategy
skyero-aws May 15, 2025
825e93f
change target to 6
skyero-aws May 15, 2025
661e9a5
add catch strategy to FindJava
skyero-aws May 15, 2025
85fb92d
clean up unreachable code
skyero-aws May 15, 2025
c21b021
re-add all tests
skyero-aws May 15, 2025
0ae26be
Bump kcl.version from 3.0.0 to 3.0.3
dependabot[bot] May 15, 2025
8ff22ec
Merge pull request #9 from skyero-aws/dependabot/maven/kcl.version-3.0.3
github-actions[bot] May 15, 2025
752991e
Bump org.slf4j:slf4j-api from 2.0.13 to 2.0.17
dependabot[bot] May 15, 2025
2d2454a
Merge pull request #11 from skyero-aws/dependabot/maven/org.slf4j-slf…
github-actions[bot] May 15, 2025
e84945b
Bump fasterxml-jackson.version from 2.13.5 to 2.19.0
dependabot[bot] May 15, 2025
1e98654
Merge pull request #13 from skyero-aws/dependabot/maven/fasterxml-jac…
github-actions[bot] May 15, 2025
e174845
Bump commons-logging:commons-logging from 1.1.3 to 1.3.5
dependabot[bot] May 15, 2025
0bda307
Merge pull request #14 from skyero-aws/dependabot/maven/commons-loggi…
github-actions[bot] May 15, 2025
35cc0e4
Bump org.reactivestreams:reactive-streams from 1.0.3 to 1.0.4
dependabot[bot] May 15, 2025
a09d1ba
Merge pull request #15 from skyero-aws/dependabot/maven/org.reactives…
github-actions[bot] May 15, 2025
ffa54fa
Bump commons-beanutils:commons-beanutils from 1.9.4 to 1.10.1
dependabot[bot] May 15, 2025
b37222a
Bump netty-reactive.version from 2.0.6 to 2.0.14
dependabot[bot] May 15, 2025
97d4816
Merge pull request #17 from skyero-aws/dependabot/maven/commons-beanu…
github-actions[bot] May 15, 2025
556680d
Merge pull request #18 from skyero-aws/dependabot/maven/netty-reactiv…
github-actions[bot] May 15, 2025
ea1a741
Bump commons-io:commons-io from 2.16.1 to 2.19.0
dependabot[bot] May 15, 2025
e6036a3
Merge pull request #20 from skyero-aws/dependabot/maven/commons-io-co…
github-actions[bot] May 15, 2025
a9a0308
Bump org.apache.httpcomponents:httpclient from 4.5.13 to 4.5.14
dependabot[bot] May 15, 2025
d1f8712
Bump org.apache.commons:commons-collections4 from 4.4 to 4.5.0
dependabot[bot] May 15, 2025
e35d303
Merge pull request #21 from skyero-aws/dependabot/maven/org.apache.ht…
github-actions[bot] May 15, 2025
3d81486
Merge pull request #22 from skyero-aws/dependabot/maven/org.apache.co…
github-actions[bot] May 15, 2025
7e3a02e
change PR limit to 4
skyero-aws May 15, 2025
0e997e9
Bump io.reactivex.rxjava3:rxjava from 3.1.8 to 3.1.10
dependabot[bot] May 15, 2025
9dab42e
Bump com.google.protobuf:protobuf-java from 4.27.5 to 4.31.0
dependabot[bot] May 15, 2025
fe81cc2
Bump org.codehaus.mojo:animal-sniffer-annotations from 1.20 to 1.24
dependabot[bot] May 15, 2025
d9413d8
Bump software.amazon.glue:schema-registry-serde from 1.1.19 to 1.1.23
dependabot[bot] May 15, 2025
3e34237
Merge pull request #23 from skyero-aws/dependabot/maven/io.reactivex.…
github-actions[bot] May 15, 2025
06384bd
Merge pull request #25 from skyero-aws/dependabot/maven/org.codehaus.…
github-actions[bot] May 15, 2025
7949796
Merge pull request #24 from skyero-aws/dependabot/maven/com.google.pr…
github-actions[bot] May 15, 2025
9695715
Merge pull request #26 from skyero-aws/dependabot/maven/software.amaz…
github-actions[bot] May 15, 2025
2f4119d
Bump commons-codec:commons-codec from 1.15 to 1.18.0
dependabot[bot] May 15, 2025
1f31149
Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0
dependabot[bot] May 15, 2025
4f7461f
Bump com.amazon.ion:ion-java from 1.11.4 to 1.11.10
dependabot[bot] May 15, 2025
440c494
Bump joda-time:joda-time from 2.10.13 to 2.14.0
dependabot[bot] May 15, 2025
1888df2
Merge pull request #27 from skyero-aws/dependabot/maven/commons-codec…
github-actions[bot] May 15, 2025
743f25c
Merge pull request #28 from skyero-aws/dependabot/maven/org.apache.co…
github-actions[bot] May 15, 2025
ecb2ee9
Merge pull request #30 from skyero-aws/dependabot/maven/joda-time-jod…
github-actions[bot] May 15, 2025
8956ca8
Merge pull request #29 from skyero-aws/dependabot/maven/com.amazon.io…
github-actions[bot] May 15, 2025
ae79378
add ignore awssdk and logback to dependabot.yml
skyero-aws May 15, 2025
21d7273
remove logback from ignore dependencies
skyero-aws May 16, 2025
7d1bbc8
revert pom
skyero-aws May 16, 2025
a0dbef7
Bump org.apache.commons:commons-collections4 from 4.4 to 4.5.0
dependabot[bot] May 16, 2025
0b5238e
Bump fasterxml-jackson.version from 2.13.5 to 2.19.0
dependabot[bot] May 16, 2025
6059537
Bump commons-beanutils:commons-beanutils from 1.9.4 to 1.10.1
dependabot[bot] May 16, 2025
fafe67f
Bump org.apache.httpcomponents:httpclient from 4.5.13 to 4.5.14
dependabot[bot] May 16, 2025
b843745
Merge pull request #31 from skyero-aws/dependabot/maven/org.apache.co…
github-actions[bot] May 16, 2025
6f0c8b5
Merge pull request #32 from skyero-aws/dependabot/maven/fasterxml-jac…
github-actions[bot] May 16, 2025
0683277
Merge pull request #34 from skyero-aws/dependabot/maven/org.apache.ht…
github-actions[bot] May 16, 2025
8098c3b
Merge pull request #33 from skyero-aws/dependabot/maven/commons-beanu…
github-actions[bot] May 16, 2025
8b206d2
revert pom
skyero-aws May 16, 2025
4296828
test 1
skyero-aws May 16, 2025
f9d5ca4
Bump org.codehaus.mojo:animal-sniffer-annotations from 1.20 to 1.24
dependabot[bot] May 16, 2025
7532849
Bump kcl.version from 3.0.0 to 3.0.3
dependabot[bot] May 16, 2025
983424a
Bump fasterxml-jackson.version from 2.13.5 to 2.19.0
dependabot[bot] May 16, 2025
37884fd
Bump joda-time:joda-time from 2.10.13 to 2.14.0
dependabot[bot] May 16, 2025
4434c46
Merge pull request #35 from skyero-aws/dependabot/maven/org.codehaus.…
github-actions[bot] May 16, 2025
014b904
Merge pull request #36 from skyero-aws/dependabot/maven/kcl.version-3…
github-actions[bot] May 16, 2025
1f46bb3
Merge pull request #37 from skyero-aws/dependabot/maven/fasterxml-jac…
github-actions[bot] May 16, 2025
0508801
Merge pull request #38 from skyero-aws/dependabot/maven/joda-time-jod…
github-actions[bot] May 16, 2025
1c9a9a3
revert pom
skyero-aws May 16, 2025
c6d2ddf
Merge branch 'master' into master
skyero-aws May 16, 2025
02f3b6c
Bump software.amazon.glue:schema-registry-serde from 1.1.19 to 1.1.23
dependabot[bot] May 19, 2025
82ea41b
Bump org.codehaus.mojo:animal-sniffer-annotations from 1.20 to 1.24
dependabot[bot] May 19, 2025
3383aac
Bump org.apache.commons:commons-collections4 from 4.4 to 4.5.0
dependabot[bot] May 19, 2025
7765fa9
Merge pull request #40 from skyero-aws/dependabot/maven/software.amaz…
github-actions[bot] May 19, 2025
5a61e34
Merge pull request #41 from skyero-aws/dependabot/maven/org.codehaus.…
github-actions[bot] May 19, 2025
71c4d9c
Merge pull request #42 from skyero-aws/dependabot/maven/org.apache.co…
github-actions[bot] May 19, 2025
9cc120c
revert pom
skyero-aws May 19, 2025
1805d0a
Bump fasterxml-jackson.version from 2.13.5 to 2.19.0
dependabot[bot] May 20, 2025
a46dcad
Merge pull request #43 from skyero-aws/dependabot/maven/fasterxml-jac…
github-actions[bot] May 20, 2025
c8c6cef
Bump com.google.protobuf:protobuf-java from 4.27.5 to 4.31.0
dependabot[bot] May 21, 2025
ab9c2ad
Bump commons-logging:commons-logging from 1.1.3 to 1.3.5
dependabot[bot] May 21, 2025
23ea9d3
Bump io.reactivex.rxjava3:rxjava from 3.1.8 to 3.1.10
dependabot[bot] May 21, 2025
dee1240
Merge pull request #45 from skyero-aws/dependabot/maven/com.google.pr…
github-actions[bot] May 21, 2025
309501d
Merge pull request #47 from skyero-aws/dependabot/maven/commons-loggi…
github-actions[bot] May 21, 2025
7d6df68
Merge pull request #48 from skyero-aws/dependabot/maven/io.reactivex.…
github-actions[bot] May 21, 2025
32ff510
disable automerge
skyero-aws May 21, 2025
2bfa3d9
revert pom
skyero-aws May 28, 2025
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
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ updates:
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "maven"
directory: "/"
open-pull-requests-limit: 4
schedule:
interval: "daily"
ignore:
- dependency-name: 'awssdk.*'
23 changes: 17 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ on:
permissions:
id-token: write
contents: write
pull-requests: write
statuses: write

jobs:
sample-run:
timeout-minutes: 8
timeout-minutes: 9
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -30,6 +32,8 @@ jobs:
steps:
- name: Checkout working directory
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -51,8 +55,7 @@ jobs:

- name: Restore, Build, and Test
run: |
dotnet restore
dotnet build --no-restore
dotnet build
dotnet test --no-build

- name: Install AWS SDK into projects
Expand Down Expand Up @@ -83,17 +86,25 @@ jobs:
auto-merge-dependabot:
needs: [sample-run]
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
alert-lookup: true
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs

- name: Approve PR
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --merge "$PR_URL"
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

# - name: Enable auto-merge for Dependabot PRs
# if: steps.metadata.outputs.update-type != 'version-update:semver-major'
# run: gh pr merge --auto --merge "$PR_URL"
# env:
# PR_URL: ${{github.event.pull_request.html_url}}
# GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
32 changes: 23 additions & 9 deletions Bootstrap/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
using System.Diagnostics;
using System.Linq;
using System.Xml.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using CommandLine;

namespace Amazon.Kinesis.ClientLibrary.Bootstrap
Expand Down Expand Up @@ -61,12 +63,23 @@
}

String destination = Path.Combine(folder, FileName);
if (!File.Exists(destination))
{
var client = new WebClient();
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
Console.Error.WriteLine(Url + " --> " + destination);
client.DownloadFile(new Uri(Url), destination);
if (!File.Exists(destination)) {

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, macOS-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, ubuntu-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 66 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, windows-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");

try {
Console.Error.WriteLine(Url + " --> " + destination);
using var response = client.GetAsync(new Uri(Url)).GetAwaiter().GetResult();
response.EnsureSuccessStatusCode();

using var fs = new FileStream(destination, FileMode.Create);
response.Content.CopyToAsync(fs).GetAwaiter().GetResult();
return;
}
catch (HttpRequestException ex)
{
throw new Exception($"Failed to download {FileName}: {ex.Message}", ex);
}
}
}

Expand All @@ -83,7 +96,7 @@
urlParts.Add(ArtifactId);
urlParts.Add(Version);
urlParts.Add(FileName);
return "https://search.maven.org/remotecontent?filepath=" + String.Join("/", urlParts);
return "https://repo1.maven.org/maven2/" + String.Join("/", urlParts);
}
}
}
Expand Down Expand Up @@ -204,7 +217,7 @@

Process proc = new Process
{
StartInfo = new ProcessStartInfo

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, macOS-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, ubuntu-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (24, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (8, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (17, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (21, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, windows-latest)

The variable 'ex' is declared but never used

Check warning on line 220 in Bootstrap/Bootstrap.cs

View workflow job for this annotation

GitHub Actions / sample-run (11, windows-latest)

The variable 'ex' is declared but never used
{
FileName = java,
Arguments = "-version",
Expand All @@ -219,6 +232,8 @@
}
catch (Exception ex)
{
Console.WriteLine($"Error finding Java: {ex.Message}");
return null;
}
//TODO find away to read from registery on different OSs
// Failing that, look in the registry.
Expand All @@ -238,8 +253,7 @@
// }
// }
//}

return null;
//return null;
}

public static void Main(string[] args)
Expand Down
2 changes: 1 addition & 1 deletion ClientLibrary/ClientLibrary.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp5.0</TargetFramework>
<TargetFramework>netcoreapp6.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

Expand Down
Loading