Allow to specify target and templates directory with Gradle properties
This commit is contained in:
committed by
Space Team
parent
6d3ddb999f
commit
e3cfed8ced
@@ -12,7 +12,7 @@ evaluationDependsOnChildren()
|
||||
|
||||
fun pKotlinBig() = project("kotlin_big").ext
|
||||
|
||||
val outputDir = file("$buildDir/doc")
|
||||
val outputDir = file(findProperty("docsBuildDir") as String? ?: "$buildDir/doc")
|
||||
val outputDirLatest = file("$outputDir/latest")
|
||||
val outputDirPrevious = file("$outputDir/previous")
|
||||
val kotlin_root: String by pKotlinBig()
|
||||
@@ -21,12 +21,16 @@ val kotlin_native_root = file("$kotlin_root/kotlin-native").absolutePath
|
||||
val github_revision: String by pKotlinBig()
|
||||
val localRoot = kotlin_root
|
||||
val baseUrl = URL("https://github.com/JetBrains/kotlin/tree/$github_revision")
|
||||
val templatesDir = file("$projectDir/templates").invariantSeparatorsPath
|
||||
val templatesDir = file(findProperty("templatesDir") as String? ?: "$projectDir/templates").invariantSeparatorsPath
|
||||
|
||||
val cleanDocs by tasks.registering(Delete::class) {
|
||||
delete(outputDir)
|
||||
}
|
||||
|
||||
tasks.clean {
|
||||
dependsOn(cleanDocs)
|
||||
}
|
||||
|
||||
val prepare by tasks.registering {
|
||||
dependsOn(":kotlin_big:extractLibs")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user