Skip to content

Commit 321d669

Browse files
dependabot[bot]github-actions[bot]xiang17
authored
Bump com.github.oshi:oshi-core from 6.11.1 to 7.2.1 (#4720)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sean Li <xili9@microsoft.com>
1 parent ef83e7d commit 321d669

9 files changed

Lines changed: 129 additions & 40 deletions

File tree

‎agent/agent-tooling/build.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
4848
compileOnly("io.opentelemetry:opentelemetry-extension-trace-propagators")
4949

50-
implementation("com.github.oshi:oshi-core:6.11.1") {
50+
implementation("com.github.oshi:oshi-core:7.2.1") {
5151
exclude("org.slf4j", "slf4j-api")
5252
}
5353

‎agent/agent-tooling/gradle.lockfile‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ com.fasterxml.jackson.core:jackson-core:2.21.3=runtimeClasspath
2020
com.fasterxml.jackson.core:jackson-databind:2.21.3=runtimeClasspath
2121
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.3=runtimeClasspath
2222
com.fasterxml.jackson:jackson-bom:2.21.3=runtimeClasspath
23-
com.github.oshi:oshi-core:6.11.1=runtimeClasspath
23+
com.github.oshi:oshi-common:7.2.1=runtimeClasspath
24+
com.github.oshi:oshi-core:7.2.1=runtimeClasspath
2425
com.google.errorprone:error_prone_annotations:2.49.0=runtimeClasspath
2526
com.microsoft.azure:msal4j-persistence-extension:1.3.0=runtimeClasspath
2627
com.microsoft.azure:msal4j:1.23.1=runtimeClasspath
@@ -69,8 +70,10 @@ io.opentelemetry:opentelemetry-sdk:1.62.0=runtimeClasspath
6970
io.projectreactor.netty:reactor-netty-core:1.2.13=runtimeClasspath
7071
io.projectreactor.netty:reactor-netty-http:1.2.13=runtimeClasspath
7172
io.projectreactor:reactor-core:3.7.14=runtimeClasspath
72-
net.java.dev.jna:jna-platform:5.18.1=runtimeClasspath
73-
net.java.dev.jna:jna:5.18.1=runtimeClasspath
73+
net.java.dev.jna:jna-jpms:5.18.1=runtimeClasspath
74+
net.java.dev.jna:jna-platform-jpms:5.18.1=runtimeClasspath
75+
net.java.dev.jna:jna-platform:5.17.0=runtimeClasspath
76+
net.java.dev.jna:jna:5.17.0=runtimeClasspath
7477
org.apache.commons:commons-lang3:3.20.0=runtimeClasspath
7578
org.apache.commons:commons-text:1.15.0=runtimeClasspath
7679
org.junit:junit-bom:5.14.4=runtimeClasspath

‎agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/perfcounter/OshiPerformanceCounter.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
import oshi.SystemInfo;
1313
import oshi.hardware.CentralProcessor;
1414
import oshi.hardware.CentralProcessor.TickType;
15+
import oshi.software.common.os.linux.LinuxOSProcess;
1516
import oshi.software.os.OSProcess;
1617
import oshi.software.os.OperatingSystem;
17-
import oshi.software.os.linux.LinuxOSProcess;
1818
import oshi.util.FileUtil;
1919
import oshi.util.ParseUtil;
20-
import oshi.util.platform.linux.ProcPath;
20+
import oshi.util.linux.ProcPath;
2121

2222
public class OshiPerformanceCounter implements PerformanceCounter {
2323

‎agent/agent/build.gradle.kts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ tasks {
8585
exclude(dependency("io.opentelemetry:opentelemetry-context"))
8686
exclude(dependency("io.opentelemetry:opentelemetry-api-incubator"))
8787
exclude(dependency("io.opentelemetry:opentelemetry-common"))
88+
89+
// oshi-core 7.x brings jna-jpms/jna-platform-jpms, which overlap with the non-jpms
90+
// jna/jna-platform artifacts already present in the agent distribution.
91+
exclude(dependency("net.java.dev.jna:jna-jpms"))
92+
exclude(dependency("net.java.dev.jna:jna-platform-jpms"))
8893
}
8994
}
9095

File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2+
3+
Java Native Access (JNA) is licensed under the LGPL, version 2.1
4+
or later, or (from version 4.0 onward) the Apache License,
5+
version 2.0.
6+
7+
You can freely decide which license you want to apply to the project.
8+
9+
You may obtain a copy of the LGPL License at:
10+
11+
http://www.gnu.org/licenses/licenses.html
12+
13+
A copy is also included in the downloadable source code package
14+
containing JNA, in file "LGPL2.1", under the same directory
15+
as this file.
16+
17+
You may obtain a copy of the Apache License at:
18+
19+
http://www.apache.org/licenses/
20+
21+
A copy is also included in the downloadable source code package
22+
containing JNA, in file "AL2.0", under the same directory
23+
as this file.
24+
25+
Commercial support may be available, please e-mail
26+
twall[at]users[dot]sf[dot]net.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2+
3+
Java Native Access (JNA) is licensed under the LGPL, version 2.1
4+
or later, or (from version 4.0 onward) the Apache License,
5+
version 2.0.
6+
7+
You can freely decide which license you want to apply to the project.
8+
9+
You may obtain a copy of the LGPL License at:
10+
11+
http://www.gnu.org/licenses/licenses.html
12+
13+
A copy is also included in the downloadable source code package
14+
containing JNA, in file "LGPL2.1", under the same directory
15+
as this file.
16+
17+
You may obtain a copy of the Apache License at:
18+
19+
http://www.apache.org/licenses/
20+
21+
A copy is also included in the downloadable source code package
22+
containing JNA, in file "AL2.0", under the same directory
23+
as this file.
24+
25+
Commercial support may be available, please e-mail
26+
twall[at]users[dot]sf[dot]net.

‎licenses/more-licenses.md‎

Lines changed: 63 additions & 34 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)