1 Star 0 Fork 0

左手微笑/hfw

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
ligson 提交于 2016-04-28 10:31 . upload设置
subprojects {
//插件
apply plugin: 'java'
apply plugin: "idea"
apply plugin: 'maven'
//jdk编译版本
sourceCompatibility = 1.8
repositories {
maven { url "http://nexus.eatuo.com:81/content/groups/public/" }
mavenCentral()
}
//参考配置http://central.sonatype.org/pages/gradle.html
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://nexus.eatuo.com:81/content/repositories/lecxe/") {
authentication(userName: "deployment", password: "deployment")
}
snapshotRepository(url: "http://nexus.eatuo.com:81/content/repositories/snapshots/") {
authentication(userName: "deployment", password: "deployment")
}
}
}
}
ext {
slf4jVersion = "1.7.14"
logbackVersion = "1.1.3"
guavaVersion = "19.0"
fastjsonVersion = "1.2.7"
junitVersion = "4.9"
springVersion = "4.2.5.RELEASE"
bcVersion = "1.46"
}
dependencies {
//slf4j配置
compile "org.slf4j:slf4j-api:${slf4jVersion}"
compile("ch.qos.logback:logback-classic:${logbackVersion}") {
exclude(group: "org.slf4j")
}
compile "org.slf4j:log4j-over-slf4j:${slf4jVersion}"
//google java工具类
compile "com.google.guava:guava:${guavaVersion}"
//fastjson
compile "com.alibaba:fastjson:${fastjsonVersion}"
//apache-commons
compile "commons-lang:commons-lang:2.6"
compile "commons-io:commons-io:2.4"
compile "commons-collections:commons-collections:3.2.2"
compile("commons-beanutils:commons-beanutils:1.9.2") {
exclude(group: " commons-logging")
exclude(group: " commons-collections")
}
compile("commons-digester:commons-digester:1.8") {
exclude(group: " commons-logging")
exclude(group: " commons-beanutils")
}
compile "commons-codec:commons-codec:1.10"
//junit
testCompile "junit:junit:${junitVersion}"
//bc
compile "org.bouncycastle:bcprov-jdk16:${bcVersion}"
compile "org.bouncycastle:bcmail-jdk16:${bcVersion}"
compile "org.bouncycastle:bcpg-jdk16:${bcVersion}"
}
//编码乱码
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zuoshouweixiao/hfw.git
git@gitee.com:zuoshouweixiao/hfw.git
zuoshouweixiao
hfw
hfw
master

搜索帮助