Generate dependencies.properties used by dokka build
was missing after migration to custom-build
This commit is contained in:
@@ -136,6 +136,7 @@ extra["versions.org.springframework"] = "4.2.0.RELEASE"
|
|||||||
extra["versions.jflex"] = "1.7.0"
|
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"
|
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])"
|
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
|
val isTeamcityBuild = project.hasProperty("teamcity") || System.getenv("TEAMCITY_VERSION") != null
|
||||||
|
|||||||
@@ -1,9 +1,31 @@
|
|||||||
|
import java.util.Properties
|
||||||
|
|
||||||
description = "Kotlin IDE Lazy Resolver"
|
description = "Kotlin IDE Lazy Resolver"
|
||||||
|
|
||||||
apply { plugin("java") }
|
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 {
|
runtimeJar {
|
||||||
|
dependsOn(writeVersions)
|
||||||
archiveName = "kotlin-ide-common.jar"
|
archiveName = "kotlin-ide-common.jar"
|
||||||
dependsOn(":idea:ide-common:classes")
|
dependsOn(":idea:ide-common:classes")
|
||||||
project(":idea:ide-common").let { p ->
|
project(":idea:ide-common").let { p ->
|
||||||
|
|||||||
Reference in New Issue
Block a user