/* * This file was generated by the Gradle 'init' task. */ //声明gradle脚本自身需要使用的资源,优先执行 buildscript { ext { springBootVersion = '2.2.4.RELEASE' } repositories { maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } maven { url 'https://maven.aliyun.com/repository/spring/' } jcenter() mavenCentral() } dependencies { classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" } // java编译的时候缺省状态下会因为中文字符而失败 } //allprojects 所有项目共享的配置 allprojects { apply plugin: 'idea' apply plugin: 'java-library' apply plugin: 'org.springframework.boot' //使用springboot插件 apply plugin: 'io.spring.dependency-management' //版本管理插件 version = '1.0' sourceCompatibility = 8 targetCompatibility = 8 } repositories { mavenLocal() maven { url = 'http://maven.aliyun.com/nexus/content/groups/public/' } maven { url = 'http://repo.maven.apache.org/maven2' } } dependencies { testCompile 'org.springframework.boot:spring-boot-starter-test' compile 'org.springframework.boot:spring-boot-starter' compile 'org.springframework.boot:spring-boot-starter-aop' compile 'org.springframework.boot:spring-boot-starter-web' compile 'org.springframework.boot:spring-boot-devtools' compile 'org.springframework.boot:spring-boot-starter-security' compile 'org.springframework.boot:spring-boot-starter-jdbc' //mail implementation 'org.springframework.boot:spring-boot-starter-mail' compile 'org.apache.commons:commons-pool2:2.7.0' compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3' compile 'com.github.pagehelper:pagehelper-spring-boot-starter:1.3.0' compile 'com.alibaba:druid-spring-boot-starter:1.2.4' compile 'org.apache.commons:commons-lang3:3.9' compile 'commons-io:commons-io:2.5' compile 'commons-fileupload:commons-fileupload:1.3.3' compile 'eu.bitwalker:UserAgentUtils:1.21' compile 'com.alibaba:fastjson:1.2.75' compile 'org.springframework:spring-context-support:5.2.12.RELEASE' compile 'io.jsonwebtoken:jjwt:0.9.1' compile 'io.springfox:springfox-swagger2:2.9.2' compile 'io.swagger:swagger-annotations:1.5.21' compile 'io.swagger:swagger-models:1.5.21' compile 'io.springfox:springfox-swagger-ui:2.9.2' compile 'com.github.oshi:oshi-core:5.3.6' compile 'org.apache.poi:poi-ooxml:4.1.2' compile 'org.apache.velocity:velocity:1.7' compile 'com.github.penggle:kaptcha:2.3.2' compile 'mysql:mysql-connector-java:8.0.22' //lombok implementation 'org.projectlombok:lombok:1.18.12' // commons implementation 'commons-lang:commons-lang:2.6' // OSS implementation 'com.aliyun.oss:aliyun-sdk-oss:3.10.2' // okhttp implementation 'com.squareup.okhttp3:okhttp:3.10.0' //mybatis-plus implementation 'com.baomidou:mybatis-plus-boot-starter:3.4.2' //mybatis-plus-generator implementation 'com.baomidou:mybatis-plus-generator:3.3.2' //freemarker implementation 'org.springframework.boot:spring-boot-starter-freemarker' implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'org.bitcoinj:bitcoinj-core:0.14.7' compile 'org.apache.httpcomponents:httpclient:4.5.6' compile 'org.apache.httpcomponents:httpcore:4.4.14' } group = 'cn.sliyun' version = '0.1.0' description = 'system' sourceCompatibility = '1.8' tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }