Wizard: fix Gradle buildscript formatting

#KT-37965 fixed
This commit is contained in:
Ilya Kirillov
2020-09-08 16:03:02 +03:00
parent 0f799d593d
commit 553c525701
61 changed files with 192 additions and 13 deletions
@@ -3,6 +3,7 @@ plugins {
id 'org.jetbrains.kotlin.android'
id 'kotlin-android-extensions'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -15,11 +16,13 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
implementation 'com.google.android.material:material:1.2.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
}
android {
compileSdkVersion 29
defaultConfig {
@@ -3,6 +3,7 @@ plugins {
kotlin("android")
id("kotlin-android-extensions")
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -15,11 +16,13 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
implementation("com.google.android.material:material:1.2.0")
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
}
android {
compileSdkVersion(29)
defaultConfig {
@@ -12,6 +12,7 @@ buildscript {
classpath('com.android.tools.build:gradle:4.0.1')
}
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -12,6 +12,7 @@ buildscript {
classpath("com.android.tools.build:gradle:4.0.1")
}
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,6 +11,7 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
js('nodeJs', LEGACY) {
nodejs {
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,6 +11,7 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
kotlin {
js("nodeJs", LEGACY) {
nodejs {
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,6 +11,7 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
jvm {
compilations.all {
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,6 +11,7 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
kotlin {
jvm {
compilations.all {
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,6 +11,7 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
jvm {
compilations.all {
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,6 +11,7 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
kotlin {
jvm {
compilations.all {
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,14 +11,17 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
implementation project(':b')
implementation project(':c')
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,14 +13,17 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
implementation(project(":b"))
implementation(project(":c"))
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,14 +11,17 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
implementation project(':c')
implementation project(':d')
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,14 +13,17 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
implementation(project(":c"))
implementation(project(":d"))
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,12 +11,15 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,12 +13,15 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,13 +11,16 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
implementation project(':a')
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,13 +13,16 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
implementation(project(":a"))
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,13 +11,16 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
rootProject
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,13 +13,16 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
rootProject
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,13 +11,16 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
implementation project(':b')
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,13 +13,16 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
implementation(project(":b"))
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,12 +11,15 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,12 +13,15 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,12 +11,15 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.6'
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -12,12 +13,15 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
testImplementation(kotlin("test-junit"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.6"
}
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests
plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -12,6 +13,7 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
def hostOs = System.getProperty("os.name")
def isMingwX64 = hostOs.startsWith("Windows")
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,6 +11,7 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
kotlin {
val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,6 +11,7 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
jvm {
compilations.all {
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,6 +11,7 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
kotlin {
jvm {
compilations.all {
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,6 +11,7 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
kotlin {
linuxX64()
sourceSets {
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,6 +11,7 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
kotlin {
linuxX64()
sourceSets {
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.js' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,9 +11,11 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-js'
}
kotlin {
js(LEGACY) {
browser {
@@ -1,6 +1,7 @@
plugins {
kotlin("js") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,9 +11,11 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
testImplementation(kotlin("test-js"))
}
kotlin {
js(LEGACY) {
browser {
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.js' version 'KOTLIN_VERSION'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
@@ -10,9 +11,11 @@ repositories {
url 'https://dl.bintray.com/kotlin/kotlin-dev'
}
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-js'
}
kotlin {
js(LEGACY) {
nodejs {
@@ -1,6 +1,7 @@
plugins {
kotlin("js") version "KOTLIN_VERSION"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
@@ -10,9 +11,11 @@ repositories {
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
dependencies {
testImplementation(kotlin("test-js"))
}
kotlin {
js(LEGACY) {
nodejs {