Skip to content

Commit 7dffa06

Browse files
committed
Replace deprecated property for destination directory of KotlinCompile task (#274)
1 parent 26cd58e commit 7dffa06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugin/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Change Log
33

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

78
## 1.8.2.0 (2021-12-19)
89
- JUnit 5.8.2

plugin/android-junit5/src/main/kotlin/de/mannodermaus/gradle/plugins/junit5/internal/providers/KotlinDirectoryProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal class KotlinDirectoryProvider(
3939
val kotlinTask = project.tasks.findByName(variant.kotlinTaskName)
4040
return if (kotlinTask != null) {
4141
// Read folder directly from the Kotlin task
42-
setOf((kotlinTask as KotlinCompile).destinationDir)
42+
setOfNotNull((kotlinTask as KotlinCompile).destinationDirectory.asFile.orNull)
4343
} else {
4444
// If the Kotlin plugin is applied _after_ JUnit 5 in the build file,
4545
// fall back to the expected path… However, make sure to log a warning to users!

0 commit comments

Comments
 (0)