Skip to content

Add sbt-salad-days to reduce Scaladoc archive size#533

Merged
pjfanning merged 1 commit into
apache:mainfrom
He-Pin:add-sbt-salad-days
Jun 20, 2026
Merged

Add sbt-salad-days to reduce Scaladoc archive size#533
pjfanning merged 1 commit into
apache:mainfrom
He-Pin:add-sbt-salad-days

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 20, 2026

Copy link
Copy Markdown
Member

Motivation

Scala 3 Scaladoc archives bundle large font files and inkuire.js search engine, bloating release artifacts and wasting CI storage and upload time.

Modification

Add sbt-salad-days plugin (0.1.0) to project/plugins.sbt. The plugin operates automatically during Scaladoc packaging — strips fonts and scripts from the generated archives without requiring any additional configuration.

Result

Significantly smaller Scaladoc archives (e.g. ~420KB for minimal docs), reducing storage consumption in CI/release pipelines.

References

Motivation:
Scala 3 Scaladoc archives bundle large font files and inkuire.js
search engine, bloating release artifacts and wasting CI storage.

Modification:
Add sbt-salad-days plugin (0.1.0) which automatically strips
fonts and scripts from Scaladoc output during packaging.

Result:
Significantly smaller Scaladoc archives (e.g. ~420KB for minimal
docs), reducing upload time and storage consumption.

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@pjfanning pjfanning merged commit 582b175 into apache:main Jun 20, 2026
21 checks passed
@pjfanning

pjfanning commented Jun 20, 2026

Copy link
Copy Markdown
Member

@He-Pin I merged this and used GitHub Actions to publish new jars.
There seems to be an issue. Possibly caused by this plugin but maybe something else.
maven-metadata.xml is missing from our latest version.
https://repository.apache.org/content/repositories/snapshots/org/apache/pekko/pekko-projection-core_3/2.0.0-M0+197-a9a7200f-SNAPSHOT/
https://repository.apache.org/content/repositories/snapshots/org/apache/pekko/pekko-projection-core_3/2.0.0-M0+198-582b175f-SNAPSHOT/

I think we should revert this.

@He-Pin He-Pin deleted the add-sbt-salad-days branch June 20, 2026 10:34
@He-Pin

He-Pin commented Jun 20, 2026

Copy link
Copy Markdown
Member Author

I'm looking at this

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.

2 participants