-
Notifications
You must be signed in to change notification settings - Fork 67
/
build.gradle
29 lines (29 loc) · 1 KB
/
build.gradle
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
group 'DETA_DataBase'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
ext {
}
repositories {
//mavenCentral()
def REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public/'
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL."
remove repo
}
}
}
maven {
url REPOSITORY_URL
}
}
dependencies {
compile 'commons-dbcp:commons-dbcp:1.4'
compile group: 'com.google.code.gson', name: 'gson', version: '2.2.4'
compile group: 'org.json', name: 'json', version: '20160810'
// https://mvnrepository.com/artifact/cpdetector/cpdetector
compile group: 'cpdetector', name: 'cpdetector', version: '1.0.4'
}