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() gradlePluginPortal()
jcenter() jcenter()
google() google()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION') classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION')
@@ -18,6 +18,6 @@ allprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal() gradlePluginPortal()
jcenter() jcenter()
google() google()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION")
@@ -18,6 +18,6 @@ allprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -4,7 +4,7 @@ pluginManagement {
jcenter() jcenter()
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -4,7 +4,7 @@ pluginManagement {
jcenter() jcenter()
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -4,6 +4,6 @@ version = '1.0-SNAPSHOT'
allprojects { allprojects {
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -4,6 +4,6 @@ version = "1.0-SNAPSHOT"
allprojects { allprojects {
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
@@ -9,7 +9,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -9,7 +9,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
@@ -9,7 +9,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -8,7 +8,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
@@ -10,7 +10,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -8,7 +8,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
jcenter() jcenter()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
@@ -8,7 +8,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
jcenter() jcenter()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -11,10 +11,10 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
jcenter() jcenter()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
maven('https://dl.bintray.com/kotlin/kotlin-js-wrappers') maven { url 'https://dl.bintray.com/kotlin/kotlin-js-wrappers' }
maven('https://dl.bintray.com/kotlin/kotlinx') maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
maven('https://dl.bintray.com/kotlin/ktor') maven { url 'https://dl.bintray.com/kotlin/ktor' }
} }
kotlin { kotlin {
@@ -11,10 +11,10 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
jcenter() jcenter()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
maven("https://dl.bintray.com/kotlin/kotlin-js-wrappers") maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers") }
maven("https://dl.bintray.com/kotlin/kotlinx") maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") }
maven("https://dl.bintray.com/kotlin/ktor") maven { url = uri("https://dl.bintray.com/kotlin/ktor") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -7,7 +7,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -9,7 +9,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal() gradlePluginPortal()
jcenter() jcenter()
google() google()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
dependencies { dependencies {
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION') classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION')
@@ -18,6 +18,6 @@ allprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -3,7 +3,7 @@ buildscript {
gradlePluginPortal() gradlePluginPortal()
jcenter() jcenter()
google() google()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
dependencies { dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:KOTLIN_VERSION")
@@ -18,6 +18,6 @@ allprojects {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -4,7 +4,7 @@ pluginManagement {
jcenter() jcenter()
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -4,7 +4,7 @@ pluginManagement {
jcenter() jcenter()
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -10,7 +10,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -10,7 +10,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -4,7 +4,7 @@ pluginManagement {
jcenter() jcenter()
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -4,7 +4,7 @@ pluginManagement {
jcenter() jcenter()
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -9,7 +9,7 @@ version = '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
kotlin { kotlin {
@@ -7,7 +7,7 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
kotlin { kotlin {
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven('KOTLIN_REPO') maven { url 'KOTLIN_REPO' }
} }
} }
@@ -2,7 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
mavenCentral() mavenCentral()
maven("KOTLIN_REPO") maven { url = uri("KOTLIN_REPO") }
} }
} }
@@ -27,7 +27,16 @@ data class RepositoryIR(override val repository: Repository) : BuildSystemIR, Re
+"()" +"()"
} }
is CustomMavenRepository -> { 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 else -> Unit
} }