Skip to content

Commit 7f1aad9

Browse files
committed
把本地库依赖改用Maven仓库来做依赖!
1 parent c6149b8 commit 7f1aad9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ version = "2.11.4"
3636

3737
repositories {
3838
mavenLocal()
39-
mavenCentral()
40-
jcenter()
39+
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" } //优先使用阿里的镜像 mavenCentral()
4140
//flatDir(dirs: file('jarsDerectory'))
4241
}
4342

4443

4544
dependencies {
46-
compile files("lib/jackson-annotations-${project.version}.jar")
47-
compile files("lib/jackson-core-${project.version}.jar")
48-
compile files("lib/jackson-databind-${project.version}.jar")
45+
compile "com.fasterxml.jackson.core:jackson-core:${project.version}"
46+
compile "com.fasterxml.jackson.core:jackson-annotations:${project.version}"
47+
compile "com.fasterxml.jackson.core:jackson-databind:${project.version}"
48+
4949
//或者: compile fileTree(dir: "lib", includes: ["*.jar"])
5050
}
5151

0 commit comments

Comments
 (0)