scalatest / scalatest-maven-plugin

ScalaTest Maven Plugin
Apache License 2.0
34 stars 61 forks source link

Make the resolution fo java location consistent with maven ecosystem #80

Closed cerveada closed 3 years ago

cerveada commented 3 years ago

There are two ways how to find Java binary currently in the library. java.home and JAVA_HOME.

Currently, the location is taken from JAVA_HOME and only if it's not there (and that will rarely happen) it's taken from java.home.

I suggest that java.home should be the default

Some reasons why I think it should be the case:

Basically main problem that can happen is that I run the build under Java 8, but suddenly scalatest switches to Java 11 because it's used by my system.

If there is a need to run scalatest under different java then the rest of the bild there should be special flag for that. (But why anyone would like to do that?)

cstroe commented 3 years ago

@cerveada I believe this issue can be closed.

cerveada commented 3 years ago

Yes. Thank you.