1 Star 3 Fork 3

WeBankBlockchain/Governance-Account

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
毛加 提交于 2022-07-11 16:57 . upgrade libs
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/WeBankBlockchain/Governance-Account.git
git@gitee.com:WeBankBlockchain/Governance-Account.git
WeBankBlockchain
Governance-Account
Governance-Account
master

搜索帮助