Skip to content

Commit

Permalink
set both source and target compatibility for kotlin ajc
Browse files Browse the repository at this point in the history
fixes #559
  • Loading branch information
larsgrefer committed Jun 29, 2022
1 parent e5f9e27 commit 9c6b729
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ else if (compile instanceof KotlinJvmCompile) {
spec.setDestinationDir(kotlinJvmCompile.getDestinationDirectory().get().getAsFile());
spec.setCompileClasspath(new ArrayList<>(kotlinJvmCompile.getLibraries().filter(File::exists).getFiles()));
spec.setTargetCompatibility(kotlinJvmCompile.getKotlinOptions().getJvmTarget());
spec.setSourceCompatibility(kotlinJvmCompile.getKotlinOptions().getJvmTarget());
}

spec.setWorkingDir(projectLayout.getProjectDirectory().getAsFile());
Expand Down

0 comments on commit 9c6b729

Please sign in to comment.