Skip to content

Commit 637863c

Browse files
committed
Revert "Update PATH_TO_TEST_JAVA_RUNTIME in build.gradle files to use environment variable directly for consistency across modules"
This reverts commit bb1fbb1.
1 parent bb1fbb1 commit 637863c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

azuremanaged/client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def azureIdentityVersion = '1.11.1'
2222
def durabletaskClientVersion = '1.5.0'
2323
// When build on local, you need to set this value to your local jdk11 directory.
2424
// Java11 is used to compile and run all the tests.
25-
def PATH_TO_TEST_JAVA_RUNTIME = "$System.env.JDK_11"
25+
def PATH_TO_TEST_JAVA_RUNTIME = System.env.JDK_11 ?: System.getProperty("java.home")
2626

2727
repositories {
2828
mavenCentral()

azuremanaged/shared/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def azureCoreVersion = '1.45.0'
1313
def azureIdentityVersion = '1.11.1'
1414
// When build on local, you need to set this value to your local jdk11 directory.
1515
// Java11 is used to compile and run all the tests.
16-
def PATH_TO_TEST_JAVA_RUNTIME = "$System.env.JDK_11"
16+
def PATH_TO_TEST_JAVA_RUNTIME = System.env.JDK_11 ?: System.getProperty("java.home")
1717

1818
repositories {
1919
mavenCentral()

azuremanaged/worker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def azureIdentityVersion = '1.11.1'
2222
def durabletaskClientVersion = '1.5.0'
2323
// When build on local, you need to set this value to your local jdk11 directory.
2424
// Java11 is used to compile and run all the tests.
25-
def PATH_TO_TEST_JAVA_RUNTIME = "$System.env.JDK_11"
25+
def PATH_TO_TEST_JAVA_RUNTIME = System.env.JDK_11 ?: System.getProperty("java.home")
2626

2727
repositories {
2828
mavenCentral()

client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def jacksonVersion = '2.15.3'
1717
// When build on local, you need to set this value to your local jdk11 directory.
1818
// Java11 is used to compile and run all the tests.
1919
// Example for Windows: C:/Program Files/Java/openjdk-11.0.12_7/
20-
def PATH_TO_TEST_JAVA_RUNTIME = "$System.env.JDK_11"
20+
def PATH_TO_TEST_JAVA_RUNTIME = System.env.JDK_11 ?: System.getProperty("java.home")
2121

2222
dependencies {
2323

0 commit comments

Comments
 (0)