You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by dl...@apache.org on 2016/08/29 13:38:50 UTC
[2/4] incubator-edgent git commit: formatting build.gradle
formatting build.gradle
Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/6606e62f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/6606e62f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/6606e62f
Branch: refs/heads/master
Commit: 6606e62fa4d4d1e97eb573c0efca9a0ca0b179a2
Parents: 4adaaed
Author: Yaoliang Chen <ya...@cn.ibm.com>
Authored: Mon Aug 15 14:46:09 2016 +0800
Committer: Yaoliang Chen <ya...@cn.ibm.com>
Committed: Mon Aug 15 14:46:09 2016 +0800
----------------------------------------------------------------------
build.gradle | 38 ++++++++++++++++++--------------------
1 file changed, 18 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/6606e62f/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 95586ec..dc2f973 100644
--- a/build.gradle
+++ b/build.gradle
@@ -31,10 +31,10 @@ System.out.println("version=${version}")
group = 'org.apache.edgent'
def getDate() {
- if (!hasProperty('buildDate') || buildDate == null) {
- ext.buildDate = new java.util.Date().format('yyyyMMddHHmm');
- }
- return ext.buildDate;
+ if (!hasProperty('buildDate') || buildDate == null) {
+ ext.buildDate = new java.util.Date().format('yyyyMMddHHmm');
+ }
+ return ext.buildDate;
}
getDate();
@@ -150,9 +150,9 @@ subprojects {
}
task sourceJar(type: Jar) {
- // baseName-appendix-version-classifier.extension
- from sourceSets.main.allJava
- classifier = 'sources'
+ // baseName-appendix-version-classifier.extension
+ from sourceSets.main.allJava
+ classifier = 'sources'
}
@@ -183,19 +183,17 @@ subprojects {
}
publishing {
- publications {
- mavenJava(MavenPublication) {
- from components.java
- artifactId = artifact
- artifact sourceJar
- //artifact javadocJar
- //artifact testJar
- pom.withXml {
- // Example of appending more information to pom.
- //asNode().appendNode('description', 'A demonstration of Maven POM customization')
- }
- }
- }
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ artifactId = artifact
+ artifact sourceJar
+ //artifact javadocJar
+ //artifact testJar
+ pom.withXml {
+ }
+ }
+ }
}
copyJar.dependsOn assemble