1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- plugins {
- id 'groovy'
- id 'org.springframework.boot' version '2.6.0'
- id 'io.spring.dependency-management' version '1.0.15.RELEASE'
- }
- group = 'com.jd.brume'
- version = '0.0.1-SNAPSHOT'
- sourceCompatibility = '1.8'
- repositories {
- // mavenCentral()
- maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
- maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
- maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
- maven { url 'https://plugins.gradle.org/m2/' }
- mavenCentral()
- }
- jar{
- manifest {
- attributes 'Main-Class': 'com.jd.brume.BrumeApplication'
- }
- }
- dependencies {
- implementation 'org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE'
- implementation 'org.springframework.boot:spring-boot-starter-web'
- implementation 'org.springframework.boot:spring-boot-starter-aop'
- implementation 'org.codehaus.groovy:groovy'
- implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.3'
- implementation 'mysql:mysql-connector-java'
- implementation 'cn.hutool:hutool-all:5.8.12'
- implementation 'org.springframework.boot:spring-boot-starter-validation'
- implementation 'org.bouncycastle:bcprov-jdk15to18:1.72'
- implementation 'org.springframework.boot:spring-boot-starter-data-redis'
- implementation 'com.alibaba:fastjson:2.0.26'
- implementation 'org.apache.poi:poi-ooxml:5.2.2'
- implementation 'org.apache.commons:commons-compress:1.21'
- implementation fileTree(dir:'lib',includes:['*jar'])
- testImplementation 'org.springframework.boot:spring-boot-starter-test'
- }
- tasks.named('test') {
- useJUnitPlatform()
- }
- //编译groovy代码时采用 UTF-8
- tasks.withType(GroovyCompile) {
- groovyOptions.encoding = "UTF-8"
- }
- //编译JAVA文件时采用UTF-8
- tasks.withType(JavaCompile) {
- options.encoding = "UTF-8"
- }
|