File tree Expand file tree Collapse file tree 3 files changed +21
-12
lines changed
Expand file tree Collapse file tree 3 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,16 @@ dependencies {
3232}
3333
3434application {
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}
Original file line number Diff line number Diff 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
2013teardown_suite () {
Original file line number Diff line number Diff line change 1+ buildscript {
2+ ext {
3+ SPRING_BOOT_VERSION = JavaVersion . current() >= JavaVersion . VERSION_17 ? ' 3.4.1' : ' 2.7.18'
4+ }
5+ }
16
27plugins {
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
913repositories {
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+
1327sourceSets {
1428 main {
1529 java {
You can’t perform that action at this time.
0 commit comments