代码拉取完成,页面将自动刷新
同步操作将从 baomidou/mybatis-mate-examples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// 编译脚本
buildscript {
ext {
springBootVersion = "2.7.0"
mybatisPlusVersion = "3.5.2"
}
// 仓库配置
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' }
}
// 依赖管理
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
dependencies {
dependency("com.baomidou:mybatis-plus-boot-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("javax.servlet:javax.servlet-api:3.1.0")
dependency("junit:junit:4.12")
}
}
// 依赖配置
dependencies {
// 日志
api("org.slf4j:slf4j-api")
// api fileTree(dir: "../libs", include: "*.jar")
api("com.baomidou:mybatis-mate-starter:1.2.6")
api("com.baomidou:mybatis-plus-boot-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_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。