0.10.0 #16
@ -87,21 +87,19 @@ open class KScienceProjectPlugin : Plugin<Project> {
|
|||||||
override fun apply(target: Project): Unit = target.run {
|
override fun apply(target: Project): Unit = target.run {
|
||||||
apply<ChangelogPlugin>()
|
apply<ChangelogPlugin>()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!isSnapshot()) {
|
|
||||||
configure<ChangelogPluginExtension> {
|
|
||||||
version = project.version.toString()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
apply<DokkaPlugin>()
|
apply<DokkaPlugin>()
|
||||||
apply<BinaryCompatibilityValidatorPlugin>()
|
apply<BinaryCompatibilityValidatorPlugin>()
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
if (isSnapshot()) {
|
if (isSnapshot()) {
|
||||||
configure<ApiValidationExtension> {
|
configure<ApiValidationExtension> {
|
||||||
validationDisabled = true
|
validationDisabled = true
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
configure<ChangelogPluginExtension> {
|
||||||
|
version = project.version.toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val rootReadmeExtension = KScienceReadmeExtension(this)
|
val rootReadmeExtension = KScienceReadmeExtension(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user