1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/WeBank-WeBASE-Solidity-Security

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
build.gradle 2.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
v_sflkchen Отправлено 08.04.2020 11:26 9a460a5
version '1.0'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
// In this section you declare where to find the dependencies of your project
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/"}
mavenLocal()
mavenCentral()
}
def springboot_version="2.1.10.RELEASE"
List springboot = [
"org.springframework.boot:spring-boot-starter-web:$springboot_version",
"org.springframework.boot:spring-boot-starter-log4j2:$springboot_version"
]
List jaxb = [
"javax.xml.bind:jaxb-api:2.3.0",
"com.sun.xml.bind:jaxb-impl:2.3.0",
"com.sun.xml.bind:jaxb-core:2.3.0",
"javax.activation:activation:1.1.1"
]
List lombok = [
"org.projectlombok:lombok:1.18.2"
]
List swagger = [
'io.springfox:springfox-swagger2:2.8.0',
'io.springfox:springfox-swagger-ui:2.8.0'
]
List jackson = [
"com.fasterxml.jackson.core:jackson-databind:2.10.0",
"com.fasterxml.jackson.module:jackson-module-parameter-names:2.10.0",
"com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.0",
"com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.0"
]
List test = [
"org.springframework.boot:spring-boot-starter-test:$springboot_version"
]
dependencies {
compile springboot,jaxb,swagger,jackson
compile "org.apache.commons:commons-lang3:3.8.1"
compile "com.alibaba:fastjson:1.2.67"
compile lombok
annotationProcessor lombok
testCompile test
}
configurations {
all*.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
all*.exclude group: 'log4j', module: 'log4j'
all*.exclude group: 'org.ow2.asm', module: 'asm'
all*.exclude group: 'jline', module: 'jline'
all*.exclude group: 'com.google.protobuf', module: 'protobuf-java'
all*.exclude group: 'javax.annotation', module: 'javax.annotation-api'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
clean {
delete 'dist'
delete 'build'
delete 'log'
delete 'temp'
}
jar {
destinationDir file('dist/apps')
archiveName project.name + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
doLast {
copy {
from file('src/main/resources/')
into 'dist/conf'
}
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('.').listFiles().findAll{File f -> (f.name.endsWith('.sh') || f.name.endsWith('.env'))}
into 'dist'
}
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/WeBank-WeBASE-Solidity-Security.git
git@api.gitlife.ru:oschina-mirror/WeBank-WeBASE-Solidity-Security.git
oschina-mirror
WeBank-WeBASE-Solidity-Security
WeBank-WeBASE-Solidity-Security
master