Wizard: Do not add bintray repoitory for eap versions

This commit is contained in:
anastasiia.spaseeva
2020-12-07 11:50:31 +03:00
parent 2d8a8d252b
commit 71459db9dd
77 changed files with 35 additions and 382 deletions
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -21,18 +21,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<modules>
<module>a</module>
<module>b</module>
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -22,18 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -22,19 +22,8 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
@@ -9,7 +9,6 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -22,16 +22,12 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</pluginRepository>
</pluginRepositories>
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -10,7 +10,6 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -22,16 +22,12 @@
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>bintray.kotlin.kotlin-eap</id>
<url>KOTLIN_REPO</url>
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</pluginRepository>
</pluginRepositories>
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -8,7 +8,6 @@ version = '1.0-SNAPSHOT'
repositories {
jcenter()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -8,7 +8,6 @@ version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -11,7 +11,6 @@ version = '1.0-SNAPSHOT'
repositories {
jcenter()
mavenCentral()
maven { url 'KOTLIN_REPO' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-js-wrappers' }
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
maven { url 'https://dl.bintray.com/kotlin/ktor' }
@@ -11,7 +11,6 @@ version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers") }
maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") }
maven { url = uri("https://dl.bintray.com/kotlin/ktor") }
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,6 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,6 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -9,7 +9,6 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,6 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal()
jcenter()
google()
maven { url 'KOTLIN_REPO' }
mavenCentral()
}
dependencies {
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION')
@@ -19,6 +19,5 @@ allprojects {
google()
jcenter()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal()
jcenter()
google()
maven { url = uri("KOTLIN_REPO") }
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION")
@@ -19,6 +19,5 @@ allprojects {
google()
jcenter()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -4,7 +4,6 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -4,7 +4,6 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -11,7 +11,6 @@ repositories {
google()
jcenter()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -11,7 +11,6 @@ repositories {
google()
jcenter()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -4,7 +4,6 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
resolutionStrategy {
eachPlugin {
@@ -4,7 +4,6 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
resolutionStrategy {
eachPlugin {
@@ -9,7 +9,6 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,6 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -53,9 +53,7 @@ abstract class AbstractBuildFileGenerationTest : UsefulTestCase() {
KOTLIN_VERSION_PLACEHOLDER
).replaceAllTo(
listOf(
Repositories.KOTLIN_EAP_BINTRAY.url,
Repositories.KOTLIN_DEV_BINTRAY.url,
KotlinVersionProviderTestWizardService.KOTLIN_EAP_BINTRAY_WITH_CACHE_REDIRECTOR.url,
KotlinVersionProviderTestWizardService.KOTLIN_DEV_BINTRAY_WITH_CACHE_REDIRECTOR.url,
),
KOTLIN_REPO_PLACEHOLDER
@@ -36,15 +36,14 @@ class KotlinVersionProviderTestWizardService() : KotlinVersionProviderService(),
private fun getKotlinVersionRepositoryWithCacheRedirector(versionKind: KotlinVersionKind): Repository = when (versionKind) {
KotlinVersionKind.STABLE -> DefaultRepository.MAVEN_CENTRAL
KotlinVersionKind.EAP -> KOTLIN_EAP_BINTRAY_WITH_CACHE_REDIRECTOR
KotlinVersionKind.EAP -> DefaultRepository.MAVEN_CENTRAL
KotlinVersionKind.DEV -> KOTLIN_DEV_BINTRAY_WITH_CACHE_REDIRECTOR
KotlinVersionKind.M -> KOTLIN_EAP_BINTRAY_WITH_CACHE_REDIRECTOR
KotlinVersionKind.M -> DefaultRepository.MAVEN_CENTRAL
}
companion object {
private const val CACHE_REDIRECTOR_BINTRAY_URL = "https://cache-redirector.jetbrains.com/dl.bintray.com"
val KOTLIN_EAP_BINTRAY_WITH_CACHE_REDIRECTOR = BintrayRepository("kotlin/kotlin-eap", CACHE_REDIRECTOR_BINTRAY_URL)
val KOTLIN_DEV_BINTRAY_WITH_CACHE_REDIRECTOR = BintrayRepository("kotlin/kotlin-dev", CACHE_REDIRECTOR_BINTRAY_URL)