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
29
29
import org.gradle.api.plugins.JavaPluginConvention
30
30
import org.gradle.api.tasks.SourceSet
31
31
import org.gradle.internal.os.OperatingSystem
32
- import org.gradle.kotlin.dsl.getPlugin
32
+ import org.gradle.kotlin.dsl.getByType
33
33
import org.gradle.process.JavaForkOptions
34
34
import org.jdom2.Document
35
35
import org.jdom2.JDOMException
@@ -60,10 +60,8 @@ import java.util.function.Predicate
60
60
61
61
val MAJOR_VERSION_PATTERN = " (RIDER-|GO-)?\\ d{4}\\ .\\ d-(EAP\\ d*-)?SNAPSHOT" .toPattern()
62
62
63
- @Suppress(" DEPRECATION" )
64
63
fun mainSourceSet (project : Project ): SourceSet = project
65
- .convention.getPlugin<JavaPluginConvention >()
66
- // .extensions.getByType<JavaPluginConvention>() // available since Gradle 7.1
64
+ .extensions.getByType<JavaPluginConvention >()
67
65
.sourceSets.getByName(SourceSet .MAIN_SOURCE_SET_NAME )
68
66
69
67
fun sourcePluginXmlFiles (project : Project ) = mainSourceSet(project).resources.srcDirs.mapNotNull {
You can’t perform that action at this time.
0 commit comments