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()
|
var kotlinVersion = KotlinRuntimeLibraryUtil.bundledRuntimeVersion()
|
||||||
if (kotlinVersion == "@snapshot@") {
|
if (kotlinVersion == "@snapshot@") {
|
||||||
kotlinVersion = "0.1-SNAPSHOT"
|
kotlinVersion = "0.1-SNAPSHOT"
|
||||||
buildScriptData.addBuildscriptRepositoriesDefinition("mavenCentral()")
|
|
||||||
|
|
||||||
val snapshotRepository = KotlinWithGradleConfigurator.SNAPSHOT_REPOSITORY.replace('\n', ' ')
|
val snapshotRepository = KotlinWithGradleConfigurator.SNAPSHOT_REPOSITORY.replace('\n', ' ')
|
||||||
buildScriptData.addBuildscriptRepositoriesDefinition(snapshotRepository)
|
buildScriptData.addBuildscriptRepositoriesDefinition(snapshotRepository)
|
||||||
@@ -55,6 +54,8 @@ class GradleKotlinJavaFrameworkSupportProvider() : GradleFrameworkSupportProvide
|
|||||||
buildScriptData
|
buildScriptData
|
||||||
.addPluginDefinition(KotlinGradleModuleConfigurator.APPLY_KOTLIN)
|
.addPluginDefinition(KotlinGradleModuleConfigurator.APPLY_KOTLIN)
|
||||||
|
|
||||||
|
.addBuildscriptRepositoriesDefinition("mavenCentral()")
|
||||||
|
|
||||||
// TODO: once IDEA-148110 is fixed, define kotlin_version property in buildscript
|
// TODO: once IDEA-148110 is fixed, define kotlin_version property in buildscript
|
||||||
.addDependencyNotation(KotlinWithGradleConfigurator.LIBRARY.replace("\$kotlin_version", kotlinVersion))
|
.addDependencyNotation(KotlinWithGradleConfigurator.LIBRARY.replace("\$kotlin_version", kotlinVersion))
|
||||||
.addBuildscriptDependencyNotation(KotlinWithGradleConfigurator.CLASSPATH.replace("\$kotlin_version", kotlinVersion))
|
.addBuildscriptDependencyNotation(KotlinWithGradleConfigurator.CLASSPATH.replace("\$kotlin_version", kotlinVersion))
|
||||||
|
|||||||
Reference in New Issue
Block a user