build: detect adoptopenjdk java homes (#26337)
The Ubuntu PPA for adoptopenjdk does not strictly follow the Ubuntu Java naming correctly which can fail the akka build if no other JDK is installed. rpardini/adoptopenjdk-deb-installer
This commit is contained in:
parent
b3ec17871a
commit
3f929427ef
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ object CrossJava {
|
|||
}
|
||||
|
||||
object JavaDiscoverConfig {
|
||||
private val JavaHomeDir = """(java-|jdk-?)(1\.)?([0-9]+).*""".r
|
||||
private val JavaHomeDir = """(java-|jdk-?|adoptopenjdk-)(1\.)?([0-9]+).*""".r
|
||||
|
||||
class LinuxDiscoverConfig(base: File) extends JavaDiscoverConf {
|
||||
def javaHomes: Vector[(String, File)] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue