configurations {
all {
exclude module: "junit"
// 默认24小时 这样配置jar包会直接去配置的仓库拿
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
compile.exclude module: "spring-boot-starter-tomcat"
}
apply plugin: 'java-library'
dependencies {
// 方式一 这种方式引进的包 其他项目无法查看该包
implementation ('xxxx') {
changing = true
}
// 方式二 这种方式引进的包 其他项目可查看该包
compile group: 'com.lidig',name: 'surveillance-api',version: '1.0.0-SNAPSHOT', changing: true
}