Skip to content

Commit

Permalink
Replace deprecated property for destination directory of KotlinCompil…
Browse files Browse the repository at this point in the history
…e task (#274)
  • Loading branch information
mannodermaus committed Jun 23, 2022
1 parent 26cd58e commit 7dffa06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugin/CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@ Change Log

## Unreleased
- Support Gradle configuration cache (#265)
- Replace usage of deprecated `destinationDir` compiler task property to support Kotlin 1.7.0 and beyond (#274)

## 1.8.2.0 (2021-12-19)
- JUnit 5.8.2
Expand Down
Expand Up @@ -39,7 +39,7 @@ internal class KotlinDirectoryProvider(
val kotlinTask = project.tasks.findByName(variant.kotlinTaskName)
return if (kotlinTask != null) {
// Read folder directly from the Kotlin task
setOf((kotlinTask as KotlinCompile).destinationDir)
setOfNotNull((kotlinTask as KotlinCompile).destinationDirectory.asFile.orNull)
} else {
// If the Kotlin plugin is applied _after_ JUnit 5 in the build file,
// fall back to the expected path… However, make sure to log a warning to users!
Expand Down

0 comments on commit 7dffa06

Please sign in to comment.