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