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 <[email protected]> Authored: Tue Aug 2 14:58:29 2016 -0400 Committer: Raymond Auge <[email protected]> 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 {
