partially fix build

This commit is contained in:
InsanusMokrassar 2020-11-10 12:47:47 +06:00
parent c73cb14615
commit a739e874bf
3 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,7 @@
buildscript { buildscript {
ext {
kotlin_version = '1.4.10'
}
repositories { repositories {
mavenLocal() mavenLocal()
jcenter() jcenter()

View File

@ -4,6 +4,7 @@ project.group = "$group"
apply from: "$publishGradlePath" apply from: "$publishGradlePath"
kotlin { kotlin {
android {}
sourceSets { sourceSets {
commonMain { commonMain {

View File

@ -13,7 +13,7 @@ String[] includes = [
":repos:ktor:client", ":repos:ktor:client",
":repos:ktor:common", ":repos:ktor:common",
":repos:ktor:server", ":repos:ktor:server",
":repos:android:db", // ":repos:android:db",
":ktor:server", ":ktor:server",
":ktor:common", ":ktor:common",
":ktor:client", ":ktor:client",
@ -23,8 +23,12 @@ String[] includes = [
] ]
includes.each { includes.each { originalName ->
include it String projectDirectory = "${rootProject.projectDir.getAbsolutePath()}${originalName.replaceAll(":", File.separator)}"
ProjectDescriptor project = project(it) String projectName = "${rootProject.name}${originalName.replaceAll(":", ".")}"
project.name = rootProject.name + project.projectDir.absolutePath.replace("${rootDir.absolutePath}", "").replace(File.separator, ".") String projectIdentifier = ":${projectName}"
include projectIdentifier
ProjectDescriptor project = project(projectIdentifier)
project.name = projectName
project.projectDir = new File(projectDirectory)
} }