加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
夏悸 提交于 2024-02-18 14:32 . refactor: 更新node下载地址
group 'cn.gson.financial'
version '0.1'
buildscript {
ext {
springBootVersion = '2.3.12.RELEASE'
}
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
configure(subprojects.findAll { !it.name.contains('front-end') }) {
apply plugin: 'java'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
}
dependencies {
compileOnly('org.projectlombok:lombok:1.18.6')
implementation("org.springframework.boot:spring-boot-starter-aop:${springBootVersion}")
compileOnly("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
implementation('org.apache.commons:commons-lang3:3.8.1')
implementation('org.apache.commons:commons-io:1.3.2')
implementation('commons-codec:commons-codec:1.12')
annotationProcessor 'org.projectlombok:lombok:1.18.6'
}
}
task independentBuild(dependsOn: ['front-end:build', 'bs-server:bootJar']) {
group = 'build'
description = '独立编译输出'
def modules = ['bs-server']
doLast {
delete("${project.projectDir}/build")
copy {
from fileTree("${project.projectDir}/front-end/dist")
into("${project.projectDir}/build/front-end")
}
modules.each { target ->
copy {
from fileTree("${project.projectDir}/${target}/build/libs")
into("${project.projectDir}/build/${target}")
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化