代码拉取完成,页面将自动刷新
plugins {
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'com.zzzn'
version = ''
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
apply plugin: 'distribution'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.12'
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-eureka-client', version: '3.0.2'
}
task copyPackage(type: Copy) {
from('build/libs/')
into('build/package')
}
task copyConfig(type: Copy) {
from('config/logback-spring.xml')
into('build/package/config')
}
task copyYml(type: Copy) {
from('src/main/resources/application.yml')
into('build/package/config')
}
task copySh(type: Copy) {
from('start.sh', 'stop.sh')
into('build/package')
}
task copyReadMe(type: Copy) {
from('README.md')
into('build/package')
}
//把上述的task串联起来
task prepareFile(dependsOn: [
'copyPackage',
'copyConfig',
'copyYml',
'copySh',
'copyReadMe'
]) {}
distributions {
monitor {
archivesBaseName = 'rhtx'
contents {
from { 'build/package' }
}
}
}
monitorDistTar.dependsOn 'prepareFile'
monitorDistTar.compression = Compression.GZIP
monitorDistTar.extension = 'tar'
task buildTarget(dependsOn: [
monitorDistTar
]) {}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。