代码拉取完成,页面将自动刷新
plugins {
id 'org.springframework.boot' version '2.7.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'eclipse'
id 'idea'
id 'com.github.sherter.google-java-format' version '0.8'
id 'jacoco'
}
group = 'com.webank'
version = '1.0.0'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
allowInsecureProtocol = true
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
}
test {
useJUnitPlatform()
}
def log4j_version="2.16.0"
List logger = [
"org.apache.logging.log4j:log4j-api:$log4j_version",
"org.apache.logging.log4j:log4j-to-slf4j:$log4j_version",
]
dependencies {
implementation logger
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.9.0') {
exclude group: 'org.slf4j'
}
implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
implementation 'commons-codec:commons-codec:1.15'
}
googleJavaFormat {
options style: 'AOSP'
source = sourceSets*.allJava
include '**/*.java'
}
verifyGoogleJavaFormat {
source = sourceSets*.allJava
include '**/*.java'
}
bootJar {
destinationDir file('dist')
archiveName project.name + version + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
exclude '**/*.yml'
doLast {
copy {
from file('src/main/resources/')
into 'dist/config'
}
}
}
jar {
enabled = true
destinationDir file('dist')
archiveName project.name + version + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
//exclude '**/spring.factories'
doLast {
copy {
from file('src/main/resources/')
into 'dist/config'
}
copy {
from configurations.runtime
into 'dist/lib'
}
}
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
xml.destination file("$buildDir/jacocoXml.xml")
html.destination file("$buildDir/jacocoHtml")
}
}
check.dependsOn jacocoTestReport
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。