always add mavenCentral() as buildscript repository dependency (KT-10342)
#KT-10342 Fixed
This commit is contained in:
+2
-1
@@ -43,7 +43,6 @@ class GradleKotlinJavaFrameworkSupportProvider() : GradleFrameworkSupportProvide
|
||||
var kotlinVersion = KotlinRuntimeLibraryUtil.bundledRuntimeVersion()
|
||||
if (kotlinVersion == "@snapshot@") {
|
||||
kotlinVersion = "0.1-SNAPSHOT"
|
||||
buildScriptData.addBuildscriptRepositoriesDefinition("mavenCentral()")
|
||||
|
||||
val snapshotRepository = KotlinWithGradleConfigurator.SNAPSHOT_REPOSITORY.replace('\n', ' ')
|
||||
buildScriptData.addBuildscriptRepositoriesDefinition(snapshotRepository)
|
||||
@@ -55,6 +54,8 @@ class GradleKotlinJavaFrameworkSupportProvider() : GradleFrameworkSupportProvide
|
||||
buildScriptData
|
||||
.addPluginDefinition(KotlinGradleModuleConfigurator.APPLY_KOTLIN)
|
||||
|
||||
.addBuildscriptRepositoriesDefinition("mavenCentral()")
|
||||
|
||||
// TODO: once IDEA-148110 is fixed, define kotlin_version property in buildscript
|
||||
.addDependencyNotation(KotlinWithGradleConfigurator.LIBRARY.replace("\$kotlin_version", kotlinVersion))
|
||||
.addBuildscriptDependencyNotation(KotlinWithGradleConfigurator.CLASSPATH.replace("\$kotlin_version", kotlinVersion))
|
||||
|
||||
Reference in New Issue
Block a user