Skip to content

Commit dced09e

Browse files
[adservice] bump dependencies & gradle (#1681)
* adservice bump dependencies * changelog
1 parent d7a21a7 commit dced09e

File tree

7 files changed

+36
-47
lines changed

7 files changed

+36
-47
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ the release.
2121
([#1670](https://github.com/open-telemetry/opentelemetry-demo/pull/1670))
2222
* [otel-col] Add host metrics receiver
2323
([#1675](https://github.com/open-telemetry/opentelemetry-demo/pull/1675))
24+
* [adservice] bump dependencies & gradle version
25+
([#1681](https://github.com/open-telemetry/opentelemetry-demo/pull/1681))
2426

2527
## 1.11.0
2628

src/adservice/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN ./gradlew installDist -PprotoSourceDir=./proto
2020

2121
FROM eclipse-temurin:21-jre
2222

23-
ARG version=2.3.0
23+
ARG version=2.6.0
2424
WORKDIR /usr/src/app/
2525

2626
COPY --from=builder /usr/src/app/ ./

src/adservice/build.gradle

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'com.github.sherter.google-java-format' version '0.9'
55
id 'idea'
66
id 'application'
7-
id 'com.github.ben-manes.versions' version '0.49.0'
7+
id 'com.github.ben-manes.versions' version '0.51.0'
88
}
99

1010
repositories {
@@ -16,11 +16,11 @@ description = 'Ad Service'
1616
group = "adservice"
1717
version = "0.1.0-SNAPSHOT"
1818

19-
def opentelemetryVersion = "1.38.0"
20-
def opentelemetryInstrumentationVersion = "2.4.0"
21-
def grpcVersion = "1.59.0"
22-
def jacksonVersion = "2.15.3"
23-
def protocVersion = "3.25.0"
19+
def opentelemetryVersion = "1.40.0"
20+
def opentelemetryInstrumentationVersion = "2.6.0"
21+
def grpcVersion = "1.65.1"
22+
def jacksonVersion = "2.17.2"
23+
def protocVersion = "3.25.3"
2424

2525
tasks.withType(JavaCompile).configureEach {
2626
sourceCompatibility = JavaVersion.VERSION_21
@@ -40,7 +40,7 @@ dependencies {
4040
implementation platform("io.opentelemetry:opentelemetry-bom:${opentelemetryVersion}")
4141
implementation platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${opentelemetryInstrumentationVersion}")
4242

43-
implementation "com.google.api.grpc:proto-google-common-protos:2.28.0",
43+
implementation "com.google.api.grpc:proto-google-common-protos:2.41.0",
4444
"javax.annotation:javax.annotation-api:1.3.2",
4545
"io.grpc:grpc-protobuf:${grpcVersion}",
4646
"io.grpc:grpc-stub:${grpcVersion}",
@@ -49,13 +49,13 @@ dependencies {
4949
"io.opentelemetry:opentelemetry-api",
5050
"io.opentelemetry:opentelemetry-sdk",
5151
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations",
52-
"org.apache.logging.log4j:log4j-core:2.21.1",
53-
"dev.openfeature.contrib.providers:flagd:0.7.0",
54-
'dev.openfeature:sdk:1.7.4'
52+
"org.apache.logging.log4j:log4j-core:2.23.1",
53+
"dev.openfeature.contrib.providers:flagd:0.8.4",
54+
'dev.openfeature:sdk:1.9.0'
5555

5656
runtimeOnly "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}",
5757
"com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}",
58-
"io.netty:netty-tcnative-boringssl-static:2.0.62.Final"
58+
"io.netty:netty-tcnative-boringssl-static:2.0.65.Final"
5959
}
6060
}
6161

-19.4 KB
Binary file not shown.

src/adservice/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/adservice/gradlew

+9-8
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -201,11 +202,11 @@ fi
201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
+12-26
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright 2020 Google LLC
4-
5-
Licensed under the Apache License, Version 2.0 (the "License");
6-
you may not use this file except in compliance with the License.
7-
You may obtain a copy of the License at
8-
9-
http://www.apache.org/licenses/LICENSE-2.0
10-
11-
Unless required by applicable law or agreed to in writing, software
12-
distributed under the License is distributed on an "AS IS" BASIS,
13-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
See the License for the specific language governing permissions and
15-
limitations under the License.
3+
Copyright The OpenTelemetry Authors
4+
SPDX-License-Identifier: Apache-2.0
165
-->
176

187
<Configuration status="WARN">
19-
<Appenders>
20-
<Console name="STDOUT" target="SYSTEM_OUT">
21-
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} - %logger{36} - %msg trace_id=%X{trace_id} span_id=%X{span_id} trace_flags=%X{trace_flags} %n"/>
22-
</Console>
23-
</Appenders>
24-
<Loggers>
25-
<Logger name="io.grpc.netty" level="INFO"/>
26-
<Logger name="io.netty" level="INFO"/>
27-
<Logger name="sun.net" level="INFO"/>
28-
<Root level="INFO">
29-
<AppenderRef ref="STDOUT"/>
30-
</Root>
31-
</Loggers>
8+
<Appenders>
9+
<Console name="STDOUT" target="SYSTEM_OUT">
10+
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} - %logger{36} - %msg trace_id=%X{trace_id} span_id=%X{span_id} trace_flags=%X{trace_flags} %n"/>
11+
</Console>
12+
</Appenders>
13+
<Loggers>
14+
<Root level="INFO">
15+
<AppenderRef ref="STDOUT"/>
16+
</Root>
17+
</Loggers>
3218
</Configuration>

0 commit comments

Comments
 (0)