Files
arthas/arthas-http/build.gradle
2018-05-18 15:17:41 +08:00

81 lines
2.1 KiB
Groovy

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
idea {
module {
downloadJavadoc = false
downloadSources = false
}
}
repositories {
mavenLocal()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
mavenCentral()
}
dependencies {
compile(
// stormragetech libs
"com.stormragetech:arthas-common:$arthasVersion",
// lombok libs
"org.projectlombok:lombok:$lombokVersion",
// log4j2 libs
"org.apache.logging.log4j:log4j-api:$log4jVersion",
"org.apache.logging.log4j:log4j-core:$log4jVersion",
"org.apache.logging.log4j:log4j-web:$log4jVersion",
// common libs
"commons-codec:commons-codec:$codecVersion",
// httpserver libs
"org.apache.httpcomponents:httpcore:$httpcoreVersion",
// netty libs
"io.netty:netty-all:$nettyVersion",
// spring libs
"org.springframework:spring-context:$springVersion",
// protocol libs
"dom4j:dom4j:$dom4jVersion",
"com.alibaba:fastjson:$fastjsonVersion"
)
// test libs
testCompile "junit:junit:$junitVersion"
}
install {
repositories.mavenInstaller {
pom.version = "$project.version"
pom.artifactId = "$project.name"
pom.groupId = "$project.group"
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://192.168.0.99:8081/repository/maven-releases/") {
authentication(userName: "admin", password: "admin123")
}
snapshotRepository(url: "http://192.168.0.99:8081/repository/maven-snapshots/") {
authentication(userName: "admin", password: "admin123")
}
pom.version = "$project.version"
pom.artifactId = "$project.name"
pom.groupId = "$project.group"
}
}
}