Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
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 3.87 KB
Copy Edit Web IDE Raw Blame History
王琪 authored 2020-04-04 22:20 . 清除用户浏览记录
plugins {
// 使用 Spring Boot Gradle Plugin Gradle插件
id 'org.springframework.boot' version '2.1.8.RELEASE'
// 使用 io.spring.dependency-management Gradle插件,从而可以省略 bom 中声明依赖的版本号
// A Gradle plugin that provides Maven-like dependency management functionality
// https://plugins.gradle.org/plugin/io.spring.dependency-management
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
group = 'com.huizhaofang'
// 版本格式:主版本号.子版本号.修正版本号.编译版本号
// 版本号递增规则如下:
// 主版本号:当你做了不兼容的 API 修改,
// 子版本号:当你做了向下兼容的功能性新增,
// 修正版本号:当你做了向下兼容的问题修正,
// 编译版本号:编译器在编译过程中自动生成的,我们只定义其格式,并不进行人为控制;其中包含日期版本号(mmddyy)和希腊字母版本号,目前手动修改
// 注意:git对应tag与version保持一致
version = '1.2.12.030520_beta'
sourceCompatibility = '1.8'
targetCompatibility = 1.8
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'application'
mainClassName = 'com.diploma.project.aiqiyi.AiqiyiServerApp'
repositories {
maven {
name 'aliyun maven'
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
// 定制管理版本
ext {
set('springCloudVersion', "Greenwich.RELEASE")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.retry:spring-retry:1.2.4.RELEASE'
implementation 'org.springframework.session:spring-session-core:2.1.8.RELEASE'
implementation 'org.springframework:spring-jdbc'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.0'
implementation 'tk.mybatis:mapper-spring-boot-starter:1.1.2'
implementation 'com.github.pagehelper:pagehelper:4.1.0'
implementation 'org.mybatis.generator:mybatis-generator-core:1.3.7'
implementation 'com.alibaba:fastjson:1.2.61'
annotationProcessor 'org.projectlombok:lombok:1.18.2'
implementation 'org.projectlombok:lombok:1.18.2'
testImplementation 'org.projectlombok:lombok:1.18.2'
// https://mvnrepository.com/artifact/com.jcraft/jsch
implementation 'com.jcraft:jsch:0.1.55'
implementation 'com.google.guava:guava:18.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'org.zeroturnaround:zt-zip:1.13'
implementation 'com.squareup.okhttp3:okhttp:4.2.0'
implementation 'org.xhtmlrenderer:flying-saucer-pdf:9.0.7'
runtimeOnly 'mysql:mysql-connector-java'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.apache.commons:commons-lang3:3.5'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.httpcomponents:httpclient:4.5'
implementation 'org.apache.httpcomponents:httpcore:4.4.4'
implementation 'commons-beanutils:commons-beanutils:1.8.3'
implementation fileTree(dir:'libs',include:['*.jar'])
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
task mybatisGenerator(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'org.mybatis.generator.api.ShellRunner'
// arguments to pass to the application
args '-configfile', 'src/main/resources/generator.xml'
}

Comment ( 0 )

Sign in for post a comment