Skip to content

Commit bb27336

Browse files
committed
add JAVA_HOME env variable
1 parent ab22083 commit bb27336

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.nx/workflows/agents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ launch-templates:
55
DOCKER_HOST: ""
66
SERVICES_HOST: ""
77
LANG: C.UTF-8
8+
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
89
resource-class: 'docker_linux_amd64/extra_large+'
910
image: 'ubuntu22.04-node20.11-v10'
1011
init-steps:
@@ -19,6 +20,7 @@ launch-templates:
1920
sudo apt update
2021
sudo apt install -y openjdk-17-jdk
2122
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
23+
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
2224
java -version
2325
- name: Setup gradle
2426
script: ./gradlew wrapper && ./gradlew --stop && ./gradlew clean

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "dev.nx.gradle.project-graph" version "0.0.1-alpha.9"
2+
id "dev.nx.gradle.project-graph" version "0.0.1-alpha.10"
33
id "base"
44
id "org.jetbrains.kotlin.jvm" apply false // https://youtrack.jetbrains.com/issue/KT-30276
55
}

0 commit comments

Comments
 (0)