1 Star 0 Fork 209

Eric/mybatis-mate-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.13 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2024-05-28 21:48 . 升级 1.3.6 支持 jsqParser 4.9+
// 编译脚本
buildscript {
ext {
springBootVersion = "3.3.0"
mybatisPlusVersion = "3.5.6"
}
// 仓库配置
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("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.6")
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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eric-han/mybatis-mate-examples.git
[email protected]:eric-han/mybatis-mate-examples.git
eric-han
mybatis-mate-examples
mybatis-mate-examples
master

搜索帮助