mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-18 00:21:29 +00:00
Kotlin Facet: Scan classpath backwards when looking for kotlin-gradle-plugin dependency
#KT-15899 Fixed
This commit is contained in:
@@ -183,6 +183,8 @@ fun KotlinFacet.configureFacet(
|
||||
}
|
||||
}
|
||||
compilerInfo.coroutineSupport = coroutineSupport
|
||||
compilerInfo.commonCompilerArguments?.languageVersion = versionInfo.languageLevel!!.versionString
|
||||
compilerInfo.commonCompilerArguments?.apiVersion = versionInfo.apiLevel!!.versionString
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ private val KOTLIN_PLUGIN_PATH_MARKER_FOR_MAVEN_LOCAL_REPO =
|
||||
"${KotlinWithGradleConfigurator.GROUP_ID.replace('.', '/')}/${KotlinWithGradleConfigurator.GRADLE_PLUGIN_ID}/"
|
||||
|
||||
internal fun findKotlinPluginVersion(classpathData: BuildScriptClasspathData): String? {
|
||||
for (classPathEntry in classpathData.classpathEntries) {
|
||||
for (classPathEntry in classpathData.classpathEntries.asReversed()) {
|
||||
for (path in classPathEntry.classesFile) {
|
||||
val uniformedPath = path.replace('\\', '/')
|
||||
// check / for local maven repo, and '.' for gradle
|
||||
|
||||
Reference in New Issue
Block a user