Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
build.gradle 2.18 KB
Copy Edit Web IDE Raw Blame History
Jdonee authored 2017-05-23 10:35 . 1、升级依赖。
buildscript {
ext {
springBootVersion = '1.5.3.RELEASE'
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "http://www.riversdm.com:9090/nexus/content/groups/public/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
//编译时指定编码
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
baseName = 'sbs-shiro-redis'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "http://www.riversdm.com:9090/nexus/content/groups/public/"
}
}
//测试时指定编码
test {
systemProperty "file.encoding", "UTF-8"
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.2.0')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('org.springframework.session:spring-session')
compile('org.springframework.boot:spring-boot-configuration-processor')
compile('org.projectlombok:lombok:1.16.16')
compile('com.google.guava:guava:21.0')
compile('org.apache.commons:commons-lang3:3.4')
compile('org.apache.shiro:shiro-spring:1.3.2')
compile('org.apache.shiro:shiro-aspectj:1.3.2')
compile('org.apache.shiro:shiro-quartz:1.3.2')
compile('mysql:mysql-connector-java')
compile('com.alibaba:druid:1.0.28')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.thymeleaf:thymeleaf:3.0.2.RELEASE')
compile('org.thymeleaf:thymeleaf-spring4:3.0.2.RELEASE')
compile('nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:2.2.1')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-tomcat')
compile('com.github.theborakompanioni:thymeleaf-extras-shiro:2.0.0')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}

Comment ( 0 )

Sign in for post a comment