代码拉取完成,页面将自动刷新
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
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。