Skip to content

fix: Don't compile docs if there is no need #3503

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

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

ghostbuster91
Copy link
Contributor

This PR adds a little optimization to the publish commands.

If doc=false is passed it doesn't even attempt to compile javadocs which speeds up the whole process.

This is important in cases where people use bloop for compilation as javadocs compilation does not use bloop which results in effectively compiling everything twice.

Copy link
Contributor

@Gedochao Gedochao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@Gedochao Gedochao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Gedochao Gedochao merged commit bf3753e into VirtusLab:main Feb 19, 2025
77 of 78 checks passed
@ghostbuster91 ghostbuster91 deleted the optout-docs-compilation2 branch February 19, 2025 11:02
Mee-Tree pushed a commit to Mee-Tree/scala-cli that referenced this pull request Mar 21, 2025
* fix: Don't compile docs if there is no need

* Add testcase for publishing without docs

---------

Co-authored-by: ghostbuster91 <ghostbuster91@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants