Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (52 sloc) 2.52 KB
group 'DETA_CACHE'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
ext {
springBootVersion = '1.5.2.RELEASE'
}
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 group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.5.2.RELEASE'
compile("org.springframework.boot:spring-boot-starter") {
exclude module: "tomcat-embed-el"
}
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
// https://mvnrepository.com/artifact/org.bytedeco/javacpp
compile group: 'org.bytedeco', name: 'javacpp', version: '1.3.2'
// https://mvnrepository.com/artifact/org.bytedeco/javacv-platform
compile group: 'org.bytedeco', name: 'javacv-platform', version: '1.3'
compile group: 'org.bytedeco', name: 'javacv', version: '1.2'
compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.1.0-1.3'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jetty', version: '1.5.2.RELEASE'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '1.5.2.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-jdbc:1.2.2.RELEASE'
compile 'org.mybatis:mybatis-spring:1.2.2'
compile 'org.mybatis:mybatis:3.2.8'
compile 'mysql:mysql-connector-java:5.1.34'
compile 'commons-dbcp:commons-dbcp:1.4'
compile group: 'com.google.code.gson', name: 'gson', version: '2.2.4'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '1.5.2.RELEASE'
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.0.1'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: '1.5.4.RELEASE'
compile group: 'org.jboss.resteasy', name: 'resteasy-jaxrs', version: '3.1.4.Final'
compile group: 'org.json', name: 'json', version: '20160810'
compile "org.projectlombok:lombok:1.16.2"
}