Configuration: Add default gradle repository to settings.gradle

#KT-24614 Fixed
This commit is contained in:
Alexey Sedunov
2018-06-14 19:16:58 +03:00
parent 70287ce974
commit a2435ff3b0
6 changed files with 13 additions and 0 deletions
@@ -80,6 +80,7 @@ abstract class GradleKotlinFrameworkSupportProvider(
with(it) {
addPluginRepository(additionalRepository)
addMavenCentralPluginRepository()
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
}
}
buildScriptData.addRepositoriesDefinition("mavenCentral()")
@@ -81,6 +81,7 @@ abstract class GradleKotlinFrameworkSupportProvider(
with(KotlinWithGradleConfigurator.getManipulator(it)) {
addPluginRepository(additionalRepository)
addMavenCentralPluginRepository()
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
}
}
buildScriptData.addRepositoriesDefinition("mavenCentral()")
@@ -75,6 +75,7 @@ class GroovyBuildScriptManipulator(
with(KotlinWithGradleConfigurator.getManipulator(it)) {
addPluginRepository(repository)
addMavenCentralPluginRepository()
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
}
}
}
@@ -82,6 +82,7 @@ class KotlinBuildScriptManipulator(
with(KotlinWithGradleConfigurator.getManipulator(it)) {
addPluginRepository(repository)
addMavenCentralPluginRepository()
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
}
}
}
@@ -66,6 +66,7 @@ abstract class KotlinDslGradleKotlinFrameworkSupportProvider(
with(it) {
addPluginRepository(additionalRepository)
addMavenCentralPluginRepository()
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
}
}
buildScriptData.addRepositoriesDefinition("mavenCentral()")
@@ -60,6 +60,14 @@ val EAP_REPOSITORY = RepositoryDescription(
"https://bintray.com/kotlin/kotlin-eap/kotlin/",
isSnapshot = false)
val DEFAULT_GRADLE_PLUGIN_REPOSITORY = RepositoryDescription(
"default.gradle.plugins",
"Default Gradle Plugin Repository",
"https://plugins.gradle.org/m2/",
null,
isSnapshot = false
)
fun devRepository(version: String) = RepositoryDescription(
"teamcity.kotlin.dev",
"Teamcity Repository of Kotlin Development Builds",