-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow farm/webapp task to include dependencies from repo #13
Comments
Hello, I'll try to implement this feature. |
I've added this feature into current snapshot:
Do not forget to add
in |
I will attach this to the issue, but I wanted to email you. It failed. I ran: `gradle --refresh-dependencies clean farmIntegrationTest ` I am running with 1.2.6-SNAPSHOT from the oss.jfrog.org artifactory that is the May 26th build: [http://oss.jfrog.org/oss-snapshot-local/ru/shadam/gretty/gretty/1.2.6-SNAPSHOT/gretty-1.2.6-20160526.001410-15.jar] I do have an included webapp that is in the project that did work with 1.2.4 and 1.2.5. I may be missing something in the webapp line that contains the protected-web-app (problem line is in bold):
Here is the output:
I am attaching build.gradle, settings.gradle, and gradle.properties. |
I can suggest you to remove
line from your build.gradle. It's really not nessessary if you're using As for the bug it looks like version clash in classpath that removing |
Fixed in shapshot |
This issue is a possible duplicate of [https://github.com/akhikhl/issues/72].
With the farm/webapp task you cannot include additional dependencies other than what is in the maven dependency. Even if the webapp has a gradle.build, the user may not have access to add an additional dependency.
To work around this issue, I had to do download the dependency and add it to the classpath of the webapp:
farm { webapp "org.jasig.cas:cas-server-webapp:$cas_version", contextPath: '/cas', inplace: true, classPath: ["${project.projectDir}/etc/jars/cas-server-support-rest-4.2.1.jar"] ... }
These additional dependencies add behavior to the webapp that have been left out because the majority of users do not use this functionality.
I would like to do something like this:
farm { webapp "org.jasig.cas:cas-server-webapp:$cas_version", contextPath: '/cas', inplace: true, dependencies { "org.jasig.cas:cas-server-support-rest:4.2.1" } ... }
The text was updated successfully, but these errors were encountered: