Skip to content

Commit 78d00dd

Browse files
committed
1 parent 09a7202 commit 78d00dd

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

gradle.properties

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@
99

1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
12-
org.gradle.jvmargs=-Xmx4096m
12+
13+
# Workaround to make spotless work with java 17 -
14+
# see https://github.com/diffplug/spotless/tree/main/plugin-gradle#google-java-format and
15+
# https://github.com/ie3-institute/PowerSystemUtils/issues/200 for details
16+
org.gradle.jvmargs=-Xmx4096m \
17+
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
18+
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
19+
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
20+
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
21+
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
1322

1423
# When configured, Gradle will run in incubating parallel mode.
1524
# This option should only be used with decoupled projects. More details, visit
1625
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1726
# org.gradle.parallel=true
1827

19-
com.github.maiflai.gradle-scalatest.mode = append
28+
com.github.maiflai.gradle-scalatest.mode = append

gradle/scripts/spotless.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spotless {
1010
//sets a license header, removes unused imports and formats conforming to the google java format
1111
java {
1212
removeUnusedImports() // removes any unused imports
13-
googleJavaFormat()
13+
googleJavaFormat('1.13.0')
1414
licenseHeader ie3LicHead
1515
}
1616

0 commit comments

Comments
 (0)