Samyak Jain
06/12/2020, 8:36 AMtasks {
withType<KotlinCompile> {
kotlinOptions.jdkHome = rootProject.extra["JDK_18"] as String
kotlinOptions.languageVersion = "1.2"
kotlinOptions.apiVersion = "1.2"
kotlinOptions.freeCompilerArgs += listOf("-Xskip-metadata-version-check")
}
named<ProcessResources>("processResources") {
val propertiesToExpand = mapOf("projectVersion" to project.version)
for ((name, value) in propertiesToExpand) {
inputs.property(name, value)
}
filesMatching("project.properties") {
expand("projectVersion" to project.version)
}
}
named<Jar>("jar") {
callGroovy("manifestAttributes", manifest, project)
}
named<ValidateTaskProperties>("validateTaskProperties") {
failOnWarning = true
}
named<DokkaTask>("dokka") {
outputFormat = "markdown"
includes = listOf("$projectDir/Module.md")
}
}
tasks {
withType(KotlinCompile) {
kotlinOptions.jdkHome = rootProject.ext["JDK_18"] as String
kotlinOptions.languageVersion = "1.2"
kotlinOptions.apiVersion = "1.2"
kotlinOptions.freeCompilerArgs += ["-Xskip-metadata-version-check"]
}
processResources {
val propertiesToExpand = {"projectVersion" = project.version}
for ((name, value) in propertiesToExpand) {
inputs.property(name, value)
}
filesMatching("project.properties") {
expand("projectVersion" to project.version)
}
}
jar {
callGroovy("manifestAttributes", manifest, project)
}
validateTaskProperties {
failOnWarning = true
}
dokka {
outputFormat = "markdown"
includes = ["$projectDir/Module.md"]
}
}
gildor
06/12/2020, 8:41 AMSamyak Jain
06/12/2020, 2:29 PM