[repo] Fix 'prepare-deps' sub-project was not included in build
This commit is contained in:
committed by
Space Team
parent
45d8a8e56a
commit
9294a74bf2
@@ -17,10 +17,6 @@ logger.info("buildSrcKotlinVersion: " + extra["bootstrapKotlinVersion"])
|
|||||||
logger.info("buildSrc kotlin compiler version: " + org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION)
|
logger.info("buildSrc kotlin compiler version: " + org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION)
|
||||||
logger.info("buildSrc stdlib version: " + KotlinVersion.CURRENT)
|
logger.info("buildSrc stdlib version: " + KotlinVersion.CURRENT)
|
||||||
|
|
||||||
apply {
|
|
||||||
from("../../../gradle/checkCacheability.gradle.kts")
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
`java-gradle-plugin`
|
`java-gradle-plugin`
|
||||||
@@ -40,28 +36,6 @@ gradlePlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Project.getBooleanProperty(name: String): Boolean? = this.findProperty(name)?.let {
|
|
||||||
val v = it.toString()
|
|
||||||
if (v.isBlank()) true
|
|
||||||
else v.toBoolean()
|
|
||||||
}
|
|
||||||
|
|
||||||
project.apply {
|
|
||||||
from(rootProject.file("../../gradle/versions.gradle.kts"))
|
|
||||||
}
|
|
||||||
|
|
||||||
val isTeamcityBuild = kotlinBuildProperties.isTeamcityBuild
|
|
||||||
val intellijSeparateSdks by extra(project.getBooleanProperty("intellijSeparateSdks") ?: false)
|
|
||||||
|
|
||||||
extra["intellijReleaseType"] = when {
|
|
||||||
extra["versions.intellijSdk"]?.toString()?.contains("-EAP-") == true -> "snapshots"
|
|
||||||
extra["versions.intellijSdk"]?.toString()?.endsWith("SNAPSHOT") == true -> "nightly"
|
|
||||||
else -> "releases"
|
|
||||||
}
|
|
||||||
|
|
||||||
extra["versions.androidDxSources"] = "5.0.0_r2"
|
|
||||||
extra["customDepsOrg"] = "kotlin.build"
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
google()
|
google()
|
||||||
|
|||||||
+27
-7
@@ -13,15 +13,36 @@ import javax.xml.stream.XMLOutputFactory
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
base
|
base
|
||||||
|
id("org.jetbrains.kotlin.jvm")
|
||||||
}
|
}
|
||||||
|
|
||||||
val intellijReleaseType: String by rootProject.extra
|
fun Project.getBooleanProperty(name: String): Boolean? = this.findProperty(name)?.let {
|
||||||
val intellijVersion = rootProject.extra["versions.intellijSdk"] as String
|
val v = it.toString()
|
||||||
|
if (v.isBlank()) true
|
||||||
|
else v.toBoolean()
|
||||||
|
}
|
||||||
|
|
||||||
|
project.apply {
|
||||||
|
from(rootProject.file("../../gradle/versions.gradle.kts"))
|
||||||
|
}
|
||||||
|
|
||||||
|
val isTeamcityBuild = kotlinBuildProperties.isTeamcityBuild
|
||||||
|
|
||||||
|
val intellijSeparateSdks by extra(project.getBooleanProperty("intellijSeparateSdks") ?: false)
|
||||||
|
val intellijReleaseType: String by extra {
|
||||||
|
when {
|
||||||
|
extra["versions.intellijSdk"]?.toString()?.contains("-EAP-") == true -> "snapshots"
|
||||||
|
extra["versions.intellijSdk"]?.toString()?.endsWith("SNAPSHOT") == true -> "nightly"
|
||||||
|
else -> "releases"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val customDepsOrg: String by extra("kotlin.build")
|
||||||
|
|
||||||
|
val intellijVersion = project.extra["versions.intellijSdk"] as String
|
||||||
val intellijVersionForIde = rootProject.intellijSdkVersionForIde()
|
val intellijVersionForIde = rootProject.intellijSdkVersionForIde()
|
||||||
val asmVersion = rootProject.findProperty("versions.jar.asm-all") as String?
|
val asmVersion = project.findProperty("versions.jar.asm-all") as String?
|
||||||
val androidStudioRelease = rootProject.findProperty("versions.androidStudioRelease") as String?
|
val androidStudioRelease = project.findProperty("versions.androidStudioRelease") as String?
|
||||||
val androidStudioBuild = rootProject.findProperty("versions.androidStudioBuild") as String?
|
val androidStudioBuild = project.findProperty("versions.androidStudioBuild") as String?
|
||||||
val intellijSeparateSdks: Boolean by rootProject.extra
|
|
||||||
|
|
||||||
fun checkIntellijVersion(intellijVersion: String) {
|
fun checkIntellijVersion(intellijVersion: String) {
|
||||||
val intellijVersionDelimiterIndex = intellijVersion.indexOfAny(charArrayOf('.', '-'))
|
val intellijVersionDelimiterIndex = intellijVersion.indexOfAny(charArrayOf('.', '-'))
|
||||||
@@ -92,7 +113,6 @@ val dependenciesDir = (findProperty("kotlin.build.dependencies.dir") as String?)
|
|||||||
|
|
||||||
val customDepsRepoDir = dependenciesDir.resolve("repo")
|
val customDepsRepoDir = dependenciesDir.resolve("repo")
|
||||||
|
|
||||||
val customDepsOrg: String by rootProject.extra
|
|
||||||
val repoDir = File(customDepsRepoDir, customDepsOrg)
|
val repoDir = File(customDepsRepoDir, customDepsOrg)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
Reference in New Issue
Block a user