Wizard: change custom maven repositories rendering

This commit is contained in:
Ilya Kirillov
2020-10-12 14:34:32 +03:00
parent 31dac65a39
commit ed924a1c99
83 changed files with 102 additions and 93 deletions
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal()
jcenter()
google()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION')
@@ -18,6 +18,6 @@ allprojects {
repositories {
google()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal()
jcenter()
google()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION")
@@ -18,6 +18,6 @@ allprojects {
repositories {
google()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -4,7 +4,7 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -4,7 +4,7 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -4,6 +4,6 @@ version = '1.0-SNAPSHOT'
allprojects {
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -4,6 +4,6 @@ version = "1.0-SNAPSHOT"
allprojects {
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -9,7 +9,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -9,7 +9,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -9,7 +9,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -8,7 +8,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -10,7 +10,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -8,7 +8,7 @@ version = '1.0-SNAPSHOT'
repositories {
jcenter()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
@@ -8,7 +8,7 @@ version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -11,10 +11,10 @@ version = '1.0-SNAPSHOT'
repositories {
jcenter()
mavenCentral()
maven('KOTLIN_REPO')
maven('https://dl.bintray.com/kotlin/kotlin-js-wrappers')
maven('https://dl.bintray.com/kotlin/kotlinx')
maven('https://dl.bintray.com/kotlin/ktor')
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' }
}
kotlin {
@@ -11,10 +11,10 @@ version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
maven("KOTLIN_REPO")
maven("https://dl.bintray.com/kotlin/kotlin-js-wrappers")
maven("https://dl.bintray.com/kotlin/kotlinx")
maven("https://dl.bintray.com/kotlin/ktor")
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") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -9,7 +9,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal()
jcenter()
google()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
dependencies {
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION')
@@ -18,6 +18,6 @@ allprojects {
repositories {
google()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal()
jcenter()
google()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION")
@@ -18,6 +18,6 @@ allprojects {
repositories {
google()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -4,7 +4,7 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -4,7 +4,7 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -10,7 +10,7 @@ version = '1.0-SNAPSHOT'
repositories {
google()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -10,7 +10,7 @@ version = "1.0-SNAPSHOT"
repositories {
google()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -4,7 +4,7 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -4,7 +4,7 @@ pluginManagement {
jcenter()
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -9,7 +9,7 @@ version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven('KOTLIN_REPO')
maven { url 'KOTLIN_REPO' }
}
}
@@ -2,7 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("KOTLIN_REPO")
maven { url = uri("KOTLIN_REPO") }
}
}
@@ -27,7 +27,16 @@ data class RepositoryIR(override val repository: Repository) : BuildSystemIR, Re
+"()"
}
is CustomMavenRepository -> {
call("maven", forceBrackets = true) { +repository.url.quotified }
+"maven { url "
val url = repository.url.quotified
when (dsl) {
GradlePrinter.GradleDsl.KOTLIN -> {
+"= "
call("uri") { +url }
}
GradlePrinter.GradleDsl.GROOVY -> +url
}
+" }"
}
else -> Unit
}