1 Star 0 Fork 749

bf109/flowlong

forked from aizuda/flowlong 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.66 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2023-12-01 08:31 . 支持 jdk 1.8
// 编译脚本
buildscript {
ext {
springBootVersion = "2.7.0"
mybatisPlusVersion = "3.5.3.2"
solonVersion = "2.5.11"
}
// 仓库配置
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()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
description = "FlowLong BPM"
// 项目配置
allprojects {
group "com.flowlong"
version "0.0.1"
}
// 子模块配置
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: "io.spring.dependency-management"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.warnings = false
}
tasks.named('test') {
useJUnitPlatform()
}
// 仓库配置
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' }
maven { url 'https://repo.spring.io/snapshot' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
mavenCentral()
}
// 依赖管理
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
dependencies {
dependency("mysql:mysql-connector-java:8.0.32")
// orm db
dependency("com.baomidou:mybatis-plus-boot-starter:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-core:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-annotation:${mybatisPlusVersion}")
dependency("com.baomidou:mybatis-plus-extension:${mybatisPlusVersion}")
}
}
// 依赖配置
dependencies {
// 日志
api("org.slf4j:slf4j-api")
// lombok
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
// junit
testCompileOnly("org.springframework.boot:spring-boot-starter-test")
}
tasks.named('test') {
useJUnitPlatform()
}
// 编译环境 JDK-1.8+
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
mavenJava(MavenPublication) {
groupId = "$project.group"
artifactId = "$project.name"
version = "$project.version"
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
}
// 编译任务忽略案例模块
afterEvaluate { project ->
if (project.name == 'flowlong-solon-example' || project.name == 'flowlong-spring-boot-example') {
project.tasks.all {
it.enabled = false
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhanggaoqiangcxy/flowlong.git
git@gitee.com:zhanggaoqiangcxy/flowlong.git
zhanggaoqiangcxy
flowlong
flowlong
dev

搜索帮助