11 Star 67 Fork 40

aizuda / aizuda-components-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 3.07 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2023-07-19 11:36 . 升级springboot3.1.1
// 编译脚本
buildscript {
ext {
springBootVersion = "3.1.1"
mybatisPlusVersion = "3.5.3.1"
aizudaVersion = "1.0.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 = "爱组搭 ~ 低代码组件化开发平台之组件库示例"
// 项目配置
allprojects {
group "com.aizuda"
version "1.0.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}"
mavenBom "com.aizuda:aizuda-bom:${aizudaVersion}"
}
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.h2database:h2:1.4.200")
// 编译测试
dependency("javax.servlet:javax.servlet-api:3.1.0")
dependency("junit:junit:4.12")
}
}
// 依赖配置
dependencies {
// 日志
api("org.slf4j:slf4j-api")
api("org.springframework.boot:spring-boot-starter-web")
compileOnly("org.aspectj:aspectjweaver")
testImplementation("org.aspectj:aspectjweaver")
// compileOnly("javax.servlet:javax.servlet-api")
// testImplementation("javax.servlet:javax.servlet-api")
// lombok
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
// 编译测试
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("javax.servlet:javax.servlet-api")
testImplementation("junit:junit")
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
1
https://gitee.com/aizuda/aizuda-components-examples.git
git@gitee.com:aizuda/aizuda-components-examples.git
aizuda
aizuda-components-examples
aizuda-components-examples
master

搜索帮助