Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
GradleUp
/
shadow
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
426
Star
4.2k
Code
Issues
9
Pull requests
5
Discussions
Actions
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Support shadowed sources JAR
- #2265
#2265
Open
Goooler
wants to merge 124 commits into
main
GradleUp/shadow:main
from
g/20260901/sources-jar
GradleUp/shadow:g/20260901/sources-jar
Copy head branch name to clipboard
Conversation
Commits
124
(124)
Checks
Files changed
Open
Support shadowed sources JAR
#2265
Goooler
wants to merge 124 commits into
main
GradleUp/shadow:main
from
g/20260901/sources-jar
GradleUp/shadow:g/20260901/sources-jar
Copy head branch name to clipboard
Commits
Commits on Sep 2, 2026
Add includedSourcesJars
Goooler
committed
0ea96b4
View commit details
Copy full SHA for 0ea96b4
Browse repository at this point
Generate shadowed sources jar when includedSourcesJars is present
Goooler
committed
a312982
View commit details
Copy full SHA for a312982
Browse repository at this point
Extract generateShadowedSourcesJar logic to internal package
Goooler
committed
24fba42
View commit details
Copy full SHA for 24fba42
Browse repository at this point
Use module g for shadowed sources jar functional test
Goooler
committed
5d4f2c3
View commit details
Copy full SHA for 5d4f2c3
Browse repository at this point
Configure sourceSetsSourceDirs in ShadowJavaPlugin and ShadowKmpPlugin
Goooler
committed
1d383df
View commit details
Copy full SHA for 1d383df
Browse repository at this point
Update changelog
Goooler
committed
59bcafa
View commit details
Copy full SHA for 59bcafa
Browse repository at this point
Allow generating shadowed sources jar when project sources are present even without dependency sources
Goooler
committed
04118a4
View commit details
Copy full SHA for 04118a4
Browse repository at this point
Support publishing shadow sources jar
Goooler
committed
8d99b41
View commit details
Copy full SHA for 8d99b41
Browse repository at this point
Remove outdated comment for applyToSourceContent
Goooler
committed
85f1aa5
View commit details
Copy full SHA for 85f1aa5
Browse repository at this point
Add documentation and test for generating Javadoc/Dokka from shadowed sources
Goooler
committed
93c8d73
View commit details
Copy full SHA for 93c8d73
Browse repository at this point
Clean up ShadowJavaPlugin
Goooler
committed
ecad8e4
View commit details
Copy full SHA for ecad8e4
Browse repository at this point
Set Dokka properties via gradle.properties as workaround for IP
Goooler
committed
68c2e1b
View commit details
Copy full SHA for 68c2e1b
Browse repository at this point
Clean docs/publishing/README.md
Goooler
committed
0f814e5
View commit details
Copy full SHA for 0f814e5
Browse repository at this point
Clean up tests
Goooler
committed
f4eab8f
View commit details
Copy full SHA for f4eab8f
Browse repository at this point
Filter unused classes when generating shadowed sources jar
Goooler
committed
935c73b
View commit details
Copy full SHA for 935c73b
Browse repository at this point
Extract declared package from source files to determine canonical path and match unused classes
Goooler
committed
476b36d
View commit details
Copy full SHA for 476b36d
Browse repository at this point
Extract createDefaultLocalMavenRepository to LocalMavenRepository.kt
Goooler
committed
e07d3be
View commit details
Copy full SHA for e07d3be
Browse repository at this point
Pass zos for generateShadowedSourcesJar
Goooler
committed
23adce5
View commit details
Copy full SHA for 23adce5
Browse repository at this point
Revert "Pass zos for generateShadowedSourcesJar"
Show description for 30b2c88
Goooler
committed
30b2c88
View commit details
Copy full SHA for 30b2c88
Browse repository at this point
Filter included sources jars based on DependencyFilter include and exclude rules
Goooler
committed
d231e62
View commit details
Copy full SHA for d231e62
Browse repository at this point
Document Shadowed Sources JAR features, publication and configuration
Goooler
committed
4d0ca8a
View commit details
Copy full SHA for 4d0ca8a
Browse repository at this point
Support bundling sources JAR from local subproject dependencies
Goooler
committed
51d5feb
View commit details
Copy full SHA for 51d5feb
Browse repository at this point
Use Worker API
Goooler
committed
0100ab2
View commit details
Copy full SHA for 0100ab2
Browse repository at this point
Revert "Use Worker API"
Show description for 09c2cea
Goooler
committed
09c2cea
View commit details
Copy full SHA for 09c2cea
Browse repository at this point
Include META-INF/MANIFEST.MF in shadowed sources JAR
Goooler
committed
0ca34cc
View commit details
Copy full SHA for 0ca34cc
Browse repository at this point
Fix KMP publications configuration in publishing docs
Goooler
committed
03c024f
View commit details
Copy full SHA for 03c024f
Browse repository at this point
Commits on Sep 3, 2026
Explicitly configure sources classifier for publications
Goooler
committed
95650a7
View commit details
Copy full SHA for 95650a7
Browse repository at this point
Cache unusedClasses and packageRelocators by lazy
Goooler
committed
cd245cb
View commit details
Copy full SHA for cd245cb
Browse repository at this point
Revert "Cache unusedClasses and packageRelocators by lazy"
Show description for 0350f8f
Goooler
committed
0350f8f
View commit details
Copy full SHA for 0350f8f
Browse repository at this point
Remove currentTimeMillis for lastModified
Goooler
committed
1b26f8b
View commit details
Copy full SHA for 1b26f8b
Browse repository at this point
Update regexes
Goooler
committed
5232d50
View commit details
Copy full SHA for 5232d50
Browse repository at this point
Safe cast for DefaultDependencyFilter
Goooler
committed
6079bbc
View commit details
Copy full SHA for 6079bbc
Browse repository at this point
Only publish shadowSourcesElements when java sources variant is present
Goooler
committed
ac67d84
View commit details
Copy full SHA for ac67d84
Browse repository at this point
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Show description for e13c3b3
Goooler
committed
e13c3b3
View commit details
Copy full SHA for e13c3b3
Browse repository at this point
Ensure deterministic sources JAR entry ordering and fix jvmNameRegex
Goooler
committed
41142b1
View commit details
Copy full SHA for 41142b1
Browse repository at this point
Clarify shadowed sources JAR generation vs publishing in docs
Goooler
committed
7edd7d6
View commit details
Copy full SHA for 7edd7d6
Browse repository at this point
Expose sourceSetsSourceDirs and includedSourcesJars as public with docs and tests
Goooler
committed
485aa65
View commit details
Copy full SHA for 485aa65
Browse repository at this point
Annotate includedSourcesJars with @InputFiles and @PathSensitive(NONE)
Goooler
committed
984fee4
View commit details
Copy full SHA for 984fee4
Browse repository at this point
Introduce generateSourcesJar property gated by withSourcesJar by default
Goooler
committed
ea3d529
View commit details
Copy full SHA for ea3d529
Browse repository at this point
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Show description for e449d2e
Goooler
committed
e449d2e
View commit details
Copy full SHA for e449d2e
Browse repository at this point
Polish error message in generateShadowedSourcesJar
Goooler
committed
97105cd
View commit details
Copy full SHA for 97105cd
Browse repository at this point
Commits on Sep 5, 2026
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Goooler
committed
332f5d8
View commit details
Copy full SHA for 332f5d8
Browse repository at this point
Gate default source inputs by generateSourcesJar
Goooler
committed
9040faa
View commit details
Copy full SHA for 9040faa
Browse repository at this point
Skip shadowSourcesElements variant when generateSourcesJar is disabled
Goooler
committed
74ac176
View commit details
Copy full SHA for 74ac176
Browse repository at this point
Document replacing standard artifacts and avoiding sourcesJar task conflict with empty classifier
Goooler
committed
00d47e9
View commit details
Copy full SHA for 00d47e9
Browse repository at this point
Track compiled class source files with ASM to prevent minimize from deleting used sources
Goooler
committed
52536ee
View commit details
Copy full SHA for 52536ee
Browse repository at this point
Fix include and dynamic exclude filtering in source content relocation
Goooler
committed
b2342dc
View commit details
Copy full SHA for b2342dc
Browse repository at this point
Preserve SourceDirectorySet filters for project sources and match project dependencies by identifier
Goooler
committed
3046fda
View commit details
Copy full SHA for 3046fda
Browse repository at this point
Dynamically derive shadow sources artifact classifier from archiveClassifier
Goooler
committed
3f7a56e
View commit details
Copy full SHA for 3f7a56e
Browse repository at this point
Fix shadow sources artifact classifier assignment and document replacement publishing
Goooler
committed
46f17b7
View commit details
Copy full SHA for 46f17b7
Browse repository at this point
Fix resource relative paths and include/exclude matching in shadowed sources JAR
Goooler
committed
effabb0
View commit details
Copy full SHA for effabb0
Browse repository at this point
Dynamically resolve sources publish artifact classifier and ensure path boundary safe directory matching
Goooler
committed
f9874ed
View commit details
Copy full SHA for f9874ed
Browse repository at this point
Reformat docs
Goooler
committed
a547894
View commit details
Copy full SHA for a547894
Browse repository at this point
Update samples in docs
Goooler
committed
3d9235e
View commit details
Copy full SHA for 3d9235e
Browse repository at this point
Prefer containsOnly for assertions
Goooler
committed
5308d0a
View commit details
Copy full SHA for 5308d0a
Browse repository at this point
Cleanups
Goooler
committed
1934fdf
View commit details
Copy full SHA for 1934fdf
Browse repository at this point
Revert private modifiers
Goooler
committed
fb731de
View commit details
Copy full SHA for fb731de
Browse repository at this point
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Show description for 7199e2e
Goooler
committed
7199e2e
View commit details
Copy full SHA for 7199e2e
Browse repository at this point
Reformat docs
Goooler
committed
e725a99
View commit details
Copy full SHA for e725a99
Browse repository at this point
Fix archiveClassifier assignment in README.md
Show description for 9ee4fc3
Goooler
and
Copilot
authored
9ee4fc3
View commit details
Copy full SHA for 9ee4fc3
Browse repository at this point
Align source relocation with bytecode remapping semantics
Goooler
committed
db160eb
View commit details
Copy full SHA for db160eb
Browse repository at this point
Use SourceDirectorySet and FileCollection.asFileTree for sources jar packaging
Goooler
committed
5965733
View commit details
Copy full SHA for 5965733
Browse repository at this point
Use direct physical relative paths for sources jar entries
Goooler
committed
f8a3678
View commit details
Copy full SHA for f8a3678
Browse repository at this point
Use containsExactly for entry ordering assertions in SourcesJarTest
Goooler
committed
8b99a5d
View commit details
Copy full SHA for 8b99a5d
Browse repository at this point
Document containsExactly preference for ordered collection assertions
Goooler
committed
d6000f9
View commit details
Copy full SHA for d6000f9
Browse repository at this point
Add comments on gating source inputs by generateSourcesJar
Goooler
committed
ba2adff
View commit details
Copy full SHA for ba2adff
Browse repository at this point
Rename generateShadowedSourcesJar
Goooler
committed
c074522
View commit details
Copy full SHA for c074522
Browse repository at this point
Make internal helper functions and constants private
Goooler
committed
a80544a
View commit details
Copy full SHA for a80544a
Browse repository at this point
Commits on Sep 7, 2026
Simplify shouldAddSources
Goooler
committed
bb3f221
View commit details
Copy full SHA for bb3f221
Browse repository at this point
Clean up shadowComponent
Goooler
committed
0c7a802
View commit details
Copy full SHA for 0c7a802
Browse repository at this point
Commits on Sep 10, 2026
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Show description for 939426c
Goooler
committed
939426c
View commit details
Copy full SHA for 939426c
Browse repository at this point
Improve error handling for Dokka issue 4600
Goooler
committed
26c9f4a
View commit details
Copy full SHA for 26c9f4a
Browse repository at this point
Use idiomatic Groovy syntax for method calls and plugins block in docs
Goooler
committed
af467c1
View commit details
Copy full SHA for af467c1
Browse repository at this point
Commits on Sep 20, 2026
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Show description for bdaaa87
Goooler
committed
bdaaa87
View commit details
Copy full SHA for bdaaa87
Browse repository at this point
Revert "Set Dokka properties via gradle.properties as workaround for IP"
Show description for f38c567
Goooler
committed
f38c567
View commit details
Copy full SHA for f38c567
Browse repository at this point
Fix shadowed sources jar output handling
Goooler
committed
f945091
View commit details
Copy full SHA for f945091
Browse repository at this point
Optimize lookback and subpattern matching in SourceRemapper
Goooler
committed
63b33c9
View commit details
Copy full SHA for 63b33c9
Browse repository at this point
Restore ShadowSourcesPublishArtifact and conditionally expose shadowSourcesElements
Goooler
committed
b3f6861
View commit details
Copy full SHA for b3f6861
Browse repository at this point
Populate archiveSourcesFile convention only when generateSourcesJar is enabled
Goooler
committed
2eba78c
View commit details
Copy full SHA for 2eba78c
Browse repository at this point
Unify dependency source resolution using artifactView withVariantReselection
Goooler
committed
cfee9aa
View commit details
Copy full SHA for cfee9aa
Browse repository at this point
Support custom relocators and expressions with qualified names in SourceRemapper
Goooler
committed
1379aca
View commit details
Copy full SHA for 1379aca
Browse repository at this point
Support class-only relocators in relocateSourcePath
Goooler
committed
7c4032f
View commit details
Copy full SHA for 7c4032f
Browse repository at this point
Derive generateSourcesJar convention from isSourcesPublishable in KMP
Goooler
committed
535de8a
View commit details
Copy full SHA for 535de8a
Browse repository at this point
Clarify sourcesJar handling is only needed when withSourcesJar is enabled
Goooler
committed
afb237a
View commit details
Copy full SHA for afb237a
Browse repository at this point
Add functional test and clarify replacement publishing from java component
Goooler
committed
7919f7f
View commit details
Copy full SHA for 7919f7f
Browse repository at this point
Disable standard archive tasks in replacement publishing tests
Goooler
committed
1456ffa
View commit details
Copy full SHA for 1456ffa
Browse repository at this point
Workaround for doesNotExist
Goooler
committed
75ccea9
View commit details
Copy full SHA for 75ccea9
Browse repository at this point
Move non-relocation sourcesJar tests to JavaPluginsTest and FilteringTest
Goooler
committed
298ac06
View commit details
Copy full SHA for 298ac06
Browse repository at this point
Remove redundant try-catch around artifactView in DefaultDependencyFilter
Goooler
committed
041394e
View commit details
Copy full SHA for 041394e
Browse repository at this point
Inject DefaultDependencyFilter
Goooler
committed
e9b25d4
View commit details
Copy full SHA for e9b25d4
Browse repository at this point
Internal helpers for SimpleRelocator
Goooler
committed
2057735
View commit details
Copy full SHA for 2057735
Browse repository at this point
Fast-path keyword lookup in isJavaContextValid and reuse whitespace regex
Goooler
committed
74856cf
View commit details
Copy full SHA for 74856cf
Browse repository at this point
Commits on Sep 21, 2026
Merge custom sources tests without relocation in JavaPluginsTest
Goooler
committed
5b04831
View commit details
Copy full SHA for 5b04831
Browse repository at this point
Use boundary-based context check for multi-language source relocation
Goooler
committed
1baf1f6
View commit details
Copy full SHA for 1baf1f6
Browse repository at this point
Simplify remapSource by delegating to applyToSourceContent
Goooler
committed
a39a076
View commit details
Copy full SHA for a39a076
Browse repository at this point
Simplify SimpleRelocator
Goooler
committed
c40c0b0
View commit details
Copy full SHA for c40c0b0
Browse repository at this point
Clean up ShadowPropertiesTest
Goooler
committed
126c0fb
View commit details
Copy full SHA for 126c0fb
Browse repository at this point
Clean up and parameterize source relocation tests
Goooler
committed
1f7f500
View commit details
Copy full SHA for 1f7f500
Browse repository at this point
Commits on Sep 24, 2026
Place shadow jar block after publishing block to cover more lazy cases
Goooler
committed
1010dd7
View commit details
Copy full SHA for 1010dd7
Browse repository at this point
Clean up PublishingTest
Goooler
committed
096fbb8
View commit details
Copy full SHA for 096fbb8
Browse repository at this point
Clean up SimpleRelocator
Goooler
committed
7bf983b
View commit details
Copy full SHA for 7bf983b
Browse repository at this point
Simplify ShadowJar
Goooler
committed
95cd81a
View commit details
Copy full SHA for 95cd81a
Browse repository at this point
Improve ShadowedSourcesJar and tests
Goooler
committed
5d50a58
View commit details
Copy full SHA for 5d50a58
Browse repository at this point
TODO ShadowSourcesPublishArtifact
Goooler
committed
08a13e2
View commit details
Copy full SHA for 08a13e2
Browse repository at this point
Clean up SourceRemapperTest
Goooler
committed
af63b6c
View commit details
Copy full SHA for af63b6c
Browse repository at this point
Only register archiveSourcesFile as output when generateSourcesJar is enabled
Goooler
committed
0ec7d1e
View commit details
Copy full SHA for 0ec7d1e
Browse repository at this point
Align ShadowSourcesPublishArtifact with ArchivePublishArtifact
Show description for 320e4bb
Goooler
committed
320e4bb
View commit details
Copy full SHA for 320e4bb
Browse repository at this point
Preserve non-UTF-8 source bytes in shadowed sources JAR
Show description for 0abfeb5
Goooler
committed
0abfeb5
View commit details
Copy full SHA for 0abfeb5
Browse repository at this point
Document that source changes rerun shadowJar when generateSourcesJar is enabled
Goooler
committed
67f7705
View commit details
Copy full SHA for 67f7705
Browse repository at this point
Revert "Preserve non-UTF-8 source bytes in shadowed sources JAR"
Show description for 487f3b1
Goooler
committed
487f3b1
View commit details
Copy full SHA for 487f3b1
Browse repository at this point
Revert "Align ShadowSourcesPublishArtifact with ArchivePublishArtifact"
Show description for 10db2bb
Goooler
committed
10db2bb
View commit details
Copy full SHA for 10db2bb
Browse repository at this point
Correct shadowed sources JAR docs and document its limitations
Show description for 008d6d5
Goooler
committed
008d6d5
View commit details
Copy full SHA for 008d6d5
Browse repository at this point
Merge remote-tracking branch 'origin/main' into g/20260901/sources-jar
Goooler
committed
3b604fc
View commit details
Copy full SHA for 3b604fc
Browse repository at this point
Clean up ShadowPropertiesTest
Goooler
committed
1782d8c
View commit details
Copy full SHA for 1782d8c
Browse repository at this point
Exclude module-info.java from shadowed sources JAR
Goooler
committed
6c2e7fe
View commit details
Copy full SHA for 6c2e7fe
Browse repository at this point
Simplify and speed up shadowed sources JAR processing
Show description for 82b11cc
Goooler
committed
82b11cc
View commit details
Copy full SHA for 82b11cc
Browse repository at this point
Relocate leading-slash resource paths in shadowed sources
Show description for 1bf1107
Goooler
committed
1bf1107
View commit details
Copy full SHA for 1bf1107
Browse repository at this point
Keep package declarations consistent with relocated source paths
Show description for 8422270
Goooler
committed
8422270
View commit details
Copy full SHA for 8422270
Browse repository at this point
Publish shadowed artifacts via a dedicated publication in KMP docs
Show description for cb62c03
Goooler
committed
cb62c03
View commit details
Copy full SHA for cb62c03
Browse repository at this point
Remove publishing shadowed JAR from java component as replacement
Show description for 140a359
Goooler
committed
140a359
View commit details
Copy full SHA for 140a359
Browse repository at this point
Enable sources JAR only in multi-project tests that need it
Show description for 700f7a3
Goooler
committed
700f7a3
View commit details
Copy full SHA for 700f7a3
Browse repository at this point
Remove unused artifactGJar from BasePluginTest
Goooler
committed
7ff014e
View commit details
Copy full SHA for 7ff014e
Browse repository at this point
Polish publishing documentation
Goooler
committed
8ec4e18
View commit details
Copy full SHA for 8ec4e18
Browse repository at this point
Use trimMargin for multiline string in JavaPluginsTest
Goooler
committed
a6a6468
View commit details
Copy full SHA for a6a6468
Browse repository at this point
You can’t perform that action at this time.