[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:
Ilya Matveev
2020-04-28 17:20:22 +07:00
committed by Ilya Matveev
parent a99c22fbcf
commit f959f275e8
8 changed files with 29 additions and 2 deletions
+2 -1
View File
@@ -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"
+1
View File
@@ -25,6 +25,7 @@ configurations {
kotlinCompilerClasspath
}
project.repositories {
maven { url buildKotlinCompilerRepo }
maven {
url kotlinCompilerRepo
}
+2 -1
View File
@@ -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'
+24
View File
@@ -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 {
}