Skip to content

Commit

Permalink
8331113: createJMHBundle.sh support configurable maven repo mirror
Browse files Browse the repository at this point in the history
Backport-of: ce9eac38191fa700afa3ac06b2b202576a11dd71
  • Loading branch information
SendaoYan authored and shipilev committed Apr 29, 2024
1 parent aea8e4a commit e9a088d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make/devkit/createJMHBundle.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e
#
# Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -29,6 +29,7 @@
JMH_VERSION=1.37
COMMONS_MATH3_VERSION=3.6.1
JOPT_SIMPLE_VERSION=5.0.4
MAVEN_MIRROR=${MAVEN_MIRROR:-https://repo.maven.apache.org/maven2}

BUNDLE_NAME=jmh-$JMH_VERSION.tar.gz

Expand All @@ -41,7 +42,7 @@ cd $JAR_DIR
rm -f *

fetchJar() {
url="https://repo.maven.apache.org/maven2/$1/$2/$3/$2-$3.jar"
url="${MAVEN_MIRROR}/$1/$2/$3/$2-$3.jar"
if command -v curl > /dev/null; then
curl -O --fail $url
elif command -v wget > /dev/null; then
Expand Down

1 comment on commit e9a088d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.