-
Notifications
You must be signed in to change notification settings - Fork 76
/
build.gradle
28 lines (28 loc) · 1.06 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
group 'ETL_Unicorn'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
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'
compile group: 'nz.ac.waikato.cms.weka', name: 'weka-stable', version: '3.8.0'
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20160810'
}