2a4f3f41aa
Review: https://jetbrains.team/p/kt/reviews/6753 Meaningful semantic change was splitted into 5 commits to simplify the change review. Sinle commit would be too big. Why replace source to binary: to get rid of kotlin-reflect in Kotlin plugin artifact KTIJ-22276 Note: Kotlin Maven artifacts (./gradlew publish) changed their dependency on kotlin-reflect
59 lines
1.7 KiB
Kotlin
59 lines
1.7 KiB
Kotlin
/*
|
|
* Copyright 2010-2017 JetBrains s.r.o.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
@file:Suppress("UnstableApiUsage")
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
|
|
|
plugins {
|
|
id("kotlin")
|
|
}
|
|
|
|
val rootBuildDirectory by extra(file(".."))
|
|
apply(from="../gradle/loadRootProperties.gradle")
|
|
|
|
val kotlinVersion = project.bootstrapKotlinVersion
|
|
|
|
group = "org.jetbrains.kotlin"
|
|
|
|
repositories {
|
|
maven("https://cache-redirector.jetbrains.com/maven-central")
|
|
mavenCentral()
|
|
}
|
|
|
|
sourceSets["main"].withConvention(KotlinSourceSet::class) {
|
|
kotlin.srcDir("src/main/kotlin")
|
|
kotlin.srcDir("src/library/kotlin")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
kotlinOptions.freeCompilerArgs = listOf("-Xskip-prerelease-check")
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveFileName.set("shared.jar")
|
|
}
|
|
|
|
dependencies {
|
|
kotlinCompilerClasspath("org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion")
|
|
|
|
implementation(kotlinStdlib())
|
|
implementation(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
|
api("org.jetbrains.kotlin:kotlin-native-utils:$kotlinVersion")
|
|
api("org.jetbrains.kotlin:kotlin-util-klib:$kotlinVersion")
|
|
}
|