Skip to content

Commit 8086b25

Browse files
committed
[build] Updating scripts for automated release
1 parent 4a6c384 commit 8086b25

File tree

2 files changed

+26
-35
lines changed

2 files changed

+26
-35
lines changed

MODULE.bazel

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,6 @@ use_repo(
151151
)
152152

153153
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
154-
155-
JUNIT_VERSION = "1.10.2"
156-
157-
JUPITER_VERSION = "5.10.2"
158-
159-
NETTY_VERSION = "4.1.109.Final"
160-
161-
OPENTELEMETRY_VERSION = "1.37.0"
162-
163154
maven.install(
164155
name = "maven",
165156
artifacts = [
@@ -178,22 +169,22 @@ maven.install(
178169
"dev.failsafe:failsafe:3.3.2",
179170
"io.grpc:grpc-context:1.63.0",
180171
"io.lettuce:lettuce-core:6.3.2.RELEASE",
181-
"io.netty:netty-buffer:%s" % NETTY_VERSION,
182-
"io.netty:netty-codec-http:%s" % NETTY_VERSION,
183-
"io.netty:netty-codec-http2:%s" % NETTY_VERSION,
184-
"io.netty:netty-common:%s" % NETTY_VERSION,
185-
"io.netty:netty-handler:%s" % NETTY_VERSION,
186-
"io.netty:netty-handler-proxy:%s" % NETTY_VERSION,
187-
"io.netty:netty-transport:%s" % NETTY_VERSION,
188-
"io.opentelemetry:opentelemetry-api:%s" % OPENTELEMETRY_VERSION,
189-
"io.opentelemetry:opentelemetry-context:%s" % OPENTELEMETRY_VERSION,
190-
"io.opentelemetry:opentelemetry-exporter-logging:%s" % OPENTELEMETRY_VERSION,
191-
"io.opentelemetry:opentelemetry-sdk:%s" % OPENTELEMETRY_VERSION,
192-
"io.opentelemetry:opentelemetry-sdk-common:%s" % OPENTELEMETRY_VERSION,
193-
"io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:%s" % OPENTELEMETRY_VERSION,
194-
"io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:%s" % OPENTELEMETRY_VERSION,
195-
"io.opentelemetry:opentelemetry-sdk-testing:%s" % OPENTELEMETRY_VERSION,
196-
"io.opentelemetry:opentelemetry-sdk-trace:%s" % OPENTELEMETRY_VERSION,
172+
"io.netty:netty-buffer:4.1.109.Final",
173+
"io.netty:netty-codec-http:4.1.109.Final",
174+
"io.netty:netty-codec-http2:4.1.109.Final",
175+
"io.netty:netty-common:4.1.109.Final",
176+
"io.netty:netty-handler:4.1.109.Final",
177+
"io.netty:netty-handler-proxy:4.1.109.Final",
178+
"io.netty:netty-transport:4.1.109.Final",
179+
"io.opentelemetry:opentelemetry-api:1.37.0",
180+
"io.opentelemetry:opentelemetry-context:1.37.0",
181+
"io.opentelemetry:opentelemetry-exporter-logging:1.37.0",
182+
"io.opentelemetry:opentelemetry-sdk:1.37.0",
183+
"io.opentelemetry:opentelemetry-sdk-common:1.37.0",
184+
"io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.37.0",
185+
"io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:1.37.0",
186+
"io.opentelemetry:opentelemetry-sdk-testing:1.37.0",
187+
"io.opentelemetry:opentelemetry-sdk-trace:1.37.0",
197188
"io.opentelemetry.semconv:opentelemetry-semconv:1.25.0-alpha",
198189
"io.ous:jtoml:2.0.0",
199190
"it.ozimov:embedded-redis:0.7.3",
@@ -205,13 +196,13 @@ maven.install(
205196
"org.bouncycastle:bcpkix-jdk18on:1.78.1",
206197
"org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5",
207198
"org.hsqldb:hsqldb:2.7.2",
208-
"org.junit.jupiter:junit-jupiter-api:%s" % JUPITER_VERSION,
209-
"org.junit.jupiter:junit-jupiter-engine:%s" % JUPITER_VERSION,
210-
"org.junit.jupiter:junit-jupiter-params:%s" % JUPITER_VERSION,
211-
"org.junit.platform:junit-platform-launcher:%s" % JUNIT_VERSION,
212-
"org.junit.platform:junit-platform-reporting:%s" % JUNIT_VERSION,
213-
"org.junit.platform:junit-platform-commons:%s" % JUNIT_VERSION,
214-
"org.junit.platform:junit-platform-engine:%s" % JUNIT_VERSION,
199+
"org.junit.jupiter:junit-jupiter-api:5.10.2",
200+
"org.junit.jupiter:junit-jupiter-engine:5.10.2",
201+
"org.junit.jupiter:junit-jupiter-params:5.10.2",
202+
"org.junit.platform:junit-platform-launcher:1.10.2",
203+
"org.junit.platform:junit-platform-reporting:1.10.2",
204+
"org.junit.platform:junit-platform-commons:1.10.2",
205+
"org.junit.platform:junit-platform-engine:1.10.2",
215206
"org.mockito:mockito-core:5.11.0",
216207
"org.mockito:mockito-inline:5.2.0",
217208
"org.redisson:redisson:3.29.0",

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,9 @@ namespace :java do
972972
task :update do
973973
# Make sure things are in a good state to start with
974974
args = ['--action_env=RULES_JVM_EXTERNAL_REPIN=1']
975-
Bazel.execute('run', args, '@maven//:pin')
975+
Bazel.execute('run', args, '@unpinned_maven//:pin')
976976

977-
file_path = 'java/maven_deps.bzl'
977+
file_path = 'MODULE.bazel'
978978
content = File.read(file_path)
979979
# For some reason ./go wrapper is not outputting from Open3, so cannot use Bazel class directly
980980
output = `bazel run @maven//:outdated`
@@ -996,7 +996,7 @@ namespace :java do
996996
File.write(file_path, content)
997997

998998
args = ['--action_env=RULES_JVM_EXTERNAL_REPIN=1']
999-
Bazel.execute('run', args, '@maven//:pin')
999+
Bazel.execute('run', args, '@unpinned_maven//:pin')
10001000
end
10011001

10021002
desc 'Update Java changelog'

0 commit comments

Comments
 (0)