You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by cs...@apache.org on 2016/11/24 10:53:12 UTC

[08/50] [abbrv] aries-jax-rs-whiteboard git commit: fix default build instruction

fix default build instruction

./gradlew # now works without error


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/d086f10e
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/d086f10e
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/d086f10e

Branch: refs/heads/master
Commit: d086f10e121c3ff1556ed87732788f37b9d64816
Parents: 118fb42
Author: Raymond Auge <ra...@liferay.com>
Authored: Tue Aug 2 14:58:29 2016 -0400
Committer: Raymond Auge <ra...@liferay.com>
Committed: Tue Oct 11 13:20:31 2016 -0400

----------------------------------------------------------------------
 build.gradle | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/d086f10e/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 3dc5282..c7e6814 100644
--- a/build.gradle
+++ b/build.gradle
@@ -10,6 +10,8 @@ buildscript {
 	}
 }
 
+defaultTasks 'build'
+
 subprojects {
 	buildscript {
 		repositories {
@@ -19,8 +21,13 @@ subprojects {
 		}
 	}
 
-	apply plugin: 'biz.aQute.bnd.builder'
-	sourceCompatibility = 1.7
+	if (file('bnd.bnd').exists()) {
+		apply plugin: 'biz.aQute.bnd.builder'
+		sourceCompatibility = 1.7
+    }
+	else {
+		apply plugin: 'java'
+	}
 
 	repositories {
 		maven {