File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ object Java9Modularity {
36
36
val ideaActive = System .getProperty(" idea.active" ) == " true"
37
37
if (disableJPMS || ideaActive) return
38
38
val kotlin = extensions.findByType<KotlinProjectExtension >() ? : return
39
- val jvmTargets = kotlin.targets.filter { it is KotlinJvmTarget || it is KotlinWithJavaTarget <* , * > }
39
+ @Suppress( " DEPRECATION " , " DEPRECATION_ERROR " ) val jvmTargets = kotlin.targets.filter { it is KotlinJvmTarget || it is KotlinWithJavaTarget <* , * > }
40
40
if (jvmTargets.isEmpty()) {
41
41
logger.warn(" No Kotlin JVM targets found, can't configure compilation of module-info!" )
42
42
}
@@ -50,6 +50,7 @@ object Java9Modularity {
50
50
}
51
51
52
52
target.compilations.forEach { compilation ->
53
+ @Suppress(" DEPRECATION" , " DEPRECATION_ERROR" )
53
54
val compileKotlinTask = compilation.compileKotlinTask as KotlinCompile
54
55
val defaultSourceSet = compilation.defaultSourceSet
55
56
You can’t perform that action at this time.
0 commit comments