Discussion:
exclude some dependencies from gradleApi() dependency
Rice Yeh
2013-12-09 09:10:11 UTC
Permalink
In my build.gradle, I have a dependency on gradleApi() like below:

compile gradleApi()

Then I find all jars user GRADLE_HOME/lib are included. Is there a way to
exclude some jars I do not need?

Rice



--
View this message in context: http://gradle.1045684.n5.nabble.com/exclude-some-dependencies-from-gradleApi-dependency-tp5712103.html
Sent from the gradle-user mailing list archive at Nabble.com.
Rice Yeh
2013-12-09 16:26:25 UTC
Permalink
To my surprise is the gradle API includes all the jars under the
${GRADLE_HOME}/lib/plugins directory, in which thre are many other 3rd-party
jars like antlr-2.7.7.jar, jetty-6.1.25.jar, etc.. These seems dictate that
a version of gradle can only support some version of 3rd-party frameworks.
Should not gradle's api be 'micro-kernel'?

Rice



--
View this message in context: http://gradle.1045684.n5.nabble.com/exclude-some-dependencies-from-gradleApi-dependency-tp5712103p5712104.html
Sent from the gradle-user mailing list archive at Nabble.com.
Luke Daley
2013-12-09 17:43:25 UTC
Permalink
Post by Rice Yeh
compile gradleApi()
Then I find all jars user GRADLE_HOME/lib are included. Is there a way to
exclude some jars I do not need?
There currently isn't unfortunately.

Would you mind raising this via forums.gradle.org (as this mailing list
is no longer active)? It would help if you could mention the particular
dependency that is giving you trouble.
--
Luke Daley
Principal Engineer
http://gradleware.com
Loading...