Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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即可 | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.