See gh-42809
This commit is contained in:
jeonghyeon00
2024-10-21 23:43:25 +09:00
committed by Stéphane Nicoll
parent 2bbdc53222
commit cc25e6145e

View File

@@ -61,9 +61,9 @@ class KotlinConventions {
kotlinOptions.setLanguageVersion("1.7");
kotlinOptions.setJvmTarget("17");
kotlinOptions.setAllWarningsAsErrors(true);
List<String> freeCompilerArgs = new ArrayList<>(compile.getKotlinOptions().getFreeCompilerArgs());
List<String> freeCompilerArgs = new ArrayList<>(kotlinOptions.getFreeCompilerArgs());
freeCompilerArgs.add("-Xsuppress-version-warnings");
compile.getKotlinOptions().setFreeCompilerArgs(freeCompilerArgs);
kotlinOptions.setFreeCompilerArgs(freeCompilerArgs);
}
private void configureDokkatoo(Project project) {