Skip to content

Commit

Permalink
Gradle依赖排除
Browse files Browse the repository at this point in the history
  • Loading branch information
scalad committed Apr 26, 2017
1 parent 359590a commit e6e4436
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Gradle_Denpendencies_Exclude/README.md
@@ -0,0 +1,19 @@
## Gradle排除依赖关系

在IDE中发现了C3P0的依赖,但是在build.gradle并没有手动导入,所以说某个jar包依赖了,在STS中没有像Maven可以直接查看依赖的窗口

可以在命令行下查看整个项目的依赖关系

gradle dependencies

![](https://github.com/silence940109/Java/blob/master/Gradle_Denpendencies/image/1.png)

然后我们就可以在build.gradle去除该依赖

compile ('org.quartz-scheduler:quartz:2.2.1'){
//排除c3p0的依赖
exclude group:'c3p0',module:"c3p0"
}

重新Gradle Refresh Gradle Project即可

Binary file added Gradle_Denpendencies_Exclude/image/1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e6e4436

Please sign in to comment.