-
Notifications
You must be signed in to change notification settings - Fork 392
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
Refactor publishing configuration #3030
Conversation
-⚠️ rename `dokka_publication_channel`, `dokka_publication_channels` to `org.jetbrains.dokka.publicationChannels` - add `publicationChannels` do `DokkaBuildProperties` - refactor `registerDokkaArtifactPublication()` helper - add docs to `ValidatePublications` task - moving `dokka_build` val to `DokkaBuildProperties`, but don't start updating usages yet - refactor `projectsWithoutOptInDependency` to be more generic - migrate `ValidatePublications` checks into `maven-publish.gradle.kts` (which is just a messy first draft and could use with a re-write) Additional changes: - move integration test properties (parallelism and exhaustive) into DokkaBuildProperties - re-write 'disable DokkaHtml for MavenLocal' check
afterEvaluate { // Workaround for an interesting design choice https://github.com/gradle/gradle/blob/c4f935f77377f1783f70ec05381c8182b3ade3ea/subprojects/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/MavenPluginPublishPlugin.java#L49 | ||
configureSpacePublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") | ||
configureSonatypePublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") | ||
createDokkaPublishTaskIfNecessary() | ||
// configureSpacePublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") | ||
// configureSonatypePublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") | ||
// createDokkaPublishTaskIfNecessary() | ||
} |
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'm not quite sure if the changes I've made are equivalent to this existing config, and it's difficult to check without actually publishing.
…ing_build_config # Conflicts: # build-logic/src/main/kotlin/org/jetbrains/ValidatePublications.kt # build-logic/src/main/kotlin/org/jetbrains/conventions/dokka.gradle.kts # docs-developer/build.gradle.kts # kotlin-analysis/build.gradle.kts # kotlin-analysis/compiler-dependency/build.gradle.kts # kotlin-analysis/intellij-dependency/build.gradle.kts
I believe this PR can be closed, as the publishing setup is changed? @adam-enko ? |
Yes, agreed, the refactoring was mostly completed as part of #3132 |
This is an infrastructureEverything related to builds tools, CI configurations and project tooling
issue, part of #2703, specifically this comment
This PR is larger than I intended, I started picking things apart and I couldn't stop! I think it's worth having it all in one place so you can have a general overview, but just give me the word and I'll split out anything worth investigating into a separate PR.
I've done some preliminary tests using
./gradlew publishAllPublicationsToSpaceDokkaDevRepository --dry-run
, but of course this isn't a real-life scenario.Summary
dokka_publication_channel
,dokka_publication_channels
toorg.jetbrains.dokka.publicationChannels
, so the properties are consistentpublicationChannels
doDokkaBuildProperties
, so it's more easily accessibleregisterDokkaArtifactPublication()
helperValidatePublications
taskdokka_build
val toDokkaBuildProperties
, but don't start updating usages yetprojectsWithoutOptInDependency
to be more genericValidatePublications
checks intomaven-publish.gradle.kts
(which is just a messy first draft and could use with a re-write)Additional changes: