加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
limu 提交于 2016-10-12 13:41 . bug
allprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
idea {
module {
downloadSources=true
downloadJavadoc=true
}
}
configurations {
provided
compile.extendsFrom provided
deployerJars
}
uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars
snapshotRepository(url: "http://mvnrepository.51xianqu.com/nexus/content/repositories/snapshots/") {
authentication(userName: "admin", password: "shandiangounexus51")
}
repository(url:"http://mvnrepository.51xianqu.com/nexus/content/repositories/releases/") {
authentication(userName: "admin", password: "shandiangounexus51")
}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
repositories {
maven {
name 'sdg-repository'
url 'http://mvnrepository.51xianqu.com/nexus/content/groups/public/'
}
mavenLocal()
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
group 'com.oschina'
version '1.0.1-SNAPSHOT'
sourceCompatibility = 1.7
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
ext {
springVersion='3.2.13.RELEASE'
}
subprojects {
dependencies {
deployerJars "org.apache.maven.wagon:wagon-http:2.2"
testCompile "junit:junit:4.11"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化