Configuration: Add default gradle repository to settings.gradle
#KT-24614 Fixed
This commit is contained in:
+1
@@ -80,6 +80,7 @@ abstract class GradleKotlinFrameworkSupportProvider(
|
||||
with(it) {
|
||||
addPluginRepository(additionalRepository)
|
||||
addMavenCentralPluginRepository()
|
||||
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
|
||||
}
|
||||
}
|
||||
buildScriptData.addRepositoriesDefinition("mavenCentral()")
|
||||
|
||||
+1
@@ -81,6 +81,7 @@ abstract class GradleKotlinFrameworkSupportProvider(
|
||||
with(KotlinWithGradleConfigurator.getManipulator(it)) {
|
||||
addPluginRepository(additionalRepository)
|
||||
addMavenCentralPluginRepository()
|
||||
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
|
||||
}
|
||||
}
|
||||
buildScriptData.addRepositoriesDefinition("mavenCentral()")
|
||||
|
||||
+1
@@ -75,6 +75,7 @@ class GroovyBuildScriptManipulator(
|
||||
with(KotlinWithGradleConfigurator.getManipulator(it)) {
|
||||
addPluginRepository(repository)
|
||||
addMavenCentralPluginRepository()
|
||||
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -82,6 +82,7 @@ class KotlinBuildScriptManipulator(
|
||||
with(KotlinWithGradleConfigurator.getManipulator(it)) {
|
||||
addPluginRepository(repository)
|
||||
addMavenCentralPluginRepository()
|
||||
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -66,6 +66,7 @@ abstract class KotlinDslGradleKotlinFrameworkSupportProvider(
|
||||
with(it) {
|
||||
addPluginRepository(additionalRepository)
|
||||
addMavenCentralPluginRepository()
|
||||
addPluginRepository(DEFAULT_GRADLE_PLUGIN_REPOSITORY)
|
||||
}
|
||||
}
|
||||
buildScriptData.addRepositoriesDefinition("mavenCentral()")
|
||||
|
||||
+8
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user