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

Run task fails when opening resource-only package #70

Open
mkroening opened this issue Mar 14, 2019 · 2 comments
Open

Run task fails when opening resource-only package #70

mkroening opened this issue Mar 14, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@mkroening
Copy link

I need to open up a resource package not containing any classes, but the run task fails.
Running the build task and then executing the distribution will work.

A workaround is creating a dummy class in the package.

I stumbled onto this bug while experimenting with OptaPlanner on the module path: mkroening/optaplanner-modulepath-example#2

I also modified the test-project to show this behaviour: mkroening@48c5793
Running $ ../gradlew :greeter.runner:run will fail, but $ ../gradlew :greeter.runner:build and then executing the distribution succeeds.

@Ealrann
Copy link
Contributor

Ealrann commented Oct 13, 2019

I have the same problem, gradle run fail ("Package test.main.asset not found in module"), but gradle installDist generate a working application.

If it can help, I made a minimal test project for this issue:
https://github.com/Ealrann/gradleTestResourcePackage.git

Edit: Ok, I forgot about that, but there is already an issue about this topic on the gradle github:
gradle/gradle#4733

@big-andy-coates
Copy link
Collaborator

big-andy-coates commented Feb 17, 2024

I've seen this too. I'm not sure if this is an issue with this plugin or something else. Happy to accept a PR to fix this issue.

@big-andy-coates big-andy-coates added the help wanted Extra attention is needed label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants