加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 3.03 KB
一键复制 编辑 原始数据 按行查看 历史
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin")
classpath "gradle.plugin.com.arenagod.gradle:mybatis-generator-plugin:1.4"
}
}
plugins {
id 'org.springframework.boot' version '2.2.6.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'idea'
}
group = 'vip.geeker'
version = '1.0.0'
sourceCompatibility = '1.8'
apply plugin: "com.arenagod.gradle.MybatisGenerator"
apply plugin: "idea"
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
def mybatisGeneratorCore = 'org.mybatis.generator:mybatis-generator-core:1.3.7'
def itfswMybatisGeneratorPlugin = 'com.itfsw:mybatis-generator-plugin:1.3.8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.session:spring-session-data-redis'
// implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'com.baomidou:mybatis-plus-boot-starter:3.1.2'
implementation 'com.softwareloop:mybatis-generator-lombok-plugin:1.0'
implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.2.13'
implementation 'com.deepoove:poi-tl:1.7.3'
implementation 'com.google.guava:guava:18.0'
compile group: 'net.sf.dozer', name: 'dozer', version: '5.5.1'
compile 'org.springframework.boot:spring-boot-starter-aop'
compile mybatisGeneratorCore
compile itfswMybatisGeneratorPlugin
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
compile 'com.google.code.gson:gson:2.6.2'
}
test {
useJUnitPlatform()
}
mybatisGenerator {
verbose = true
configFile = 'src/main/resources/config/generatorConfig.xml'
dependencies {
mybatisGenerator 'org.mybatis.generator:mybatis-generator-core:1.3.7'
mybatisGenerator 'org.postgresql:postgresql:42.2.6'
mybatisGenerator 'com.softwareloop:mybatis-generator-lombok-plugin:1.0'
mybatisGenerator project(':')
mybatisGenerator itfswMybatisGeneratorPlugin
mybatisGenerator mybatisGeneratorCore
}
}
tasks.withType(JavaCompile){
options.encoding="UTF-8"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化