-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Versioning first draft #1654
Versioning first draft #1654
Conversation
adcd818
to
c8dd76b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the logic here is correct my only complain is that i feel it should be a plugin to decouple functionalities. I don't expect everyone using multimodule to use versions, in fact this is a quite niche behaviour
c8dd76b
to
f66e084
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can i ask you to make 1, very simple integration test?
plugins/versioning/src/main/kotlin/versioning/ReplaceVersionCommandConsumer.kt
Show resolved
Hide resolved
private fun handlePreviousVersions(olderDokkaPath: File, output: File) { | ||
assert(olderDokkaPath.isDirectory) { "Supplied previous version $olderDokkaPath is not a directory!" } | ||
val children = olderDokkaPath.list().orEmpty().map { olderDokkaPath.resolve(File(it)) } | ||
val oldVersion = children.first { it.name == VERSIONS_FILE }.let { file -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
firstOrNull + some message if not found since it will be super hard to debug later
...ers/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/AndroidAutoConfigurationTest.kt
Outdated
Show resolved
Hide resolved
682eb78
to
897f223
Compare
897f223
to
53cb63f
Compare
configuration<VersioningPlugin, VersioningConfiguration>(context)?.let { | ||
group(extra = PropertyContainer.withAll(InsertTemplateExtra(ReplaceVersionsCommand))) { } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should check if the plugin is on the classpath or log a debug that the plugin will not be used
plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkCommandResolutionTest.kt
Outdated
Show resolved
Hide resolved
plugins/all-modules-page/src/test/kotlin/templates/ResolveLinkGfmCommandResolutionTest.kt
Outdated
Show resolved
Hide resolved
plugins/all-modules-page/src/test/kotlin/templates/mockedPackageListFactory.kt
Outdated
Show resolved
Hide resolved
plugins/base/base-test-utils/src/main/kotlin/utils/assertHtmlEqualsIgnoringWhitespace.kt
Outdated
Show resolved
Hide resolved
plugins/versioning/src/main/kotlin/versioning/VersioningHandler.kt
Outdated
Show resolved
Hide resolved
plugins/versioning/src/main/kotlin/versioning/VersioningHandler.kt
Outdated
Show resolved
Hide resolved
plugins/versioning/src/main/kotlin/versioning/VersioningHandler.kt
Outdated
Show resolved
Hide resolved
plugins/versioning/src/main/kotlin/versioning/VersioningHandler.kt
Outdated
Show resolved
Hide resolved
plugins/versioning/src/main/kotlin/versioning/VersioningHandler.kt
Outdated
Show resolved
Hide resolved
53cb63f
to
90a2987
Compare
90a2987
to
f627cab
Compare
113f14d
to
386ca81
Compare
No description provided.