File tree Expand file tree Collapse file tree 9 files changed +23
-8
lines changed
main/kotlin/org/javacs/kt/compiler
test/resources/additionalWorkspace Expand file tree Collapse file tree 9 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.3 -bin.zip
4
4
networkTimeout =10000
5
+ validateDistributionUrl =true
5
6
zipStoreBase =GRADLE_USER_HOME
6
7
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 83
83
# This is normally unused
84
84
# shellcheck disable=SC2034
85
85
APP_BASE_NAME=${0##*/ }
86
- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
86
+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
+ APP_HOME=$( cd " ${APP_HOME:- ./ } " > /dev/null && pwd -P ) || exit
87
88
88
89
# Use the maximum available, or set MAX_FD != -1 to use that value.
89
90
MAX_FD=maximum
@@ -130,10 +131,13 @@ location of your Java installation."
130
131
fi
131
132
else
132
133
JAVACMD=java
133
- which java > /dev/null 2>&1 || die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134
+ if ! command -v java > /dev/null 2>&1
135
+ then
136
+ die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134
137
135
138
Please set the JAVA_HOME variable in your environment to match the
136
139
location of your Java installation."
140
+ fi
137
141
fi
138
142
139
143
# Increase the maximum file descriptors if we can.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ javaPlatform {
6
6
allowDependencies()
7
7
}
8
8
9
- val kotlinVersion = " 1.8 .10"
9
+ val kotlinVersion = " 1.9 .10"
10
10
val exposedVersion = " 0.37.3"
11
11
val lsp4jVersion = " 0.15.0"
12
12
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ private class CompilationEnvironment(
119
119
// configure jvm runtime classpaths
120
120
configureJdkClasspathRoots()
121
121
122
+ // Kotlin 1.8.20 requires us to specify the JDK home, otherwise java.* classes won't resolve
123
+ // See https://github.com/JetBrains/kotlin-compiler-server/pull/626
124
+ val jdkHome = File (System .getProperty(" java.home" ))
125
+ put(JVMConfigurationKeys .JDK_HOME , jdkHome)
126
+
122
127
addJvmClasspathRoots(classPath.map { it.toFile() })
123
128
addJavaSourceRoots(javaSourcePath.map { it.toFile() })
124
129
Original file line number Diff line number Diff line change 1
- kotlinVersion =1.8 .10
1
+ kotlinVersion =1.9 .10
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.3 -bin.zip
4
4
networkTimeout =10000
5
+ validateDistributionUrl =true
5
6
zipStoreBase =GRADLE_USER_HOME
6
7
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 83
83
# This is normally unused
84
84
# shellcheck disable=SC2034
85
85
APP_BASE_NAME=${0##*/ }
86
- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
86
+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
+ APP_HOME=$( cd " ${APP_HOME:- ./ } " > /dev/null && pwd -P ) || exit
87
88
88
89
# Use the maximum available, or set MAX_FD != -1 to use that value.
89
90
MAX_FD=maximum
@@ -130,10 +131,13 @@ location of your Java installation."
130
131
fi
131
132
else
132
133
JAVACMD=java
133
- which java > /dev/null 2>&1 || die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134
+ if ! command -v java > /dev/null 2>&1
135
+ then
136
+ die " ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134
137
135
138
Please set the JAVA_HOME variable in your environment to match the
136
139
location of your Java installation."
140
+ fi
137
141
fi
138
142
139
143
# Increase the maximum file descriptors if we can.
You can’t perform that action at this time.
0 commit comments