Skip to content

Commit 532a965

Browse files
authored
Merge pull request #614 from jmfayard/split-dependency-notations-tests
Move the dependency notations webpage generating test
2 parents 15b54c2 + 23d895d commit 532a965

10 files changed

+8894
-3099
lines changed

Releasing.main.kts

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private class Files {
8484
val versionToRemovalsMapping = mainResourcesDir.resolve("version-to-removals-revision-mapping.txt").also {
8585
check(it.exists()) { "Didn't find the ${it.name} file in ${it.parentFile}! Has it been moved or renamed?" }
8686
}
87+
val dependencyNotations = dir.resolve("docs/dependency-notations.md")
8788
}
8889

8990
private val files = Files()
@@ -210,6 +211,9 @@ fun CliUi.runReleaseStep(step: ReleaseStep): Unit = when (step) {
210211
"the command that just ran. Is something broken?"
211212
}
212213
printInfo("Successfully updated the following file: ${files.versionToRemovalsMapping}")
214+
if (git.didFileChange(files.dependencyNotations)) {
215+
printInfo("Also updated the following file: ${files.dependencyNotations}")
216+
} else Unit
213217
}
214218
`Request doc update confirmation` -> {
215219
arrayOf(

docs/add-dependencies.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Use built-in dependency notations
44

5-
[**See Dependencies Notations**](dependencies-notations.md)
5+
[**See Built-in Dependency Notations**](dependency-notations.md)
66

77
[![](img/screencast.png)](http://www.youtube.com/watch?v=VhYERonB8co "Gradle refreshVersions")
88

docs/dependencies-notations.md

-2,983
This file was deleted.

0 commit comments

Comments
 (0)