1 Star 0 Fork 16

裴永余 / WeBASE-Front

forked from WeBank / WeBASE-Front 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 3.83 KB
一键复制 编辑 原始数据 按行查看 历史
CodingCattwo 提交于 2019-11-14 11:32 . update fastjson to 1.2.60
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 {
mavenCentral()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://dl.bintray.com/ethereum/maven/' }
maven { url 'http://repo.typesafe.com/typesafe/maven-releases/' }
mavenLocal()
}
def spring_version="4.3.16.RELEASE"
List spring =[
"org.springframework:spring-core:$spring_version",
"org.springframework:spring-beans:$spring_version",
"org.springframework:spring-context:$spring_version",
"org.springframework:spring-tx:$spring_version",
"org.springframework:spring-web:$spring_version",
"org.springframework:spring-webmvc:$spring_version",
"org.springframework:spring-jdbc:$spring_version"
]
def spring_boot_version="1.5.9.RELEASE"
List spring_boot =[
"org.springframework.boot:spring-boot-starter-web:$spring_boot_version",
"org.springframework.boot:spring-boot-autoconfigure:$spring_boot_version",
"org.springframework.boot:spring-boot-configuration-processor:$spring_boot_version",
"org.springframework.boot:spring-boot-starter-data-jpa:$spring_boot_version",
//"org.springframework.boot:spring-boot-starter-log4j2:$spring_boot_version"
]
List swagger = [
'io.springfox:springfox-swagger2:2.8.0',
'io.springfox:springfox-swagger-ui:2.8.0'
]
def log4j_version="2.9.0"
List logger = [
"org.apache.logging.log4j:log4j-api:$log4j_version",
"org.apache.logging.log4j:log4j-core:$log4j_version",
"org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version",
"org.apache.logging.log4j:log4j-web:$log4j_version",
"org.slf4j:jcl-over-slf4j:1.7.12"
]
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"
]
dependencies {
compile spring,spring_boot,swagger,logger,jaxb
compile 'org.fisco-bcos:web3sdk:2.0.5'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.8'
compile 'com.alibaba:fastjson:1.2.60'
compile 'com.h2database:h2:1.4.197'
compile 'org.fusesource:sigar:1.6.4'
annotationProcessor 'org.projectlombok:lombok:1.18.6'
compile 'org.projectlombok:lombok:1.18.2'
compile group: 'com.github.jsqlparser', name: 'jsqlparser', version: '2.0'
testCompile 'junit:junit:4.12',
'org.springframework.boot:spring-boot-starter-test:1.5.9.RELEASE',
'com.github.macdao:moscow:0.1.0',
'com.squareup.okhttp3:okhttp:3.1.2'
}
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: 'com.github.jnr', module: 'jnr-posix'
all*.exclude group: 'com.mchange', module: '*'
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
clean {
delete 'dist'
delete 'build'
delete 'log'
}
jar {
destinationDir file('dist/apps')
archiveName project.name + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
doLast {
copy {
from file('src/main/resources/')
into 'dist/conf_template'
exclude '**/static'
}
copy {
from file('src/main/resources/static')
into 'dist/static'
}
copy {
from file('report/')
into 'dist/report'
}
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('.').listFiles().findAll{File f -> (f.name.endsWith('.sh') || f.name.endsWith('.env'))}
into 'dist'
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/magic-codex/WeBASE-Front.git
git@gitee.com:magic-codex/WeBASE-Front.git
magic-codex
WeBASE-Front
WeBASE-Front
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891