Skip to content

Commit b9d7921

Browse files
committed
Update scripts and versions in httpclient tests
1 parent 0667301 commit b9d7921

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

agent/test/http_client/httpclient/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ dependencies {
3232
}
3333

3434
application {
35-
// mainClass = 'http_client.HttpClientTest'
36-
mainClassName = project.hasProperty("mainClass") ? project.getProperty("mainClass") : "NULL"
35+
if (properties.containsKey("mainClass")) {
36+
mainClass = project.hasProperty("mainClass") ? project.getProperty("mainClass") : "NULL"
37+
} else {
38+
mainClassName = project.hasProperty("mainClass") ? project.getProperty("mainClass") : "NULL"
39+
}
3740
applicationDefaultJvmArgs = [
3841
System.env.JAVA_OUTPUT_OPTIONS,
3942
"-javaagent:${appmapJar}",
4043
"-Djava.util.logging.config.file=${System.env.JUL_CONFIG}",
4144
//"-Dappmap.debug=true",
4245
//"-Dappmap.debug.file=../../build/log/httpclient-appmap.log"
4346
]
44-
4547
}

agent/test/http_client/setup_suite.bash

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ setup_suite() {
88
export FIXTURE_DIR="build/fixtures/spring-petclinic"
99
_shared_setup
1010
start_petclinic >&3
11-
12-
if is_java 17; then
13-
SPRING_BOOT_VERSION="3.2.2"
14-
else
15-
SPRING_BOOT_VERSION="2.7.18"
16-
fi
17-
export SPRING_BOOT_VERSION
1811
}
1912

2013
teardown_suite() {

agent/test/http_client/springboot/build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1+
buildscript {
2+
ext {
3+
SPRING_BOOT_VERSION = JavaVersion.current() >= JavaVersion.VERSION_17 ? '3.4.1' : '2.7.18'
4+
}
5+
}
16

27
plugins {
38
id 'java'
49
id 'org.springframework.boot' version "${SPRING_BOOT_VERSION}"
5-
id 'io.spring.dependency-management' version '1.1.4'
6-
10+
id 'io.spring.dependency-management' version '1.1.7'
711
}
812

913
repositories {
1014
mavenCentral()
1115
}
1216

17+
java {
18+
if (SPRING_BOOT_VERSION.startsWith("2.")) {
19+
sourceCompatibility = JavaVersion.VERSION_1_8
20+
targetCompatibility = JavaVersion.VERSION_1_8
21+
} else {
22+
sourceCompatibility = JavaVersion.VERSION_17
23+
targetCompatibility = JavaVersion.VERSION_17
24+
}
25+
}
26+
1327
sourceSets {
1428
main {
1529
java {

0 commit comments

Comments
 (0)