Generate dependencies.properties used by dokka build

was missing after migration to custom-build
This commit is contained in:
Vyacheslav Gerasimov
2018-02-20 17:46:20 +03:00
parent d1eabb3e67
commit 9b4f1156d8
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -136,6 +136,7 @@ extra["versions.org.springframework"] = "4.2.0.RELEASE"
extra["versions.jflex"] = "1.7.0"
val markdownVer = "4054 - Kotlin 1.0.2-dev-566".replace(" ", "%20") // fixed here, was last with "status:SUCCESS,tag:forKotlin"
extra["markdownParserVersion"] = markdownVer
extra["markdownParserRepo"] = "https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/$markdownVer/([artifact]_[ext]/)[artifact](.[ext])"
val isTeamcityBuild = project.hasProperty("teamcity") || System.getenv("TEAMCITY_VERSION") != null
@@ -1,9 +1,31 @@
import java.util.Properties
description = "Kotlin IDE Lazy Resolver"
apply { plugin("java") }
val versions by configurations.creating
val versionFilePath = "$rootDir/dependencies/dependencies.properties"
val ideaVersion = findProperty("versions.intellijSdk").toString()
val markdownVersion = findProperty("markdownParserVersion").toString()
val writeVersions by tasks.creating {
val versionFile = File(versionFilePath)
inputs.property("ideaVersion", ideaVersion)
inputs.property("markdownVersion", markdownVersion)
outputs.file(versionFile)
doLast {
versionFile.parentFile.mkdirs()
val properties = Properties()
properties.setProperty("idea.build.id", ideaVersion)
properties.setProperty("markdown.build.id", markdownVersion)
properties.store(versionFile.outputStream(), "")
}
}
runtimeJar {
dependsOn(writeVersions)
archiveName = "kotlin-ide-common.jar"
dependsOn(":idea:ide-common:classes")
project(":idea:ide-common").let { p ->