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

Resources directory is not added to gauge-java's classpath #6

Open
igstan opened this issue Apr 23, 2018 · 1 comment
Open

Resources directory is not added to gauge-java's classpath #6

igstan opened this issue Apr 23, 2018 · 1 comment

Comments

@igstan
Copy link

igstan commented Apr 23, 2018

I was trying to add logging using callback to my project, which uses the gauve-java plugin. Unfortunately, I wasn't able to configure it using src/main/resources/logback.xml because the src/main/resources path is not added to the classpath sent to gauge-java.

Fortunately, I found an workaround by adding the following to my build.gradle file:

sourceSets {
  main {
    // This will put logback.xml on the classpath used by gauge-java.
    output.resourcesDir = "build/classes/main"
  }
}

However, I don't find this a satisfying solution. I believe the plugin should handle this.

@igstan
Copy link
Author

igstan commented Apr 23, 2018

I actually took a stab at this, but I don't have much experience with Gradle so I had no idea how to test the plugin locally.

@manupsunny manupsunny transferred this issue from manupsunny/gauge-gradle-plugin Mar 21, 2019
@chadlwilson chadlwilson changed the title Resources directory is not added to gauve-java's classpath Resources directory is not added to gauge-java's classpath Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant