xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Kotlin All In One

Kotlin All In One

Android

https://developer.android.com/kotlin/learn?hl=zh-cn

https://kotlinlang.org/

https://github.com/JetBrains/kotlin

https://developer.android.com/studio

.kts

https://github.com/JetBrains/kotlin/blob/master/core/descriptors.runtime/build.gradle.kts


import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    kotlin("jvm")
    id("jps-compatible")
}

dependencies {
    compileOnly(project(":core:util.runtime"))
    compileOnly(project(":core:descriptors"))
    compileOnly(project(":core:descriptors.jvm"))

    testCompile(projectTests(":compiler:tests-common"))
    testCompile(projectTests(":generators:test-generator"))

    testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") }
    testRuntimeOnly(intellijDep()) { includeJars("platform-concurrency") }
    testRuntimeOnly(jpsStandalone()) { includeJars("jps-model") }
}

sourceSets {
    "main" { projectDefault() }
    "test" { projectDefault() }
}

val compileJava by tasks.getting(JavaCompile::class) {
    sourceCompatibility = "1.6"
    targetCompatibility = "1.6"
}

val compileKotlin by tasks.getting(KotlinCompile::class) {
    kotlinOptions {
        jvmTarget = "1.6"
        jdkHome = rootProject.extra["JDK_16"] as String
        freeCompilerArgs += "-Xsuppress-deprecated-jvm-target-warning"
    }
}

val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateRuntimeDescriptorTestsKt")

projectTest(parallel = true) {
    workingDir = rootDir
}

testsJar()

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-02-25 15:34  xgqfrms  阅读(79)  评论(1编辑  收藏  举报