Skip to content

Commit 74fc9ee

Browse files
committed
Simplify and document setting of the intialize build key
1 parent 1e9ce89 commit 74fc9ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ sourceGenerators in Test <+= sourceManaged in Test map { dir =>
5050
}
5151

5252
initialize := {
53-
val _ = initialize.value
53+
// Run previously configured inialization...
54+
initialize.value
55+
// ... and then check the Java version.
5456
val specVersion = sys.props("java.specification.version")
5557
if (Set("1.5", "1.6", "1.7") contains specVersion)
5658
sys.error("Java 8 or higher is required for this project.")

0 commit comments

Comments
 (0)