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

Property applicationDistribution not recognized #133

Closed
u6f6o opened this issue Apr 24, 2015 · 2 comments · Fixed by #1224
Closed

Property applicationDistribution not recognized #133

u6f6o opened this issue Apr 24, 2015 · 2 comments · Fixed by #1224

Comments

@u6f6o
Copy link

u6f6o commented Apr 24, 2015

My project has a folder called dist that contains some stuff I'd like to include in the shadow jar. The application plugin has a property called "applicationDistribution" to address this topic. In my build.gradle I added the following line:

applicationDistribution.from(distDir){
    include "*.jpg"
}

While this is working for the application plugin, the shadow plugin seems to ignore this property.

@johnrengelman
Copy link
Collaborator

Shadow keeps it's own copySpec so that it doesn't collide with the normal applicationDistribution. Configure it like this:

shadow.applicationDistribution.from(distDir) {
  include "*.jpg"
}

@u6f6o
Copy link
Author

u6f6o commented Apr 24, 2015

Oh I see, ty. It works.

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 a pull request may close this issue.

2 participants