@@ -4,6 +4,7 @@ import org.jmailen.gradle.kotlinter.tasks.ConfigurableKtLintTask
44plugins {
55 buildsrc.convention.`kotlin- jvm`
66 buildsrc.convention.publishing
7+ buildsrc.convention.`duplicate- versions`
78
89 kotlin(" plugin.serialization" )
910
@@ -70,40 +71,6 @@ tasks.formatKotlinMain {
7071 kotlinterConfig()
7172}
7273
73- val validateDuplicatedVersion by tasks.creating<Task > {
74- // These properties of a project need to be resolved before the 'doLast' block because otherwise, Gradle
75- // configuration cache cannot be used.
76- val rootDir = rootDir
77- val version = version
78-
79- doLast {
80- require(
81- rootDir.resolve(" mkdocs.yml" ).readText()
82- .contains(" version: $version " )
83- ) { " Library version stated in the docs should be equal to $version !" }
84- require(
85- rootDir.resolve(" github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/docsnippets/GettingStartedSnippets.kt" ).readText()
86- .contains(" \" io.github.typesafegithub:github-workflows-kt:$version \" " )
87- ) { " Library version stated in github-workflows-kt/src/test/.../GettingStarted.kt should be equal to $version !" }
88- require(
89- rootDir.resolve(" .github/workflows/end-to-end-tests.main.kts" ).readText()
90- .contains(" \" io.github.typesafegithub:github-workflows-kt:$version \" " )
91- ) { " Library version stated in end-to-end-tests.main.kts should be equal to $version !" }
92- require(
93- rootDir.resolve(" .github/workflows/end-to-end-tests.main.kts" ).readText()
94- .contains(" \" io.github.typesafegithub:action-updates-checker:$version \" " )
95- ) { " Library version stated in end-to-end-tests.main.kts should be equal to $version !" }
96- require(
97- rootDir.resolve(" images/teaser-with-newest-version.svg" ).readText()
98- .contains(" \" io.github.typesafegithub:github-workflows-kt:$version \" " )
99- ) { " Library version stated in the teaser image shiuld be equal to $version !" }
100- }
101- }
102-
103- tasks.check {
104- dependsOn(validateDuplicatedVersion)
105- }
106-
10774pitest {
10875 junit5PluginVersion.set(" 1.1.0" )
10976 excludedClasses.set(
0 commit comments