Wizard: fix Gradle buildscript formatting
#KT-37965 fixed
This commit is contained in:
+3
@@ -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
@@ -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 {
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ buildscript {
|
||||
classpath('com.android.tools.build:gradle:4.0.1')
|
||||
}
|
||||
}
|
||||
|
||||
group = 'testGroupId'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ buildscript {
|
||||
classpath("com.android.tools.build:gradle:4.0.1")
|
||||
}
|
||||
}
|
||||
|
||||
group = "testGroupId"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+4
@@ -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'
|
||||
}
|
||||
+4
@@ -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"
|
||||
}
|
||||
+2
@@ -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")
|
||||
|
||||
+2
@@ -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")
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+3
@@ -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 {
|
||||
|
||||
+3
@@ -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 {
|
||||
|
||||
+3
@@ -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 {
|
||||
|
||||
+3
@@ -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 {
|
||||
|
||||
+4
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
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'
|
||||
}
|
||||
+4
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
plugins {
|
||||
kotlin("jvm") version "KOTLIN_VERSION"
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
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"
|
||||
}
|
||||
+5
@@ -2,6 +2,7 @@ plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' version 'KOTLIN_VERSION'
|
||||
id 'application'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -11,15 +12,19 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnit()
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.jvmTarget = '1.8'
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = 'MainKt'
|
||||
}
|
||||
+5
@@ -4,6 +4,7 @@ plugins {
|
||||
kotlin("jvm") version "KOTLIN_VERSION"
|
||||
application
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -13,15 +14,19 @@ 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"
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "MainKt"
|
||||
}
|
||||
+3
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.js' version 'KOTLIN_VERSION'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -11,9 +12,11 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'org.jetbrains.kotlin:kotlin-test-js'
|
||||
}
|
||||
|
||||
kotlin {
|
||||
js(LEGACY) {
|
||||
browser {
|
||||
|
||||
+3
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
kotlin("js") version "KOTLIN_VERSION"
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -11,9 +12,11 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(kotlin("test-js"))
|
||||
}
|
||||
|
||||
kotlin {
|
||||
js(LEGACY) {
|
||||
browser {
|
||||
|
||||
+6
@@ -4,6 +4,7 @@ plugins {
|
||||
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
|
||||
id 'application'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -23,6 +24,7 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-js-wrappers'
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm {
|
||||
compilations.all {
|
||||
@@ -85,17 +87,21 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = 'ServerKt'
|
||||
}
|
||||
|
||||
tasks.getByName('jsBrowserProductionWebpack') {
|
||||
outputFileName = 'output.js'
|
||||
}
|
||||
|
||||
tasks.getByName('jvmJar') {
|
||||
dependsOn(tasks.getByName('jsBrowserProductionWebpack'))
|
||||
def jsBrowserProductionWebpack = tasks.getByName('jsBrowserProductionWebpack')
|
||||
from(new File(jsBrowserProductionWebpack.destinationDirectory, jsBrowserProductionWebpack.outputFileName))
|
||||
}
|
||||
|
||||
tasks.getByName('run') {
|
||||
dependsOn(tasks.getByName('jvmJar'))
|
||||
classpath(tasks.getByName('jvmJar'))
|
||||
|
||||
+6
@@ -4,6 +4,7 @@ plugins {
|
||||
kotlin("multiplatform") version "KOTLIN_VERSION"
|
||||
application
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -23,6 +24,7 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers")
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm {
|
||||
compilations.all {
|
||||
@@ -83,17 +85,21 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = "ServerKt"
|
||||
}
|
||||
|
||||
tasks.getByName<KotlinWebpack>("jsBrowserProductionWebpack") {
|
||||
outputFileName = "output.js"
|
||||
}
|
||||
|
||||
tasks.getByName<Jar>("jvmJar") {
|
||||
dependsOn(tasks.getByName("jsBrowserProductionWebpack"))
|
||||
val jsBrowserProductionWebpack = tasks.getByName<KotlinWebpack>("jsBrowserProductionWebpack")
|
||||
from(File(jsBrowserProductionWebpack.destinationDirectory, jsBrowserProductionWebpack.outputFileName))
|
||||
}
|
||||
|
||||
tasks.getByName<JavaExec>("run") {
|
||||
dependsOn(tasks.getByName<Jar>("jvmJar"))
|
||||
classpath(tasks.getByName<Jar>("jvmJar"))
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -10,6 +11,7 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
|
||||
sourceSets {
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
kotlin("multiplatform") version "KOTLIN_VERSION"
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -10,6 +11,7 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
|
||||
sourceSets {
|
||||
|
||||
+2
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -12,6 +13,7 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm {
|
||||
compilations.all {
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
kotlin("multiplatform") version "KOTLIN_VERSION"
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -10,6 +11,7 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm {
|
||||
compilations.all {
|
||||
|
||||
+3
@@ -3,6 +3,7 @@ plugins {
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'kotlin-android-extensions'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -15,12 +16,14 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':shared')
|
||||
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
@@ -3,6 +3,7 @@ plugins {
|
||||
kotlin("android")
|
||||
id("kotlin-android-extensions")
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -15,12 +16,14 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":shared"))
|
||||
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 {
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ buildscript {
|
||||
classpath('com.android.tools.build:gradle:4.0.1')
|
||||
}
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ buildscript {
|
||||
classpath("com.android.tools.build:gradle:4.0.1")
|
||||
}
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
|
||||
+5
@@ -5,6 +5,7 @@ plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android-extensions'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -17,6 +18,7 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
android()
|
||||
ios {
|
||||
@@ -55,6 +57,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
sourceSets.main.manifest.srcFile('src/androidMain/AndroidManifest.xml')
|
||||
@@ -70,6 +73,7 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task(packForXcode, type: Sync) {
|
||||
group = 'build'
|
||||
def mode = System.getenv('CONFIGURATION') ?: 'DEBUG'
|
||||
@@ -82,4 +86,5 @@ task(packForXcode, type: Sync) {
|
||||
from({ framework.outputDirectory })
|
||||
into(targetDir)
|
||||
}
|
||||
|
||||
tasks.getByName('build').dependsOn(packForXcode)
|
||||
+5
@@ -5,6 +5,7 @@ plugins {
|
||||
id("com.android.library")
|
||||
id("kotlin-android-extensions")
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -17,6 +18,7 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
android()
|
||||
ios {
|
||||
@@ -49,6 +51,7 @@ kotlin {
|
||||
val iosTest by getting
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion(29)
|
||||
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||
@@ -64,6 +67,7 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val packForXcode by tasks.creating(Sync::class) {
|
||||
group = "build"
|
||||
val mode = System.getenv("CONFIGURATION") ?: "DEBUG"
|
||||
@@ -76,4 +80,5 @@ val packForXcode by tasks.creating(Sync::class) {
|
||||
from({ framework.outputDirectory })
|
||||
into(targetDir)
|
||||
}
|
||||
|
||||
tasks.getByName("build").dependsOn(packForXcode)
|
||||
+3
@@ -3,6 +3,7 @@ plugins {
|
||||
id 'com.android.library'
|
||||
id 'kotlin-android-extensions'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
version = '1.0-SNAPSHOT'
|
||||
|
||||
@@ -15,6 +16,7 @@ repositories {
|
||||
url 'https://dl.bintray.com/kotlin/kotlin-dev'
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
android()
|
||||
iosX64('ios') {
|
||||
@@ -53,6 +55,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
sourceSets.main.manifest.srcFile('src/androidMain/AndroidManifest.xml')
|
||||
|
||||
+3
@@ -3,6 +3,7 @@ plugins {
|
||||
id("com.android.library")
|
||||
id("kotlin-android-extensions")
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
@@ -15,6 +16,7 @@ repositories {
|
||||
url = uri("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
android()
|
||||
iosX64("ios") {
|
||||
@@ -47,6 +49,7 @@ kotlin {
|
||||
val iosTest by getting
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion(29)
|
||||
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||
|
||||
+2
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.multiplatform' version 'KOTLIN_VERSION'
|
||||
}
|
||||
|
||||
group = 'me.user'
|
||||
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")
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
kotlin("multiplatform") version "KOTLIN_VERSION"
|
||||
}
|
||||
|
||||
group = "me.user"
|
||||
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")
|
||||
|
||||
+5
-6
@@ -46,8 +46,7 @@ data class BuildFileIR(
|
||||
is GradlePrinter -> {
|
||||
distinctImportsOrNull()?.let { imports ->
|
||||
imports.listNl()
|
||||
nl()
|
||||
nl()
|
||||
nl(lineBreaks = 2)
|
||||
}
|
||||
irsOfTypeOrNull<BuildScriptIR>()?.let { buildScriptIrs ->
|
||||
sectionCall("buildscript", needIndent = true) {
|
||||
@@ -56,15 +55,15 @@ data class BuildFileIR(
|
||||
sectionCall("dependencies", buildScriptIrs.filterIsInstance<BuildScriptDependencyIR>())
|
||||
}
|
||||
}
|
||||
sectionCall("plugins", irsOfType<BuildSystemPluginIR>()); nlIndented()
|
||||
sectionCall("plugins", irsOfType<BuildSystemPluginIR>()); nl(lineBreaks = 2)
|
||||
pom.render(this); nl()
|
||||
|
||||
sectionCall("repositories", distinctRepositories())
|
||||
nl()
|
||||
nl(lineBreaks = 2)
|
||||
modules.render(this)
|
||||
irsOfTypeOrNull<FreeIR>()?.let { freeIrs ->
|
||||
nl()
|
||||
freeIrs.listNl()
|
||||
nl(2)
|
||||
freeIrs.listNl(lineBreaks = 2)
|
||||
}.ignore()
|
||||
}
|
||||
is MavenPrinter -> pom {
|
||||
|
||||
+5
-5
@@ -13,9 +13,9 @@ abstract class BuildFilePrinter {
|
||||
+"\n".repeat(lineBreaks)
|
||||
}
|
||||
|
||||
fun nlIndented() {
|
||||
nl();
|
||||
indent();
|
||||
fun nlIndented(lineBreaks: Int = 1) {
|
||||
nl(lineBreaks)
|
||||
indent()
|
||||
}
|
||||
|
||||
fun indent() {
|
||||
@@ -53,9 +53,9 @@ abstract class BuildFilePrinter {
|
||||
suffix()
|
||||
}
|
||||
|
||||
open fun <T : BuildSystemIR> List<T>.listNl(needFirstIndent: Boolean = true) {
|
||||
open fun <T : BuildSystemIR> List<T>.listNl(needFirstIndent: Boolean = true, lineBreaks: Int = 1) {
|
||||
if (needFirstIndent) indent()
|
||||
list(separator = { nl(); indent() }) { it.render(this) }
|
||||
list(separator = { nl(lineBreaks); indent() }) { it.render(this) }
|
||||
}
|
||||
|
||||
fun result(): String = builder.toString()
|
||||
|
||||
+2
-2
@@ -37,8 +37,8 @@ MavenPrinter(override val indent: Int = 4) : BuildFilePrinter() {
|
||||
}
|
||||
|
||||
// We already have line break after node
|
||||
override fun <T : BuildSystemIR> List<T>.listNl(needFirstIndent: Boolean) {
|
||||
list(separator = { +"" }) { it.render(this) }
|
||||
override fun <T : BuildSystemIR> List<T>.listNl(needFirstIndent: Boolean, lineBreaks: Int) {
|
||||
list(separator = { nl(lineBreaks = (lineBreaks - 1).coerceAtLeast(0)) }) { it.render(this) }
|
||||
}
|
||||
|
||||
val String.quotified
|
||||
|
||||
Reference in New Issue
Block a user