Ong of the snow

Gradle dependency exclusion

There is a problem with fine-grained exclusion, however, as shown above, dependencies are not filtered out when published to Maven private.
After carefully trying out all the exclusions described in the Gradle documentation, you can see that global dependencies can be filtered for each dependency when published to Maven private server.
Fine-grained dependency exclusion for individual dependencies can also be written as follows with filtering:
compile (“com.alibaba:dubbo:${dubboVersion}”) {
    exclude group:’org.springframework’, module: ‘spring’
}
Gradle uploads and publishes gradle uploads. Gradle uploads and publishes gradle uploads. Gradle uploads and publishes gradle uploads.
DeployerJars “org. Apache maven. Wagon: wagon – HTTP: 2.2”
There are some internal bugs. Currently, the above method is recommended.

Posted on 2015-08-18 09:58 Fly on snow read (2427) Comments (1) edit my favorite


comments

# 1 / f,33571202016/1/31 1:21:38 2016-01-31 01:21 Zhang Dong  






Docs.gradle.org/current/jav…
























Support (0)
Against (0)

Refresh the comments
Refresh the page
Return to the top
The login
registered
access
Latest IT News



Windows 10 introduces more Unix tools



Tencent “killed the whole family barrel” : the tycoon also has a son



Wechat moments screen donations every year, especially this year



Making chips is a close call, but Huawei has no trial and error



Ford hasn’t given up on gas cars yet, and autonomous driving is starting with hybrids



More news…
Latest Knowledge Base articles



Step into the cloud



Threads and processes from an operating system perspective



The path to software testing transformation



Look inside and outside the door



Avenue to simple, the workplace to do things to do management



More knowledge base articles…

< In December 2017 >
day one two three four five six
26 27 28 29 30 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6

navigation

  • Blog garden
  • Home page
  • New essays
  • contact
  • To subscribe to
  • management

statistical

  • Essay – 60
  • The article – 0
  • Comments – 3
  • References – 0

The announcement

Ong of the snow



Five years and one month



2



1
+ add attention

search




Commonly used links

  • My essay
  • My comments
  • I participate in
  • The latest comments
  • My label

My label

  • logstash(5)
  • java2d(2)
  • mysql(2)
  • mysql bigint unsigned(1)
  • sigar(1)
  • slf4j(1)
  • For springmvc cross-domain post + json (1)
  • visualvm(1)
  • zookeeper ubuntu(1)
  • Concurrent (1)
  • More and more

Classification of essays

  • BI(1)
  • gradle(2)
  • maven(5)
  • OSGi(2)
  • python(2)
  • RPC(2)
  • Spring(2)
  • Basic Notes (26)
  • Log Analysis (7)

Archives of essays

  • December 2017 (2)
  • November 2017 (4)
  • October 2017 (2)
  • September 2017 (1)
  • August 2017 (1)
  • July 2016 (1)
  • June 2016 (1)
  • May 2016 (1)
  • December 2015 (1)
  • October 2015 (1)
  • September 2015 (2)
  • August 2015 (3)
  • July 2015 (1)
  • June 2015 (2)
  • May 2015 (13)
  • April 2015 (6)
  • March 2015 (1)
  • February 2015 (2)
  • December 2014 (1)
  • August 2014 (1)
  • April 2014 (5)
  • March 2014 (8)

The latest comments

  • 1. Re:Java image processing (A) image synthesis
  • Hello, is there a complete code? Thank you
  • –DreamSea530
  • 2. Re: Ubuntu14 Zookeeper deployment 3.4.6 Failed to Start
  • thank you
  • –jamesfuxk
  • Re: Gradle dependency exclusion
  • Official documentation seems to also said the second, ModuleDependency (Gradle API 2.10) official example of writing is the compile (‘ org. Hibernate: hibernate: 3.1 ‘) {…
  • – Zhang Dong

Reading leaderboards

  • 1. About SpringMVC Cross-domain (19143)
  • 2. Regular expressions do not contain specific strings (4901)
  • 3. Gradle dependency Exclusion (2427)
  • 4. Slf4j conflict (2349)
  • 5. Analysis of tomcat startup latency in Ubuntu (1398)

Review charts

  • Gradle dependency exclusion (1)
  • 3. Ubuntu14 Zookeeper Deployment Failed (1)
  • 3. Java Image processing (I) Image synthesis (1)

Recommended leaderboard