Skip to content

Commit 22f8c3f

Browse files
authored
Merge branch 'main' into upgradebot/bump-dv-maven-extension-1.23.2
2 parents 800e9f3 + cce9bbf commit 22f8c3f

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ For Maven builds, the version of the Develocity Maven extension automatically ap
175175

176176
| TC Build Scan plugin version | Injected Develocity Maven extension version | Injected Common CCUD Maven extension version |
177177
|------------------------------|---------------------------------------------|----------------------------------------------|
178-
| Next | 1.23.2 | 2.0 |
178+
| Next | 1.23.2 | 2.0.1 |
179179
| 0.35 | 1.18.1 | 1.12.2 |
180180
| 0.34 | 1.18 | 1.12.2 |
181181
| 0.33 | 1.16.1 | 1.11.1 |

agent/service-message-maven-extension/.mvn/wrapper/maven-wrapper.properties

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
wrapperVersion=3.3.1
18-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

agent/service-message-maven-extension/mvnw

+13-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# ----------------------------------------------------------------------------
2020

2121
# ----------------------------------------------------------------------------
22-
# Apache Maven Wrapper startup batch script, version 3.3.1
22+
# Apache Maven Wrapper startup batch script, version 3.3.2
2323
#
2424
# Optional ENV vars
2525
# -----------------
@@ -97,11 +97,19 @@ die() {
9797
exit 1
9898
}
9999

100+
trim() {
101+
# MWRAPPER-139:
102+
# Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
103+
# Needed for removing poorly interpreted newline sequences when running in more
104+
# exotic environments such as mingw bash on Windows.
105+
printf "%s" "${1}" | tr -d '[:space:]'
106+
}
107+
100108
# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
101109
while IFS="=" read -r key value; do
102110
case "${key-}" in
103-
distributionUrl) distributionUrl="${value-}" ;;
104-
distributionSha256Sum) distributionSha256Sum="${value-}" ;;
111+
distributionUrl) distributionUrl=$(trim "${value-}") ;;
112+
distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
105113
esac
106114
done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties"
107115
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties"
@@ -131,7 +139,8 @@ esac
131139
distributionUrlName="${distributionUrl##*/}"
132140
distributionUrlNameMain="${distributionUrlName%.*}"
133141
distributionUrlNameMain="${distributionUrlNameMain%-bin}"
134-
MAVEN_HOME="$HOME/.m2/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
142+
MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
143+
MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
135144

136145
exec_maven() {
137146
unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :

agent/service-message-maven-extension/mvnw.cmd

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@REM ----------------------------------------------------------------------------
2020

2121
@REM ----------------------------------------------------------------------------
22-
@REM Apache Maven Wrapper startup batch script, version 3.3.1
22+
@REM Apache Maven Wrapper startup batch script, version 3.3.2
2323
@REM
2424
@REM Optional ENV vars
2525
@REM MVNW_REPOURL - repo url base for downloading maven distribution
@@ -79,6 +79,9 @@ if ($env:MVNW_REPOURL) {
7979
$distributionUrlName = $distributionUrl -replace '^.*/',''
8080
$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
8181
$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain"
82+
if ($env:MAVEN_USER_HOME) {
83+
$MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain"
84+
}
8285
$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
8386
$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
8487

agent/src/main/java/nu/studer/teamcity/buildscan/agent/BuildScanServiceMessageInjector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class BuildScanServiceMessageInjector extends AgentLifeCycleAdapter {
4343
private static final String MAVEN_CMD_PARAMS = "runnerArgs";
4444
private static final String BUILD_SCAN_EXT_MAVEN = "service-message-maven-extension-1.0.jar";
4545
private static final String DEVELOCITY_EXT_MAVEN = "develocity-maven-extension-1.23.2.jar";
46-
private static final String COMMON_CUSTOM_USER_DATA_EXT_MAVEN = "common-custom-user-data-maven-extension-2.0.jar";
46+
private static final String COMMON_CUSTOM_USER_DATA_EXT_MAVEN = "common-custom-user-data-maven-extension-2.0.1.jar";
4747

4848
// TeamCity Command-line runner
4949

agent/src/test/groovy/nu/studer/teamcity/buildscan/agent/maven/BaseExtensionApplicationTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ abstract class BaseExtensionApplicationTest extends Specification {
3939
static final String DEVELOCITY_URL_STR = System.getenv('DEVELOCITY_TEST_INSTANCE')
4040
static final URI DEVELOCITY_URL = DEVELOCITY_URL_STR ? new URI(DEVELOCITY_URL_STR) : null
4141
static final String DEVELOCITY_EXTENSION_VERSION = '1.23.2'
42-
static final String CCUD_EXTENSION_VERSION = '2.0'
42+
static final String CCUD_EXTENSION_VERSION = '2.0.1'
4343

4444
@TempDir
4545
File checkoutDir

src/test/groovy/nu/studer/teamcity/buildscan/connection/DevelocityConnectionProviderTest.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DevelocityConnectionProviderTest extends Specification {
5252
DEVELOCITY_PLUGIN_VERSION | '3.17.4' | 'Develocity Gradle Plugin Version'
5353
CCUD_PLUGIN_VERSION | '2.2.1' | 'Common Custom User Data Gradle Plugin Version'
5454
DEVELOCITY_EXTENSION_VERSION | '1.23.2' | 'Develocity Maven Extension Version'
55-
CCUD_EXTENSION_VERSION | '2.0' | 'Common Custom User Data Maven Extension Version'
55+
CCUD_EXTENSION_VERSION | '2.0.1' | 'Common Custom User Data Maven Extension Version'
5656
CUSTOM_DEVELOCITY_EXTENSION_COORDINATES | 'com.company:my-ge-extension' | 'Develocity Maven Extension Custom Coordinates'
5757
CUSTOM_CCUD_EXTENSION_COORDINATES | 'com.company:my-ccud-extension' | 'Common Custom User Data Maven Extension Custom Coordinates'
5858
INSTRUMENT_COMMAND_LINE_BUILD_STEP | 'true' | 'Instrument Command Line Build Steps'

0 commit comments

Comments
 (0)