135 Star 1.3K Fork 168

baomidou / mybatis-mate-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
// 编译脚本
buildscript {
ext {
springBootVersion = "3.2.2"
mybatisPlusVersion = "3.5.5"
}
// 仓库配置
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/spring' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://repo.spring.io/release' }
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
description = "MybatisPlus 企业模块版"
// 项目配置
allprojects {
group "mybatis.mate"
version "1.0"
}
// 子模块配置
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: "io.spring.dependency-management"
apply plugin: 'org.springframework.boot'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.warnings = false
}
// 仓库配置
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/spring' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://repo.spring.io/release' }
maven { url 'https://repo.spring.io/milestone' }
mavenCentral()
}
// 依赖管理
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
dependencies {
dependency("com.baomidou:mybatis-plus-spring-boot3-starter:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-core:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-extension:${mybatisPlusVersion}")
dependency("com.github.jsqlparser:jsqlparser:4.2")
dependency("org.modelmapper:modelmapper:2.4.5")
dependency("org.aspectj:aspectjweaver:1.9.7")
dependency("org.jasypt:jasypt:1.9.3")
dependency("org.javers:javers-core:6.5.3")
dependency("com.h2database:h2:1.4.200")
dependency("org.postgresql:postgresql:42.3.1")
dependency("mysql:mysql-connector-java:8.0.26")
// 编译测试
dependency("junit:junit:4.12")
}
}
// 依赖配置
dependencies {
// 日志
api("org.slf4j:slf4j-api")
// api fileTree(dir: "../libs", include: "*.jar")
// spring boot 2.X 请用 1.3.2-sp2 版本
api("com.baomidou:mybatis-mate-starter:1.3.4")
api("com.baomidou:mybatis-plus-spring-boot3-starter")
api("org.springframework.boot:spring-boot-starter-web")
api("org.springframework.boot:spring-boot-starter-jdbc")
// lombok
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
}
// 编译环境 JDK1.8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
1
https://gitee.com/baomidou/mybatis-mate-examples.git
git@gitee.com:baomidou/mybatis-mate-examples.git
baomidou
mybatis-mate-examples
mybatis-mate-examples
master

搜索帮助