mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-22 16:23:50 +00:00
partially fix build
This commit is contained in:
parent
c73cb14615
commit
a739e874bf
@ -1,4 +1,7 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
|
ext {
|
||||||
|
kotlin_version = '1.4.10'
|
||||||
|
}
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
@ -4,6 +4,7 @@ project.group = "$group"
|
|||||||
apply from: "$publishGradlePath"
|
apply from: "$publishGradlePath"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
android {}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user