File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/kotlin/org/jetbrains/intellij Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import org.gradle.api.logging.Logging
2929import org.gradle.api.plugins.JavaPluginConvention
3030import org.gradle.api.tasks.SourceSet
3131import org.gradle.internal.os.OperatingSystem
32- import org.gradle.kotlin.dsl.getPlugin
32+ import org.gradle.kotlin.dsl.getByType
3333import org.gradle.process.JavaForkOptions
3434import org.jdom2.Document
3535import org.jdom2.JDOMException
@@ -60,10 +60,8 @@ import java.util.function.Predicate
6060
6161val MAJOR_VERSION_PATTERN = " (RIDER-|GO-)?\\ d{4}\\ .\\ d-(EAP\\ d*-)?SNAPSHOT" .toPattern()
6262
63- @Suppress(" DEPRECATION" )
6463fun mainSourceSet (project : Project ): SourceSet = project
65- .convention.getPlugin<JavaPluginConvention >()
66- // .extensions.getByType<JavaPluginConvention>() // available since Gradle 7.1
64+ .extensions.getByType<JavaPluginConvention >()
6765 .sourceSets.getByName(SourceSet .MAIN_SOURCE_SET_NAME )
6866
6967fun sourcePluginXmlFiles (project : Project ) = mainSourceSet(project).resources.srcDirs.mapNotNull {
You can’t perform that action at this time.
0 commit comments