[build] Create a separate utility module for basic things
The :utilities module contains some logic that depends on all other parts of the K/N toolchain. But we also need a module containing a basic logic that all other parts of the toolchain depends on. Historically such logic is located in the :shared module. However having code with complex dependencies in :shared may slow down a composite build import. So this patch puts all content of :utilities into a new module :utilities:cli-runner and creates a new :utilities:basic-utils module. Later some logic from the :shared module may be moved into this new module.
This commit is contained in:
committed by
Ilya Matveev
parent
a99c22fbcf
commit
f959f275e8
+2
-1
@@ -216,7 +216,8 @@ dependencies {
|
||||
distPack project(':Interop:Indexer')
|
||||
distPack project(':Interop:StubGenerator')
|
||||
distPack project(':backend.native')
|
||||
distPack project(':utilities')
|
||||
distPack project(':utilities:cli-runner')
|
||||
distPack project(':utilities:basic-utils')
|
||||
distPack project(':klib')
|
||||
distPack project(path: ':endorsedLibraries:kotlinx.cli', configuration: "jvmRuntimeElements")
|
||||
distPack "org.jetbrains.kotlin:kotlin-native-shared:$konanVersion"
|
||||
|
||||
@@ -25,6 +25,7 @@ configurations {
|
||||
kotlinCompilerClasspath
|
||||
}
|
||||
project.repositories {
|
||||
maven { url buildKotlinCompilerRepo }
|
||||
maven {
|
||||
url kotlinCompilerRepo
|
||||
}
|
||||
|
||||
+2
-1
@@ -29,7 +29,8 @@ include ':runtime'
|
||||
include ':common'
|
||||
include ':backend.native:tests'
|
||||
include ':backend.native:debugger-tests'
|
||||
include ':utilities'
|
||||
include ':utilities:basic-utils'
|
||||
include ':utilities:cli-runner'
|
||||
include 'dependencyPacker'
|
||||
|
||||
include ':performance'
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
buildscript {
|
||||
apply(from = "$rootDir/gradle/kotlinGradlePlugin.gradle")
|
||||
}
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
tasks.named<KotlinCompile>("compileKotlin") {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = listOf("-Xskip-metadata-version-check")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user