Skip to content
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

498 minimize shadow jar #501

Merged
merged 5 commits into from
Apr 10, 2024
Merged

498 minimize shadow jar #501

merged 5 commits into from
Apr 10, 2024

Conversation

paul-dingemans
Copy link
Collaborator

When creating a shadow jar of a specific ktlint ruleset all transitive dependencies are included in that jar. Combining the individual ruleset shadow jars in the plugin-jar blows up the size of the plugin jar as the same dependencies are included multiple times. By first combining the ruleset shadow jars into another shadowed jar the duplicate dependencies are pruned.

Closes #498

* Support multiple versions of ktlint standard ruleset

The StandardRulesetProvider from each supported version of ktlint is transformed with shadow plugin to a unique class so that multiple versions of the StandardRulesetProvider class can be compiled into the plugin.

Closes #426
Closes #35

* Increase build memory

(cherry picked from commit 516955b)
Ktlint-lib includes multiple (old) versions of logger and standard ruleset so that the user can choose which version of ktlint rules are used. Those versions should never be bumped.

(cherry picked from commit 358130c)
(cherry picked from commit f7b9c8c)
When creating a shadow jar of a specific ktlint ruleset all transitive dependencies are included in that jar. Combining the individual ruleset shadow jars in the plugin-jar blows up the size of the plugin jar as the same dependencies are included multiple times. By first combining the ruleset shadow jars into another shadowed jar the duplicate dependencies are pruned.

Closes #498
@paul-dingemans paul-dingemans added this to the 0.23.0 milestone Apr 10, 2024
Copy link
Contributor

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

@paul-dingemans paul-dingemans merged commit 55717d2 into main Apr 10, 2024
6 checks passed
@paul-dingemans paul-dingemans deleted the 498-minimize-shadow-jar branch April 10, 2024 11:19
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.

Minimize plugin size
1 participant