You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by ca...@apache.org on 2016/05/19 09:31:26 UTC

[01/16] incubator-quarks git commit: Add initial gradle setup for api and spi

Repository: incubator-quarks
Updated Branches:
  refs/heads/gradle 9c36bcfb3 -> 4a80c7099


Add initial gradle setup for api and spi


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/f68d40af
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/f68d40af
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/f68d40af

Branch: refs/heads/gradle
Commit: f68d40afd923811ce82b48731b8f87c7403c9530
Parents: d6cdfc6
Author: Daniel J. Debrunner <de...@us.ibm.com>
Authored: Tue Apr 19 14:28:07 2016 -0700
Committer: Daniel J. Debrunner <de...@us.ibm.com>
Committed: Wed May 18 09:59:22 2016 -0700

----------------------------------------------------------------------
 api/build.gradle           |  9 +++++++++
 api/execution/build.gradle |  6 ++++++
 api/graph/build.gradle     |  6 ++++++
 api/oplet/build.gradle     |  7 +++++++
 api/topology/build.gradle  |  6 ++++++
 api/window/build.gradle    |  6 ++++++
 build.gradle               | 38 ++++++++++++++++++++++++++++++++++++++
 settings.gradle            |  7 +++++++
 spi/build.gradle           |  9 +++++++++
 spi/graph/build.gradle     |  6 ++++++
 spi/topology/build.gradle  |  6 ++++++
 11 files changed, 106 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/api/build.gradle
----------------------------------------------------------------------
diff --git a/api/build.gradle b/api/build.gradle
new file mode 100644
index 0000000..b91f02f
--- /dev/null
+++ b/api/build.gradle
@@ -0,0 +1,9 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+subprojects {
+    jar {
+       baseName jarPrefix + 'api.' + project.name
+       destinationDir new File(targetj8, 'lib')
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/api/execution/build.gradle
----------------------------------------------------------------------
diff --git a/api/execution/build.gradle b/api/execution/build.gradle
new file mode 100644
index 0000000..5688b90
--- /dev/null
+++ b/api/execution/build.gradle
@@ -0,0 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:function')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/api/graph/build.gradle
----------------------------------------------------------------------
diff --git a/api/graph/build.gradle b/api/graph/build.gradle
new file mode 100644
index 0000000..cc3edb9
--- /dev/null
+++ b/api/graph/build.gradle
@@ -0,0 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:oplet')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/api/oplet/build.gradle
----------------------------------------------------------------------
diff --git a/api/oplet/build.gradle b/api/oplet/build.gradle
new file mode 100644
index 0000000..c63bba2
--- /dev/null
+++ b/api/oplet/build.gradle
@@ -0,0 +1,7 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:function'), project(':api:window'),
+            project(':api:execution')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/api/topology/build.gradle
----------------------------------------------------------------------
diff --git a/api/topology/build.gradle b/api/topology/build.gradle
new file mode 100644
index 0000000..7e6ee58
--- /dev/null
+++ b/api/topology/build.gradle
@@ -0,0 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:execution'), project(':api:graph')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/api/window/build.gradle
----------------------------------------------------------------------
diff --git a/api/window/build.gradle b/api/window/build.gradle
new file mode 100644
index 0000000..5688b90
--- /dev/null
+++ b/api/window/build.gradle
@@ -0,0 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:function')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..4f76ba9
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,38 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+ext {
+   jarPrefix = 'quarks.'
+   target = file('target')
+   targetj8 = new File(target, 'java8')
+}
+
+
+subprojects {
+    version = '0.5.0'
+
+    apply plugin: 'java'
+
+    repositories {
+      mavenCentral()
+    }
+
+    configurations {
+       qext
+    }
+
+    dependencies {
+       qext 'com.google.code.gson:gson:2.2.4'
+       compile configurations.qext
+       testCompile 'junit:junit:4.12'
+    }
+
+   task copyExt(type: Copy) {
+       from configurations.qext
+       into new File(targetj8, 'ext')
+   }
+
+   build.dependsOn(copyExt)
+} 
+
+

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..011b49c
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1,7 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+include "api:function", "api:oplet", "api:execution", "api:window",
+        "api:graph", "api:topology",
+        "spi:graph", "spi:topology"
+        

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/spi/build.gradle
----------------------------------------------------------------------
diff --git a/spi/build.gradle b/spi/build.gradle
new file mode 100644
index 0000000..ac6f17b
--- /dev/null
+++ b/spi/build.gradle
@@ -0,0 +1,9 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+subprojects {
+    jar {
+       baseName jarPrefix + 'spi.' + project.name
+       destinationDir new File(targetj8, 'lib')
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/spi/graph/build.gradle
----------------------------------------------------------------------
diff --git a/spi/graph/build.gradle b/spi/graph/build.gradle
new file mode 100644
index 0000000..d850f58
--- /dev/null
+++ b/spi/graph/build.gradle
@@ -0,0 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:graph')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f68d40af/spi/topology/build.gradle
----------------------------------------------------------------------
diff --git a/spi/topology/build.gradle b/spi/topology/build.gradle
new file mode 100644
index 0000000..c9f6f37
--- /dev/null
+++ b/spi/topology/build.gradle
@@ -0,0 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+    compile project(':api:topology')
+}


[03/16] incubator-quarks git commit: Build api using gradle

Posted by ca...@apache.org.
Build api using gradle


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/5d4024c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/5d4024c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/5d4024c1

Branch: refs/heads/gradle
Commit: 5d4024c145ccd5f7ed6e05ce9f375ca624976656
Parents: 258e690
Author: Daniel J. Debrunner <de...@us.ibm.com>
Authored: Wed May 18 09:58:27 2016 -0700
Committer: Daniel J. Debrunner <de...@us.ibm.com>
Committed: Wed May 18 09:59:24 2016 -0700

----------------------------------------------------------------------
 build.gradle | 17 +++++++----------
 build.xml    |  5 +++++
 2 files changed, 12 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/5d4024c1/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index cdfa5c4..7420faa 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,6 +14,13 @@ subprojects {
 
     apply plugin: 'java'
 
+    // Temp: Change the location of test classes
+    // to match the ant build. This can be removed
+    // once the build is all gradle
+    sourceSets {
+      test.output.classesDir file('test.classes')
+    }
+
     repositories {
       mavenCentral()
     }
@@ -27,18 +34,8 @@ subprojects {
                     'org.slf4j:slf4j-api:1.7.12'
        testCompile 'junit:junit:4.12'
     }
-
-task copy << {
-    //def manifestCp = ''
-    //configurations.compile.copy().allDependencies
-    //    .each { dep -> println dep.files }
-
-    println configurations.compile.copy().collect() { it.getName() }.join(' ')
-}
-
 } 
 
 clean.doFirst {
     delete target
 }
-

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/5d4024c1/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 93f3fdc..cf1892f 100644
--- a/build.xml
+++ b/build.xml
@@ -98,6 +98,9 @@
   <macrodef name="subprojects">
       <attribute name="target"/>
       <sequential>		
+
+      <!-- These are being built by Gradle
+            
         <ant dir="api/function" target="@{target}" useNativeBasedir="true"/>
         <ant dir="api/execution" target="@{target}" useNativeBasedir="true"/>
         <ant dir="api/window" target="@{target}" useNativeBasedir="true"/>
@@ -106,6 +109,8 @@
         <ant dir="api/topology" target="@{target}" useNativeBasedir="true"/>
         <ant dir="spi/graph" target="@{target}" useNativeBasedir="true"/>
         <ant dir="spi/topology" target="@{target}" useNativeBasedir="true"/>
+        -->
+
         <ant dir="runtime/appservice" target="@{target}" useNativeBasedir="true"/>
         <ant dir="runtime/etiao" target="@{target}" useNativeBasedir="true"/>
         <ant dir="runtime/jmxcontrol" target="@{target}" useNativeBasedir="true"/>


[10/16] incubator-quarks git commit: Update version to 0.4.0

Posted by ca...@apache.org.
Update version to 0.4.0


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/13dcfe24
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/13dcfe24
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/13dcfe24

Branch: refs/heads/gradle
Commit: 13dcfe2483dd4cf4bc8d51eef59029d492f92ebb
Parents: d064b84
Author: Lance Feagan <lf...@hotmail.com>
Authored: Thu Mar 17 19:58:31 2016 -0500
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 build.gradle | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/13dcfe24/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 58ce947..5f08411 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,20 +1,3 @@
-// STANDARD-HEADER-START - do not modify
-//buildscript {
-//	ext {
-//		centralRepositoryUrl = "${repositoryBaseUrl}/${centralRepo}"
-//		creds = { username "${mvn_username}"; password "$mvn_password"} ;
-//	}
-//
-//	repositories {
-//			//mavenLocal()
-//			maven { url centralRepositoryUrl; credentials creds }	// group of all needs repos
-//	}
-//	dependencies { 	classpath 'com.ibm.informix.gradle:plugins:1.+'}
-//}
-//
-//apply plugin: 'com.ibm.informix.gradle.ci-setup'
-// STANDARD-HEADER-START - do not modify
-
 repositories {
 	mavenLocal()
 }
@@ -23,8 +6,6 @@ repositories {
 assert hasProperty('version')	// See version in gradle.properties.
 System.out.println("version=${version}")
 group = 'org.apache.quarks'
-//ext.artifact = 'core' // However ArtifactId can be set per artifact in publishing.publications
-//description = 'IBM UTM Core'
 
 def getDate() {
 	if (!hasProperty('buildDate') || buildDate == null) {
@@ -52,7 +33,7 @@ subprojects {
 		testCompile 'junit:junit:4.8.2'
 	}
 
-	version = '1.0.0'
+	version = '0.4.0'
 
 	jar {
 		manifest.attributes provider: 'IBM'


[07/16] incubator-quarks git commit: Initial commit of conversion of the quarks build to maven.

Posted by ca...@apache.org.
Initial commit of conversion of the quarks build to maven.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/885538df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/885538df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/885538df

Branch: refs/heads/gradle
Commit: 885538df385e93f136d2065042bf29528531c756
Parents: 10075c6
Author: Lance Feagan <lf...@hotmail.com>
Authored: Thu Mar 17 17:56:57 2016 -0500
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 .gitignore                                      |  6 ++
 analytics/math3/build.gradle                    | 10 +++
 analytics/sensors/build.gradle                  |  9 ++
 api/execution/build.gradle                      |  6 ++
 api/function/build.gradle                       |  2 +
 api/graph/build.gradle                          |  6 ++
 api/oplet/build.gradle                          |  8 ++
 api/topology/build.gradle                       |  7 ++
 api/window/build.gradle                         |  6 ++
 apps/iot/build.gradle                           | 10 +++
 build.gradle                                    | 89 ++++++++++++++++++++
 connectors/common/build.gradle                  | 10 +++
 connectors/file/build.gradle                    | 11 +++
 connectors/http/build.gradle                    | 11 +++
 connectors/iot/build.gradle                     |  6 ++
 connectors/iotf/build.gradle                    | 12 +++
 connectors/javax.websocket-client/build.gradle  | 14 +++
 connectors/javax.websocket-server/build.gradle  |  6 ++
 connectors/jdbc/build.gradle                    | 11 +++
 connectors/kafka/build.gradle                   | 18 ++++
 connectors/mqtt/build.gradle                    | 14 +++
 connectors/pubsub/build.gradle                  | 10 +++
 connectors/quarks.javax.websocket/build.gradle  |  7 ++
 connectors/serial/build.gradle                  |  6 ++
 .../wsclient-javax.websocket/build.gradle       | 32 +++++++
 connectors/wsclient/build.gradle                |  6 ++
 console/server/build.gradle                     | 14 +++
 console/servlets/build.gradle                   | 38 +++++++++
 providers/development/build.gradle              | 11 +++
 providers/direct/build.gradle                   | 13 +++
 runtime/appservice/build.gradle                 |  7 ++
 runtime/etiao/build.gradle                      |  8 ++
 runtime/jmxcontrol/build.gradle                 |  7 ++
 runtime/jsoncontrol/build.gradle                |  7 ++
 samples/apps/build.gradle                       | 11 +++
 samples/connectors/build.gradle                 | 12 +++
 samples/console/build.gradle                    |  8 ++
 samples/topology/build.gradle                   |  7 ++
 samples/utils/build.gradle                      | 10 +++
 settings.gradle                                 | 22 +++++
 spi/graph/build.gradle                          |  7 ++
 spi/topology/build.gradle                       |  6 ++
 test/fvtiot/build.gradle                        |  8 ++
 test/svt/build.gradle                           |  6 ++
 utils/metrics/build.gradle                      | 10 +++
 45 files changed, 545 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 06edd2b..f17eb91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,9 @@
 
 # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
 hs_err_pid*
+
+# gradle metadata
+.gradle
+
+# gradle build folders
+build/

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/analytics/math3/build.gradle
----------------------------------------------------------------------
diff --git a/analytics/math3/build.gradle b/analytics/math3/build.gradle
new file mode 100644
index 0000000..de9ab1f
--- /dev/null
+++ b/analytics/math3/build.gradle
@@ -0,0 +1,10 @@
+ext.artifact = 'analytics.math3' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Analytics math functions'
+
+dependencies {
+	compile project(':api/topology')
+	compile files('./ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/analytics/sensors/build.gradle
----------------------------------------------------------------------
diff --git a/analytics/sensors/build.gradle b/analytics/sensors/build.gradle
new file mode 100644
index 0000000..82e5b32
--- /dev/null
+++ b/analytics/sensors/build.gradle
@@ -0,0 +1,9 @@
+ext.artifact = 'analytics.sensors' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Analytics aimed at sensor readings'
+
+dependencies {
+	compile project(':api/topology')
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/api/execution/build.gradle
----------------------------------------------------------------------
diff --git a/api/execution/build.gradle b/api/execution/build.gradle
new file mode 100644
index 0000000..94c97ec
--- /dev/null
+++ b/api/execution/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'api.execution' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The API for executing flows'
+
+dependencies {
+	compile project(':api/function')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/api/function/build.gradle
----------------------------------------------------------------------
diff --git a/api/function/build.gradle b/api/function/build.gradle
new file mode 100644
index 0000000..ec51961
--- /dev/null
+++ b/api/function/build.gradle
@@ -0,0 +1,2 @@
+ext.artifact = 'api.function' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The API for buidling functions'

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/api/graph/build.gradle
----------------------------------------------------------------------
diff --git a/api/graph/build.gradle b/api/graph/build.gradle
new file mode 100644
index 0000000..0fb30af
--- /dev/null
+++ b/api/graph/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'api.graph' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The graph API'
+
+dependencies {
+	compile project(':api/oplet')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/api/oplet/build.gradle
----------------------------------------------------------------------
diff --git a/api/oplet/build.gradle b/api/oplet/build.gradle
new file mode 100644
index 0000000..19da7fa
--- /dev/null
+++ b/api/oplet/build.gradle
@@ -0,0 +1,8 @@
+ext.artifact = 'api.oplet' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The oplet API'
+
+dependencies {
+	compile project(':api/execution')
+	compile project(':api/function')
+	compile project(':api/window')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/api/topology/build.gradle
----------------------------------------------------------------------
diff --git a/api/topology/build.gradle b/api/topology/build.gradle
new file mode 100644
index 0000000..e9b3e53
--- /dev/null
+++ b/api/topology/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'api.topology' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The topology API'
+
+dependencies {
+	compile project(':api/execution')
+	compile project(':api/graph')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/api/window/build.gradle
----------------------------------------------------------------------
diff --git a/api/window/build.gradle b/api/window/build.gradle
new file mode 100644
index 0000000..91d6b77
--- /dev/null
+++ b/api/window/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'api.window' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The window API'
+
+dependencies {
+	compile project(':api/function')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/apps/iot/build.gradle
----------------------------------------------------------------------
diff --git a/apps/iot/build.gradle b/apps/iot/build.gradle
new file mode 100644
index 0000000..5c62bd4
--- /dev/null
+++ b/apps/iot/build.gradle
@@ -0,0 +1,10 @@
+ext.artifact = 'apps.iot' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Applications utilizing IotDevice'
+
+dependencies {
+	compile project(':api/topology')
+	compile project(':connectors/iot')
+	compile project(':connectors/pubsub')
+
+	testCompile project(':providers/direct')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..58ce947
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,89 @@
+// STANDARD-HEADER-START - do not modify
+//buildscript {
+//	ext {
+//		centralRepositoryUrl = "${repositoryBaseUrl}/${centralRepo}"
+//		creds = { username "${mvn_username}"; password "$mvn_password"} ;
+//	}
+//
+//	repositories {
+//			//mavenLocal()
+//			maven { url centralRepositoryUrl; credentials creds }	// group of all needs repos
+//	}
+//	dependencies { 	classpath 'com.ibm.informix.gradle:plugins:1.+'}
+//}
+//
+//apply plugin: 'com.ibm.informix.gradle.ci-setup'
+// STANDARD-HEADER-START - do not modify
+
+repositories {
+	mavenLocal()
+}
+
+// SET PROJECT INFO for all artifacts
+assert hasProperty('version')	// See version in gradle.properties.
+System.out.println("version=${version}")
+group = 'org.apache.quarks'
+//ext.artifact = 'core' // However ArtifactId can be set per artifact in publishing.publications
+//description = 'IBM UTM Core'
+
+def getDate() {
+	if (!hasProperty('buildDate') || buildDate == null) {
+		ext.buildDate = new java.util.Date().format('yyyyMMddHHmm');
+	}
+	return ext.buildDate;
+}
+
+getDate();
+
+subprojects {
+	apply plugin: 'java'
+	apply plugin: 'maven-publish'
+	
+	group = 'org.apache.quarks'
+
+	repositories {
+	   mavenCentral()
+	}
+
+	dependencies {
+		compile group: 'com.google.code.gson' , name: 'gson' , version: '2.2.4'
+		compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
+		compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.1.2'
+		testCompile 'junit:junit:4.8.2'
+	}
+
+	version = '1.0.0'
+
+	jar {
+		manifest.attributes provider: 'IBM'
+	}
+	
+	task sourceJar(type: Jar) {
+		// baseName-appendix-version-classifier.extension
+		from sourceSets.main.allJava
+		classifier = 'sources'
+	}
+	
+	task javadocJar(type: Jar, dependsOn: 'javadoc') {
+		from javadoc.destinationDir
+		classifier = 'javadoc'
+	}
+
+	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')
+				}
+			}
+		}
+	}
+
+	task listAllDependencies(type: DependencyReportTask) {}
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/common/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/common/build.gradle b/connectors/common/build.gradle
new file mode 100644
index 0000000..96ad5bf
--- /dev/null
+++ b/connectors/common/build.gradle
@@ -0,0 +1,10 @@
+ext.artifact = 'connectors.common' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Common Connector Code'
+
+dependencies {
+	compile project(':api/topology')
+	
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/file/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/file/build.gradle b/connectors/file/build.gradle
new file mode 100644
index 0000000..751b8ce
--- /dev/null
+++ b/connectors/file/build.gradle
@@ -0,0 +1,11 @@
+ext.artifact = 'connectors.file' // However ArtifactId can be set per artifact in publishing.publications
+description = 'File Connectors'
+
+dependencies {
+	compile project(':api/topology')
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':connectors/common').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/http/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/http/build.gradle b/connectors/http/build.gradle
new file mode 100644
index 0000000..0820037
--- /dev/null
+++ b/connectors/http/build.gradle
@@ -0,0 +1,11 @@
+ext.artifact = 'connectors.http' // However ArtifactId can be set per artifact in publishing.publications
+description = 'HTTP Connectors'
+
+dependencies {
+	compile project(':api/topology')
+	compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/iot/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/iot/build.gradle b/connectors/iot/build.gradle
new file mode 100644
index 0000000..752ed24
--- /dev/null
+++ b/connectors/iot/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'connectors.iot' // However ArtifactId can be set per artifact in publishing.publications
+description = 'IoT Device API'
+
+dependencies {
+	compile project(':api/topology')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/iotf/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/iotf/build.gradle b/connectors/iotf/build.gradle
new file mode 100644
index 0000000..70a33e2
--- /dev/null
+++ b/connectors/iotf/build.gradle
@@ -0,0 +1,12 @@
+ext.artifact = 'connectors.iotf' // However ArtifactId can be set per artifact in publishing.publications
+description = 'IOTF Connectors'
+
+dependencies {
+	compile project(':api/topology')
+	compile project(':connectors/iot')
+	// compile group: 'joda-time', name: 'joda-time', version: '2.6'
+	// compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
+	compile files('./ext/com.ibm.iotf.client-0.0.9.jar')
+	compile files('./ext/lib/joda-time-2.6.jar')
+	compile files('./ext/lib/org.eclipse.paho.client.mqttv3-1.0.3-20150818.040635-202.jar')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/javax.websocket-client/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/javax.websocket-client/build.gradle b/connectors/javax.websocket-client/build.gradle
new file mode 100644
index 0000000..d28427f
--- /dev/null
+++ b/connectors/javax.websocket-client/build.gradle
@@ -0,0 +1,14 @@
+ext.artifact = 'connectors.javax.websocket-client' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Jetty supplied jsr356 WebSocket Client Implementation package'
+
+dependencies {
+	compile project(':connectors/quarks.javax.websocket')
+
+	//compile 'org.eclipse.jetty.websocket:websocket-api:9.3.6.v20151106'
+	compile files('./ext/javax-websocket-client-impl-9.3.6.v20151106.jar')
+	compile files('./ext/javax.websocket-api-1.0.jar')
+	compile files('./ext/jetty-util-9.3.6.v20151106.jar')
+	compile files('./ext/websocket-api-9.3.6.v20151106.jar')
+	compile files('./ext/websocket-client-9.3.6.v20151106.jar')
+	compile files('./ext/websocket-common-9.3.6.v20151106.jar')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/javax.websocket-server/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/javax.websocket-server/build.gradle b/connectors/javax.websocket-server/build.gradle
new file mode 100644
index 0000000..d9e9d3a
--- /dev/null
+++ b/connectors/javax.websocket-server/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'connectors.javax.websocket-server' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Jetty supplied JSR 356 WebSocket Server Implementation package'
+
+dependencies {
+	compile project(':connectors/javax.websocket-client')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/jdbc/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/jdbc/build.gradle b/connectors/jdbc/build.gradle
new file mode 100644
index 0000000..aaf1d2c
--- /dev/null
+++ b/connectors/jdbc/build.gradle
@@ -0,0 +1,11 @@
+ext.artifact = 'connectors.jdbc' // However ArtifactId can be set per artifact in publishing.publications
+description = 'JDBC Connectors'
+
+dependencies {
+	compile project(':api/topology')
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':connectors/common').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/kafka/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/kafka/build.gradle b/connectors/kafka/build.gradle
new file mode 100644
index 0000000..38439e7
--- /dev/null
+++ b/connectors/kafka/build.gradle
@@ -0,0 +1,18 @@
+ext.artifact = 'connectors.kafka' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Kafka Connectors'
+
+dependencies {
+	compile project(':api/topology')
+	compile files('./ext/kafka-clients-0.8.2.2.jar')
+	compile files('./ext/kafka_2.10-0.8.2.2.jar')
+	compile files('./ext/log4j-1.2.16.jar')
+	compile files('./ext/metrics-core-2.2.0.jar')
+	compile files('./ext/scala-library-2.10.4.jar')
+	compile files('./ext/zkclient-0.3.jar')
+	compile files('./ext/zookeeper-3.4.6.jar')
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':connectors/common').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/mqtt/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/mqtt/build.gradle b/connectors/mqtt/build.gradle
new file mode 100644
index 0000000..6f91e25
--- /dev/null
+++ b/connectors/mqtt/build.gradle
@@ -0,0 +1,14 @@
+ext.artifact = 'connectors.mqtt' // However ArtifactId can be set per artifact in publishing.publications
+description = 'MQTT Connectors'
+
+dependencies {
+	compile project(':api/topology')
+	compile project(':connectors/common')
+	compile project(':connectors/iot')
+	compile files('./ext/org.eclipse.paho.client.mqttv3-1.0.2.jar')
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':connectors/common').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/pubsub/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/pubsub/build.gradle b/connectors/pubsub/build.gradle
new file mode 100644
index 0000000..637d3de
--- /dev/null
+++ b/connectors/pubsub/build.gradle
@@ -0,0 +1,10 @@
+ext.artifact = 'connectors.pubsub' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Publish Subscribe connector and service.'
+
+dependencies {
+	compile project(':api/topology')
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/quarks.javax.websocket/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/quarks.javax.websocket/build.gradle b/connectors/quarks.javax.websocket/build.gradle
new file mode 100644
index 0000000..c15836f
--- /dev/null
+++ b/connectors/quarks.javax.websocket/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'connectors.websocket' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Special Quarks javax.websocket bundle'
+
+dependencies {
+	//compile 'org.eclipse.jetty.websocket:websocket-api:9.3.6.v20151106'
+	compile files('./ext/javax.websocket-api-1.0.jar')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/serial/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/serial/build.gradle b/connectors/serial/build.gradle
new file mode 100644
index 0000000..b638e75
--- /dev/null
+++ b/connectors/serial/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'connectors.serial' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Serial Connector API'
+
+dependencies {
+	compile project(':api/topology')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/wsclient-javax.websocket/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/wsclient-javax.websocket/build.gradle b/connectors/wsclient-javax.websocket/build.gradle
new file mode 100644
index 0000000..68273ca
--- /dev/null
+++ b/connectors/wsclient-javax.websocket/build.gradle
@@ -0,0 +1,32 @@
+ext.artifact = 'connectors.wsclient-javax.websocket' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Build JSR356 javax.websocket based WebSocket Client connector'
+
+dependencies {
+	compile project(':api/topology')
+	compile project(':connectors/common')
+	compile project(':connectors/wsclient')
+	compile project(':connectors/quarks.javax.websocket')
+	compile files('./ext/javax.websocket-api-1.0.jar')
+
+	testCompile project(':providers/direct')
+	testCompile project(':providers/direct').sourceSets.test.output
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':connectors/common').sourceSets.test.output
+	testCompile project(':connectors/javax.websocket-client')
+	testCompile project(':connectors/javax.websocket-server')
+
+	testCompile files('../javax.websocket-server/ext/javax-websocket-server-impl-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/jetty-http-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/jetty-io-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/jetty-security-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/jetty-server-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/jetty-servlet-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/servlet-api-3.1.jar')
+	testCompile files('../javax.websocket-server/ext/websocket-server-9.3.6.v20151106.jar')
+	testCompile files('../javax.websocket-server/ext/websocket-servlet-9.3.6.v20151106.jar')
+
+//	testCompile project(':connectors/javax.websocket-client').configurations.runtime
+//	testCompile project(':connectors/javax.websocket-server').configurations.compile
+//	testCompile files('../javax.websocket-server/ext/jetty-http-9.3.6.v20151106.jar')
+//	testCompile files('../javax.websocket-server/ext/jetty-server-9.3.6.v20151106.jar')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/connectors/wsclient/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/wsclient/build.gradle b/connectors/wsclient/build.gradle
new file mode 100644
index 0000000..771157c
--- /dev/null
+++ b/connectors/wsclient/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'connectors.wsclient' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Build WebSocket Client connector API.'
+
+dependencies {
+	compile project(':api/topology')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/console/server/build.gradle
----------------------------------------------------------------------
diff --git a/console/server/build.gradle b/console/server/build.gradle
new file mode 100644
index 0000000..010b277
--- /dev/null
+++ b/console/server/build.gradle
@@ -0,0 +1,14 @@
+ext.artifact = 'console.server' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Console Server'
+
+dependencies {
+	compile files('./ext/jetty-9.3.6/jetty-http-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-io-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-security-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-server-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-servlet-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-util-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-webapp-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/jetty-xml-9.3.6.v20151106.jar')
+	compile files('./ext/jetty-9.3.6/servlet-api-3.1.jar')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/console/servlets/build.gradle
----------------------------------------------------------------------
diff --git a/console/servlets/build.gradle b/console/servlets/build.gradle
new file mode 100644
index 0000000..74b3685
--- /dev/null
+++ b/console/servlets/build.gradle
@@ -0,0 +1,38 @@
+buildscript {
+	repositories {
+		jcenter()
+	}
+	dependencies {
+		classpath 'org.akhikhl.gretty:gretty:+'
+	}
+}
+
+apply plugin: 'war'
+apply plugin: 'org.akhikhl.gretty'
+//apply plugin: 'jetty'
+
+ext.artifact = 'console.servlets' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Web Console Servlets'
+
+dependencies {
+	compile files('../server/ext/jetty-9.3.6/servlet-api-3.1.jar')
+}
+
+war {
+	archiveName 'console.war'
+	from 'webapp_content/html' // adds a file-set to the root of the archive
+	into('resources') {
+		from 'webapp_content/resources'
+	}
+	into('js') {
+		from 'webapp_content/js'
+	}
+	webInf { from 'webapp_content/WEB-INF/' } // adds a file-set to the WEB-INF dir.
+	webXml = file('webapp_content/WEB-INF/console.xml') // copies a file to WEB-INF/web.xml
+}
+
+gretty {
+	port = 8080
+	contextPath = '/'
+	servletContainer = 'jetty9'
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/providers/development/build.gradle
----------------------------------------------------------------------
diff --git a/providers/development/build.gradle b/providers/development/build.gradle
new file mode 100644
index 0000000..1533ef7
--- /dev/null
+++ b/providers/development/build.gradle
@@ -0,0 +1,11 @@
+ext.artifact = 'providers.development' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The development topology provider'
+
+dependencies {
+	compile project(':providers/direct')
+	compile project(':console/server')
+	compile project(':utils/metrics')
+	compile project(':runtime/jmxcontrol')
+
+	testCompile project(':api/topology').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/providers/direct/build.gradle
----------------------------------------------------------------------
diff --git a/providers/direct/build.gradle b/providers/direct/build.gradle
new file mode 100644
index 0000000..9a9c279
--- /dev/null
+++ b/providers/direct/build.gradle
@@ -0,0 +1,13 @@
+ext.artifact = 'providers.direct' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The direct topology provider'
+
+dependencies {
+	compile project(':api/topology')
+	compile project(':spi/topology')
+	compile project(':spi/graph')
+	compile project(':runtime/etiao')
+
+	testCompile project(':api/topology').sourceSets.test.output
+	testCompile project(':utils/metrics')
+	testCompile project(':utils/metrics').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/runtime/appservice/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/appservice/build.gradle b/runtime/appservice/build.gradle
new file mode 100644
index 0000000..89c3049
--- /dev/null
+++ b/runtime/appservice/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'runtime.appservice' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The runtime application service library'
+
+dependencies {
+	compile project(':api/execution')
+	compile project(':api/topology')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/runtime/etiao/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/etiao/build.gradle b/runtime/etiao/build.gradle
new file mode 100644
index 0000000..c010902
--- /dev/null
+++ b/runtime/etiao/build.gradle
@@ -0,0 +1,8 @@
+ext.artifact = 'runtime.etiao' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The runtime Everything Is An Oplet (ETIAO) library'
+
+dependencies {
+	compile project(':api/graph')
+	compile project(':spi/graph')
+	testCompile project(':api/graph').sourceSets.test.output
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/runtime/jmxcontrol/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jmxcontrol/build.gradle b/runtime/jmxcontrol/build.gradle
new file mode 100644
index 0000000..ad687f3
--- /dev/null
+++ b/runtime/jmxcontrol/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'runtime.jmxcontrol' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The runtime JMX control library'
+
+dependencies {
+	compile project(':api/execution')
+	compile project(':api/function')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/runtime/jsoncontrol/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jsoncontrol/build.gradle b/runtime/jsoncontrol/build.gradle
new file mode 100644
index 0000000..e4f61c9
--- /dev/null
+++ b/runtime/jsoncontrol/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'runtime.jsoncontrol' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The runtime JSON control library'
+
+dependencies {
+	compile project(':api/execution')
+	compile project(':api/function')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/samples/apps/build.gradle
----------------------------------------------------------------------
diff --git a/samples/apps/build.gradle b/samples/apps/build.gradle
new file mode 100644
index 0000000..2272250
--- /dev/null
+++ b/samples/apps/build.gradle
@@ -0,0 +1,11 @@
+ext.artifact = 'samples.apps' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Sample applications'
+
+dependencies {
+	compile project(':connectors/mqtt')
+	compile project(':connectors/file')
+	compile project(':analytics/math3')
+	compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
+	compile project(':samples/topology')
+	compile project(':samples/utils')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/samples/connectors/build.gradle
----------------------------------------------------------------------
diff --git a/samples/connectors/build.gradle b/samples/connectors/build.gradle
new file mode 100644
index 0000000..3a7580d
--- /dev/null
+++ b/samples/connectors/build.gradle
@@ -0,0 +1,12 @@
+ext.artifact = 'samples.connectors' // However ArtifactId can be set per artifact in publishing.publications
+description = 'samples demonstrating connector functionality'
+
+dependencies {
+	compile project(':connectors/file')
+	compile project(':connectors/iotf')
+	compile project(':connectors/jdbc')
+	compile project(':connectors/kafka')
+	compile project(':connectors/mqtt')
+	compile project(':samples/topology')
+	compile project(':samples/utils')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/samples/console/build.gradle
----------------------------------------------------------------------
diff --git a/samples/console/build.gradle b/samples/console/build.gradle
new file mode 100644
index 0000000..da6cfd4
--- /dev/null
+++ b/samples/console/build.gradle
@@ -0,0 +1,8 @@
+ext.artifact = 'samples.console' // However ArtifactId can be set per artifact in publishing.publications
+description = 'samples demonstrating console functionality'
+
+dependencies {
+	compile project(':console/server')
+	compile project(':providers/development')
+	compile project(':providers/direct')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/samples/topology/build.gradle
----------------------------------------------------------------------
diff --git a/samples/topology/build.gradle b/samples/topology/build.gradle
new file mode 100644
index 0000000..2b08fbc
--- /dev/null
+++ b/samples/topology/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'samples.topology' // However ArtifactId can be set per artifact in publishing.publications
+description = 'samples demonstrating add-on functionality'
+
+dependencies {
+	compile project(':analytics/math3')
+	compile project(':samples/utils')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/samples/utils/build.gradle
----------------------------------------------------------------------
diff --git a/samples/utils/build.gradle b/samples/utils/build.gradle
new file mode 100644
index 0000000..0ba6b86
--- /dev/null
+++ b/samples/utils/build.gradle
@@ -0,0 +1,10 @@
+ext.artifact = 'samples.utils' // However ArtifactId can be set per artifact in publishing.publications
+description = 'samples demonstrating add-on functionality'
+
+dependencies {
+	compile project(':console/server')
+	compile project(':providers/development')
+	compile project(':providers/direct')
+	compile project(':utils/metrics')
+	compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..5426e1e
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1,22 @@
+//analytics
+include "analytics/math3", "analytics/sensors"
+// api
+include  "api/execution", "api/function", "api/graph", "api/oplet", "api/topology", "api/window"
+// apps
+include "apps/iot"
+// connectors
+include "connectors/common", "connectors/file", "connectors/http", "connectors/iot", "connectors/iotf", "connectors/javax.websocket-client", "connectors/javax.websocket-server", "connectors/jdbc", "connectors/kafka", "connectors/mqtt", "connectors/pubsub", "connectors/quarks.javax.websocket", "connectors/serial", "connectors/wsclient", "connectors/wsclient-javax.websocket"
+// console
+include "console/server", "console/servlets"
+// providers
+include "providers/direct", "providers/development"
+// runtime
+include "runtime/appservice", "runtime/etiao", "runtime/jmxcontrol", "runtime/jsoncontrol"
+// samples
+include "samples/apps", "samples/connectors", "samples/console", "samples/topology", "samples/utils"
+// spi
+include "spi/graph", "spi/topology"
+// utils
+include "utils/metrics"
+// test
+include "test/fvtiot", "test/svt"

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/spi/graph/build.gradle
----------------------------------------------------------------------
diff --git a/spi/graph/build.gradle b/spi/graph/build.gradle
new file mode 100644
index 0000000..70452df
--- /dev/null
+++ b/spi/graph/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'spi.graph' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The graph SPI'
+
+dependencies {
+	compile project(':api/graph')
+	compile project(':api/execution')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/spi/topology/build.gradle
----------------------------------------------------------------------
diff --git a/spi/topology/build.gradle b/spi/topology/build.gradle
new file mode 100644
index 0000000..46fdab0
--- /dev/null
+++ b/spi/topology/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'spi.topology' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The topology SPI'
+
+dependencies {
+	compile project(':api/topology')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/test/fvtiot/build.gradle
----------------------------------------------------------------------
diff --git a/test/fvtiot/build.gradle b/test/fvtiot/build.gradle
new file mode 100644
index 0000000..f689f44
--- /dev/null
+++ b/test/fvtiot/build.gradle
@@ -0,0 +1,8 @@
+ext.artifact = 'test.fvtiot' // However ArtifactId can be set per artifact in publishing.publications
+description = 'FVT for IoT scenario'
+
+dependencies {
+	compile project(':providers/direct')
+	compile project(':runtime/appservice')
+	compile project(':runtime/jsoncontrol')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/test/svt/build.gradle
----------------------------------------------------------------------
diff --git a/test/svt/build.gradle b/test/svt/build.gradle
new file mode 100644
index 0000000..6321ac8
--- /dev/null
+++ b/test/svt/build.gradle
@@ -0,0 +1,6 @@
+ext.artifact = 'test.svt' // However ArtifactId can be set per artifact in publishing.publications
+description = 'SVT'
+
+dependencies {
+	compile project(':providers/development')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/885538df/utils/metrics/build.gradle
----------------------------------------------------------------------
diff --git a/utils/metrics/build.gradle b/utils/metrics/build.gradle
new file mode 100644
index 0000000..c24bc33
--- /dev/null
+++ b/utils/metrics/build.gradle
@@ -0,0 +1,10 @@
+ext.artifact = 'utils.metrics' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The metrics add-on'
+
+dependencies {
+	compile project(':api/topology')
+
+	testCompile project(':api/topology').sourceSets.test.output
+//	testCompile project(':providers/direct')
+//	testCompile project(':providers/direct').sourceSets.test.output
+}



[15/16] incubator-quarks git commit: add license header

Posted by ca...@apache.org.
add license header


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/6cfc8786
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/6cfc8786
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/6cfc8786

Branch: refs/heads/gradle
Commit: 6cfc87863d79010de9510385470e99ebc82fec46
Parents: 0fc884e
Author: cazen <ca...@apache.org>
Authored: Thu May 19 07:43:54 2016 +0000
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:43:54 2016 +0000

----------------------------------------------------------------------
 api/build.gradle | 15 +++++++++++++--
 spi/build.gradle | 15 +++++++++++++--
 2 files changed, 26 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/6cfc8786/api/build.gradle
----------------------------------------------------------------------
diff --git a/api/build.gradle b/api/build.gradle
index 611e8ca..aad473d 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -1,5 +1,16 @@
-// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
-// and to You under the Apache License, Version 2.0.
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
 subprojects {
     jar {

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/6cfc8786/spi/build.gradle
----------------------------------------------------------------------
diff --git a/spi/build.gradle b/spi/build.gradle
index 484c109..21b62f3 100644
--- a/spi/build.gradle
+++ b/spi/build.gradle
@@ -1,5 +1,16 @@
-// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
-// and to You under the Apache License, Version 2.0.
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
 subprojects {
     jar {


[11/16] incubator-quarks git commit: Adding OSGI manifest info.

Posted by ca...@apache.org.
Adding OSGI manifest info.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/785ff450
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/785ff450
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/785ff450

Branch: refs/heads/gradle
Commit: 785ff4508adbd38e3b43bc66a350f32fb47f3c14
Parents: f11318c
Author: Lance Feagan <lf...@hotmail.com>
Authored: Thu Mar 17 20:46:41 2016 -0500
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 api/function/build.gradle |  8 ++++++++
 build.gradle              | 21 ++++++++++++++++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/785ff450/api/function/build.gradle
----------------------------------------------------------------------
diff --git a/api/function/build.gradle b/api/function/build.gradle
index ec51961..5884e87 100644
--- a/api/function/build.gradle
+++ b/api/function/build.gradle
@@ -1,2 +1,10 @@
 ext.artifact = 'api.function' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The API for buidling functions'
+
+jar {
+	manifest {
+		name = 'Quarks Function API'	// Becomes 'Bundle-Name' in MANIFEST
+		attributes 'Implementation-Title': artifact,
+		           'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/785ff450/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 5f08411..ac4f84a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,6 +19,7 @@ getDate();
 subprojects {
 	apply plugin: 'java'
 	apply plugin: 'maven-publish'
+	apply plugin: 'osgi'
 	
 	group = 'org.apache.quarks'
 
@@ -31,12 +32,30 @@ subprojects {
 		compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
 		compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.1.2'
 		testCompile 'junit:junit:4.8.2'
+		testCompile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.12'
 	}
 
 	version = '0.4.0'
 
 	jar {
-		manifest.attributes provider: 'IBM'
+		manifest.attributes provider: 'Apache Foundation'
+		
+		manifest {
+//			attributes 'Implementation-Title': ext.artifact,
+			attributes 'Implementation-Version': version,
+				       'Implementation-Vendor' : 'quarks-edge@github.com'
+//					   'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
+			instruction 'Bundle-Vendor', 'Apache Foundation'
+			instruction 'Bundle-Description', 'Quarks'
+			instruction 'Bundle-DocURL', 'http://quarks-edge.github.io/'
+		}
+		
+		/*- From common-build.xml
+		<attribute name="Implementation-Title" value="${ant.project.name}"/>
+		<attribute name="Implementation-Version" value="${commithash}-${DSTAMP}-${TSTAMP}"/>
+		<attribute name="Implementation-Vendor" value="quarks-edge@github.com"/>
+		<attribute name="Class-Path" value="${jar.classpath}"/>
+		*/		
 	}
 	
 	task sourceJar(type: Jar) {


[16/16] incubator-quarks git commit: Merge branch 'pr-121' into gradle This closes #121

Posted by ca...@apache.org.
Merge branch 'pr-121' into gradle
This closes #121


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/4a80c709
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/4a80c709
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/4a80c709

Branch: refs/heads/gradle
Commit: 4a80c7099b808f3e928c66a1a5677858f45270e3
Parents: 9c36bcf 6cfc878
Author: cazen <ca...@apache.org>
Authored: Thu May 19 09:00:17 2016 +0000
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 09:00:17 2016 +0000

----------------------------------------------------------------------
 .gitignore                                      |  9 ++++
 .project                                        | 17 ++++++-
 analytics/math3/build.gradle                    | 23 +++++++++
 analytics/sensors/build.gradle                  | 22 +++++++++
 api/build.gradle                                | 35 +++++++++++++
 api/execution/build.gradle                      | 19 +++++++
 api/function/build.gradle                       | 38 ++++++++++++++
 api/graph/build.gradle                          | 19 +++++++
 api/oplet/build.gradle                          | 21 ++++++++
 api/topology/build.gradle                       | 20 ++++++++
 api/window/build.gradle                         | 19 +++++++
 apps/iot/build.gradle                           | 23 +++++++++
 apps/runtime/build.gradle                       | 24 +++++++++
 build.gradle                                    | 52 ++++++++++++++++++++
 build.xml                                       |  5 ++
 connectors/common/build.gradle                  | 23 +++++++++
 connectors/file/build.gradle                    | 24 +++++++++
 connectors/http/build.gradle                    | 24 +++++++++
 connectors/iot/build.gradle                     | 19 +++++++
 connectors/iotf/build.gradle                    | 25 ++++++++++
 connectors/javax.websocket-client/build.gradle  | 27 ++++++++++
 connectors/javax.websocket-server/build.gradle  | 19 +++++++
 connectors/jdbc/build.gradle                    | 24 +++++++++
 connectors/kafka/build.gradle                   | 31 ++++++++++++
 connectors/mqtt/build.gradle                    | 27 ++++++++++
 connectors/pubsub/build.gradle                  | 23 +++++++++
 connectors/quarks.javax.websocket/build.gradle  | 20 ++++++++
 connectors/serial/build.gradle                  | 19 +++++++
 .../wsclient-javax.websocket/build.gradle       | 45 +++++++++++++++++
 connectors/wsclient/build.gradle                | 19 +++++++
 console/server/build.gradle                     | 27 ++++++++++
 console/servlets/build.gradle                   | 51 +++++++++++++++++++
 gradle.properties                               | 25 ++++++++++
 providers/development/build.gradle              | 24 +++++++++
 providers/direct/build.gradle                   | 27 ++++++++++
 runtime/appservice/build.gradle                 | 20 ++++++++
 runtime/etiao/build.gradle                      | 21 ++++++++
 runtime/jmxcontrol/build.gradle                 | 20 ++++++++
 runtime/jobregistry/build.gradle                | 20 ++++++++
 runtime/jsoncontrol/build.gradle                | 20 ++++++++
 samples/apps/build.gradle                       | 24 +++++++++
 samples/connectors/build.gradle                 | 26 ++++++++++
 samples/console/build.gradle                    | 21 ++++++++
 samples/topology/build.gradle                   | 21 ++++++++
 samples/utils/build.gradle                      | 24 +++++++++
 settings.gradle                                 | 41 +++++++++++++++
 spi/build.gradle                                | 34 +++++++++++++
 spi/graph/build.gradle                          | 20 ++++++++
 spi/topology/build.gradle                       | 19 +++++++
 test/fvtiot/build.gradle                        | 21 ++++++++
 test/svt/build.gradle                           | 21 ++++++++
 utils/metrics/build.gradle                      | 23 +++++++++
 52 files changed, 1263 insertions(+), 2 deletions(-)
----------------------------------------------------------------------



[05/16] incubator-quarks git commit: add dependencies

Posted by ca...@apache.org.
add dependencies


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/0a91256c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/0a91256c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/0a91256c

Branch: refs/heads/gradle
Commit: 0a91256cd3f45629e3fd083b1cf39bb610b2502a
Parents: d27d713
Author: Yaoliang Chen <ya...@cn.ibm.com>
Authored: Mon Apr 18 19:14:37 2016 +0800
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 samples/connectors/build.gradle | 1 +
 samples/utils/build.gradle      | 1 +
 test/svt/build.gradle           | 2 ++
 3 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0a91256c/samples/connectors/build.gradle
----------------------------------------------------------------------
diff --git a/samples/connectors/build.gradle b/samples/connectors/build.gradle
index 3a7580d..361749d 100644
--- a/samples/connectors/build.gradle
+++ b/samples/connectors/build.gradle
@@ -7,6 +7,7 @@ dependencies {
 	compile project(':connectors/jdbc')
 	compile project(':connectors/kafka')
 	compile project(':connectors/mqtt')
+	compile project(':connectors/serial')
 	compile project(':samples/topology')
 	compile project(':samples/utils')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0a91256c/samples/utils/build.gradle
----------------------------------------------------------------------
diff --git a/samples/utils/build.gradle b/samples/utils/build.gradle
index 0ba6b86..b043427 100644
--- a/samples/utils/build.gradle
+++ b/samples/utils/build.gradle
@@ -6,5 +6,6 @@ dependencies {
 	compile project(':providers/development')
 	compile project(':providers/direct')
 	compile project(':utils/metrics')
+	compile project(':analytics/sensors')
 	compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0a91256c/test/svt/build.gradle
----------------------------------------------------------------------
diff --git a/test/svt/build.gradle b/test/svt/build.gradle
index 6321ac8..c59e5da 100644
--- a/test/svt/build.gradle
+++ b/test/svt/build.gradle
@@ -2,5 +2,7 @@ ext.artifact = 'test.svt' // However ArtifactId can be set per artifact in publi
 description = 'SVT'
 
 dependencies {
+	compile project(':connectors/iotf')
+	compile project(':samples/apps')
 	compile project(':providers/development')
 }


[09/16] incubator-quarks git commit: Adding the Eclipse .settings folder to gitignore.

Posted by ca...@apache.org.
Adding the Eclipse .settings folder to gitignore.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/f11318c5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/f11318c5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/f11318c5

Branch: refs/heads/gradle
Commit: f11318c53f17a0fcfca08f88c2b14afe7b78359b
Parents: 13dcfe2
Author: Lance Feagan <lf...@hotmail.com>
Authored: Thu Mar 17 20:43:06 2016 -0500
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/f11318c5/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index f17eb91..32e15c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,6 @@ hs_err_pid*
 
 # gradle build folders
 build/
+
+# Eclipse folders
+.settings/


[14/16] incubator-quarks git commit: merge and resolve conflict

Posted by ca...@apache.org.
merge and resolve conflict


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/0fc884e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/0fc884e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/0fc884e9

Branch: refs/heads/gradle
Commit: 0fc884e94b96adeec90e185dd9b8e66f5786ace0
Parents: 4f98e17 5d4024c
Author: cazen <ca...@apache.org>
Authored: Thu May 19 07:39:01 2016 +0000
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:39:01 2016 +0000

----------------------------------------------------------------------
 api/build.gradle          | 24 +++++++++++
 api/function/build.gradle | 29 ++++++++++----
 api/graph/build.gradle    |  2 +-
 build.gradle              | 90 +++++++++++-------------------------------
 build.xml                 |  5 +++
 settings.gradle           |  5 +++
 spi/build.gradle          | 23 +++++++++++
 spi/graph/build.gradle    |  2 +-
 spi/topology/build.gradle |  2 +-
 9 files changed, 106 insertions(+), 76 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0fc884e9/api/function/build.gradle
----------------------------------------------------------------------
diff --cc api/function/build.gradle
index c4a598d,4afa2db..b4c53c8
--- a/api/function/build.gradle
+++ b/api/function/build.gradle
@@@ -1,23 -1,25 +1,38 @@@
 -// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 -// and to You under the Apache License, Version 2.0.
 +/*
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +ext.artifact = 'api.function' // However ArtifactId can be set per artifact in publishing.publications
 +description = 'The API for buidling functions'
  
- jar {
-     manifest {
-         name = 'Quarks Function API'    // Becomes 'Bundle-Name' in MANIFEST
-         attributes 'Implementation-Title': artifact,
-                    'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
-     }
- }
+ dependencies {
+   compile configurations.qext
+ }
+ 
+ //jar {
+ //  manifest {
+ //   def manifestCp = configurations.qext.files.collect  {
+ //     File file = it
+ //        "../ext/${file.name}"
+ //        }.join(' ')
+ //
+ //   attributes 'Class-Path': manifestCp
+ //  }
+ //}
+ 
+ task copyExt(type: Copy) {
+     from configurations.qext
+     into new File(targetj8, 'ext')
+ }
+ 
+ 
+ build.dependsOn(copyExt)

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0fc884e9/api/graph/build.gradle
----------------------------------------------------------------------
diff --cc api/graph/build.gradle
index bdc55f8,cc3edb9..700ddcb
--- a/api/graph/build.gradle
+++ b/api/graph/build.gradle
@@@ -1,19 -1,6 +1,19 @@@
 -// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 -// and to You under the Apache License, Version 2.0.
 +/*
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +ext.artifact = 'api.graph' // However ArtifactId can be set per artifact in publishing.publications
 +description = 'The graph API'
  
  dependencies {
 -    compile project(':api:oplet')
 +    compile project(':api/oplet')
- }
+ }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0fc884e9/build.gradle
----------------------------------------------------------------------
diff --cc build.gradle
index aa30435,7420faa..3f337a2
--- a/build.gradle
+++ b/build.gradle
@@@ -1,32 -1,12 +1,23 @@@
 -// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 -// and to You under the Apache License, Version 2.0.
 +/*
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
- import org.gradle.api.JavaVersion
  
- def minJavaVersion = JavaVersion.VERSION_1_8;
- ext.buildDir = "${rootDir}/target/gradle"
+ apply plugin: 'base' 
  
- println "buildDir =  $buildDir"
- 
- allprojects {
-     apply plugin: 'idea'
-     apply plugin: 'eclipse'
- }
- 
- task clean(type: Delete) {
- 
-     println "delete =  ${rootProject.ext.buildDir}"
-     delete "${rootProject.ext.buildDir}"
+ ext {
+    jarPrefix = 'quarks.'
+    target = file('target')
+    targetj8 = new File(target, 'java8')
  }
  
  subprojects {

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0fc884e9/settings.gradle
----------------------------------------------------------------------
diff --cc settings.gradle
index fabf9d5,011b49c..e145f27
--- a/settings.gradle
+++ b/settings.gradle
@@@ -1,36 -1,7 +1,41 @@@
 -// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 -// and to You under the Apache License, Version 2.0.
 +/*
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +rootProject.name = 'quarks'
 +//analytics
 +include "analytics/math3", "analytics/sensors"
 +// api
 +include  "api/execution", "api/function", "api/graph", "api/oplet", "api/topology", "api/window"
 +// apps
 +include "apps/iot", "apps/runtime"
 +// connectors
 +include "connectors/common", "connectors/file", "connectors/http", "connectors/iot", "connectors/iotf", "connectors/javax.websocket-client", "connectors/javax.websocket-server", "connectors/jdbc", "connectors/kafka", "connectors/mqtt", "connectors/pubsub", "connectors/quarks.javax.websocket", "connectors/serial", "connectors/wsclient", "connectors/wsclient-javax.websocket"
 +// console
 +include "console/server", "console/servlets"
 +// providers
 +include "providers/direct", "providers/development"
 +// runtime
 +include "runtime/appservice", "runtime/etiao", "runtime/jobregistry", "runtime/jmxcontrol", "runtime/jsoncontrol"
 +// samples
 +include "samples/apps", "samples/connectors", "samples/console", "samples/topology", "samples/utils"
 +// spi
 +include "spi/graph", "spi/topology"
 +// utils
 +include "utils/metrics"
 +// test
 +include "test/fvtiot", "test/svt"
+ 
 -include "api:function", "api:oplet", "api:execution", "api:window",
 -        "api:graph", "api:topology",
 -        "spi:graph", "spi:topology"
++//include "api:function", "api:oplet", "api:execution", "api:window",
++//        "api:graph", "api:topology",
++//        "spi:graph", "spi:topology"
+         

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0fc884e9/spi/graph/build.gradle
----------------------------------------------------------------------
diff --cc spi/graph/build.gradle
index 8c7cd13,d850f58..ee8a4b6
--- a/spi/graph/build.gradle
+++ b/spi/graph/build.gradle
@@@ -1,20 -1,6 +1,20 @@@
 -// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 -// and to You under the Apache License, Version 2.0.
 +/*
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +ext.artifact = 'spi.graph' // However ArtifactId can be set per artifact in publishing.publications
 +description = 'The graph SPI'
  
  dependencies {
 -    compile project(':api:graph')
 +    compile project(':api/graph')
 +    compile project(':api/execution')
- }
+ }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/0fc884e9/spi/topology/build.gradle
----------------------------------------------------------------------
diff --cc spi/topology/build.gradle
index cb68207,c9f6f37..09b558e
--- a/spi/topology/build.gradle
+++ b/spi/topology/build.gradle
@@@ -1,19 -1,6 +1,19 @@@
 -// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 -// and to You under the Apache License, Version 2.0.
 +/*
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +ext.artifact = 'spi.topology' // However ArtifactId can be set per artifact in publishing.publications
 +description = 'The topology SPI'
  
  dependencies {
 -    compile project(':api:topology')
 +    compile project(':api/topology')
- }
+ }


[02/16] incubator-quarks git commit: Working api/api gradle build files

Posted by ca...@apache.org.
Working api/api gradle build files


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/258e6906
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/258e6906
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/258e6906

Branch: refs/heads/gradle
Commit: 258e690663a431b12e0d0a4a562b4f47bf64d6a7
Parents: f68d40a
Author: Daniel J. Debrunner <de...@us.ibm.com>
Authored: Tue Apr 19 17:24:27 2016 -0700
Committer: Daniel J. Debrunner <de...@us.ibm.com>
Committed: Wed May 18 09:59:23 2016 -0700

----------------------------------------------------------------------
 api/build.gradle          | 19 +++++++++++++++++--
 api/function/build.gradle | 25 +++++++++++++++++++++++++
 api/oplet/build.gradle    |  3 +--
 build.gradle              | 22 ++++++++++++++--------
 spi/build.gradle          | 18 ++++++++++++++++--
 5 files changed, 73 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/258e6906/api/build.gradle
----------------------------------------------------------------------
diff --git a/api/build.gradle b/api/build.gradle
index b91f02f..611e8ca 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -3,7 +3,22 @@
 
 subprojects {
     jar {
-       baseName jarPrefix + 'api.' + project.name
-       destinationDir new File(targetj8, 'lib')
+      baseName jarPrefix + 'api.' + project.name
+      destinationDir new File(targetj8, 'lib')
+
+      // Temp to allow existing ant build to work
+      archiveName baseName + '.jar'
+    }
+
+    jar.doFirst {
+      manifest {
+        def manifestCp = configurations.qext.files.collect  {
+        File file = it
+          "../ext/${file.name}"
+          }.join(' ')
+        
+         manifestCp += configurations.compile.copy().collect() { it.getName() }.join(' ')
+         attributes 'Class-Path': manifestCp
+      }
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/258e6906/api/function/build.gradle
----------------------------------------------------------------------
diff --git a/api/function/build.gradle b/api/function/build.gradle
new file mode 100644
index 0000000..4afa2db
--- /dev/null
+++ b/api/function/build.gradle
@@ -0,0 +1,25 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
+// and to You under the Apache License, Version 2.0.
+
+dependencies {
+  compile configurations.qext
+}
+
+//jar {
+//  manifest {
+//   def manifestCp = configurations.qext.files.collect  {
+//     File file = it
+//        "../ext/${file.name}"
+//        }.join(' ')
+//
+//   attributes 'Class-Path': manifestCp
+//  }
+//}
+
+task copyExt(type: Copy) {
+    from configurations.qext
+    into new File(targetj8, 'ext')
+}
+
+
+build.dependsOn(copyExt)

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/258e6906/api/oplet/build.gradle
----------------------------------------------------------------------
diff --git a/api/oplet/build.gradle b/api/oplet/build.gradle
index c63bba2..f52651d 100644
--- a/api/oplet/build.gradle
+++ b/api/oplet/build.gradle
@@ -2,6 +2,5 @@
 // and to You under the Apache License, Version 2.0.
 
 dependencies {
-    compile project(':api:function'), project(':api:window'),
-            project(':api:execution')
+    compile project(':api:window'), project(':api:execution')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/258e6906/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 4f76ba9..cdfa5c4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,13 +1,14 @@
 // Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
 // and to You under the Apache License, Version 2.0.
 
+apply plugin: 'base' 
+
 ext {
    jarPrefix = 'quarks.'
    target = file('target')
    targetj8 = new File(target, 'java8')
 }
 
-
 subprojects {
     version = '0.5.0'
 
@@ -22,17 +23,22 @@ subprojects {
     }
 
     dependencies {
-       qext 'com.google.code.gson:gson:2.2.4'
-       compile configurations.qext
+       qext 'com.google.code.gson:gson:2.2.4',
+                    'org.slf4j:slf4j-api:1.7.12'
        testCompile 'junit:junit:4.12'
     }
 
-   task copyExt(type: Copy) {
-       from configurations.qext
-       into new File(targetj8, 'ext')
-   }
+task copy << {
+    //def manifestCp = ''
+    //configurations.compile.copy().allDependencies
+    //    .each { dep -> println dep.files }
+
+    println configurations.compile.copy().collect() { it.getName() }.join(' ')
+}
 
-   build.dependsOn(copyExt)
 } 
 
+clean.doFirst {
+    delete target
+}
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/258e6906/spi/build.gradle
----------------------------------------------------------------------
diff --git a/spi/build.gradle b/spi/build.gradle
index ac6f17b..484c109 100644
--- a/spi/build.gradle
+++ b/spi/build.gradle
@@ -3,7 +3,21 @@
 
 subprojects {
     jar {
-       baseName jarPrefix + 'spi.' + project.name
-       destinationDir new File(targetj8, 'lib')
+      baseName jarPrefix + 'spi.' + project.name
+      destinationDir new File(targetj8, 'lib')
+
+      // Temp to allow existing ant build to work
+      archiveName baseName + '.jar'
+    }
+    jar.doFirst {
+      manifest {
+        def manifestCp = configurations.qext.files.collect  {
+        File file = it
+          "../ext/${file.name}"
+          }.join(' ')
+        
+         manifestCp += configurations.compile.copy().collect() { it.getName() }.join(' ')
+         attributes 'Class-Path': manifestCp
+      }
     }
 }


[08/16] incubator-quarks git commit: Merge/addition of the gradle build support for the runtime/jobregistry sub-project.

Posted by ca...@apache.org.
Merge/addition of the gradle build support for the runtime/jobregistry sub-project.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/d064b845
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/d064b845
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/d064b845

Branch: refs/heads/gradle
Commit: d064b845e1ae5af29763b4854d9adce786d53271
Parents: 885538d
Author: Lance Feagan <lf...@hotmail.com>
Authored: Thu Mar 17 18:05:35 2016 -0500
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 .project                         | 17 +++++++++++++++--
 runtime/jobregistry/build.gradle |  7 +++++++
 samples/topology/build.gradle    |  1 +
 settings.gradle                  |  2 +-
 4 files changed, 24 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/d064b845/.project
----------------------------------------------------------------------
diff --git a/.project b/.project
index 57466cb..08186a3 100644
--- a/.project
+++ b/.project
@@ -1,5 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-    <name>_quarks</name>
-    <comment>Top level project</comment>
+	<name>_quarks</name>
+	<comment>Top level project</comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
 </projectDescription>

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/d064b845/runtime/jobregistry/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jobregistry/build.gradle b/runtime/jobregistry/build.gradle
new file mode 100644
index 0000000..91aa10e
--- /dev/null
+++ b/runtime/jobregistry/build.gradle
@@ -0,0 +1,7 @@
+ext.artifact = 'runtime.jobregistry' // However ArtifactId can be set per artifact in publishing.publications
+description = 'The runtime job registry library'
+
+dependencies {
+	compile project(':api/execution')
+	compile project(':api/topology')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/d064b845/samples/topology/build.gradle
----------------------------------------------------------------------
diff --git a/samples/topology/build.gradle b/samples/topology/build.gradle
index 2b08fbc..ea3ec5e 100644
--- a/samples/topology/build.gradle
+++ b/samples/topology/build.gradle
@@ -4,4 +4,5 @@ description = 'samples demonstrating add-on functionality'
 dependencies {
 	compile project(':analytics/math3')
 	compile project(':samples/utils')
+	compile project(':runtime/jobregistry')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/d064b845/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 5426e1e..5e0946f 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -11,7 +11,7 @@ include "console/server", "console/servlets"
 // providers
 include "providers/direct", "providers/development"
 // runtime
-include "runtime/appservice", "runtime/etiao", "runtime/jmxcontrol", "runtime/jsoncontrol"
+include "runtime/appservice", "runtime/etiao", "runtime/jobregistry", "runtime/jmxcontrol", "runtime/jsoncontrol"
 // samples
 include "samples/apps", "samples/connectors", "samples/console", "samples/topology", "samples/utils"
 // spi


[06/16] incubator-quarks git commit: add runtime apps

Posted by ca...@apache.org.
add runtime apps


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/2dbccb20
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/2dbccb20
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/2dbccb20

Branch: refs/heads/gradle
Commit: 2dbccb203a0543ca24ee13ceb02c4060dd30ea24
Parents: 0a91256
Author: Yaoliang Chen <ya...@cn.ibm.com>
Authored: Mon Apr 18 19:55:36 2016 +0800
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 apps/runtime/build.gradle | 11 +++++++++++
 settings.gradle           |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/2dbccb20/apps/runtime/build.gradle
----------------------------------------------------------------------
diff --git a/apps/runtime/build.gradle b/apps/runtime/build.gradle
new file mode 100644
index 0000000..a3570c5
--- /dev/null
+++ b/apps/runtime/build.gradle
@@ -0,0 +1,11 @@
+ext.artifact = 'apps.runtime' // However ArtifactId can be set per artifact in publishing.publications
+description = 'Applications utilizing IotDevice'
+
+dependencies {
+	compile project(':api/topology')
+	compile project(':runtime/jobregistry')
+        compile project(':runtime/appservice')
+
+	testCompile project(':providers/direct')
+	testCompile project(':runtime/jmxcontrol')
+}

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/2dbccb20/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 5e0946f..1efd617 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -3,7 +3,7 @@ include "analytics/math3", "analytics/sensors"
 // api
 include  "api/execution", "api/function", "api/graph", "api/oplet", "api/topology", "api/window"
 // apps
-include "apps/iot"
+include "apps/iot", "apps/runtime"
 // connectors
 include "connectors/common", "connectors/file", "connectors/http", "connectors/iot", "connectors/iotf", "connectors/javax.websocket-client", "connectors/javax.websocket-server", "connectors/jdbc", "connectors/kafka", "connectors/mqtt", "connectors/pubsub", "connectors/quarks.javax.websocket", "connectors/serial", "connectors/wsclient", "connectors/wsclient-javax.websocket"
 // console


[13/16] incubator-quarks git commit: Add license header

Posted by ca...@apache.org.
Add license header


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/95b22e06
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/95b22e06
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/95b22e06

Branch: refs/heads/gradle
Commit: 95b22e06378b1b8a0364166a55c9b1cd5feedb12
Parents: 2dbccb2
Author: Cazen Lee <Ca...@korea.com>
Authored: Mon May 9 22:04:05 2016 +0900
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 analytics/math3/build.gradle                     | 13 +++++++++++++
 analytics/sensors/build.gradle                   | 13 +++++++++++++
 api/execution/build.gradle                       | 13 +++++++++++++
 api/function/build.gradle                        | 13 +++++++++++++
 api/graph/build.gradle                           | 13 +++++++++++++
 api/oplet/build.gradle                           | 13 +++++++++++++
 api/topology/build.gradle                        | 13 +++++++++++++
 api/window/build.gradle                          | 13 +++++++++++++
 apps/iot/build.gradle                            | 13 +++++++++++++
 apps/runtime/build.gradle                        | 13 +++++++++++++
 build.gradle                                     | 13 +++++++++++++
 connectors/common/build.gradle                   | 13 +++++++++++++
 connectors/file/build.gradle                     | 13 +++++++++++++
 connectors/http/build.gradle                     | 13 +++++++++++++
 connectors/iot/build.gradle                      | 13 +++++++++++++
 connectors/iotf/build.gradle                     | 13 +++++++++++++
 connectors/javax.websocket-client/build.gradle   | 13 +++++++++++++
 connectors/javax.websocket-server/build.gradle   | 13 +++++++++++++
 connectors/jdbc/build.gradle                     | 13 +++++++++++++
 connectors/kafka/build.gradle                    | 13 +++++++++++++
 connectors/mqtt/build.gradle                     | 13 +++++++++++++
 connectors/pubsub/build.gradle                   | 13 +++++++++++++
 connectors/quarks.javax.websocket/build.gradle   | 13 +++++++++++++
 connectors/serial/build.gradle                   | 13 +++++++++++++
 connectors/wsclient-javax.websocket/build.gradle | 13 +++++++++++++
 connectors/wsclient/build.gradle                 | 13 +++++++++++++
 console/server/build.gradle                      | 13 +++++++++++++
 console/servlets/build.gradle                    | 13 +++++++++++++
 providers/development/build.gradle               | 13 +++++++++++++
 providers/direct/build.gradle                    | 13 +++++++++++++
 runtime/appservice/build.gradle                  | 13 +++++++++++++
 runtime/etiao/build.gradle                       | 13 +++++++++++++
 runtime/jmxcontrol/build.gradle                  | 13 +++++++++++++
 runtime/jobregistry/build.gradle                 | 13 +++++++++++++
 runtime/jsoncontrol/build.gradle                 | 13 +++++++++++++
 samples/apps/build.gradle                        | 13 +++++++++++++
 samples/connectors/build.gradle                  | 13 +++++++++++++
 samples/console/build.gradle                     | 13 +++++++++++++
 samples/topology/build.gradle                    | 13 +++++++++++++
 samples/utils/build.gradle                       | 13 +++++++++++++
 settings.gradle                                  | 13 +++++++++++++
 spi/graph/build.gradle                           | 13 +++++++++++++
 spi/topology/build.gradle                        | 13 +++++++++++++
 test/fvtiot/build.gradle                         | 13 +++++++++++++
 test/svt/build.gradle                            | 13 +++++++++++++
 utils/metrics/build.gradle                       | 13 +++++++++++++
 46 files changed, 598 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/analytics/math3/build.gradle
----------------------------------------------------------------------
diff --git a/analytics/math3/build.gradle b/analytics/math3/build.gradle
index de9ab1f..3c00738 100644
--- a/analytics/math3/build.gradle
+++ b/analytics/math3/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'analytics.math3' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Analytics math functions'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/analytics/sensors/build.gradle
----------------------------------------------------------------------
diff --git a/analytics/sensors/build.gradle b/analytics/sensors/build.gradle
index 82e5b32..43a8955 100644
--- a/analytics/sensors/build.gradle
+++ b/analytics/sensors/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'analytics.sensors' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Analytics aimed at sensor readings'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/api/execution/build.gradle
----------------------------------------------------------------------
diff --git a/api/execution/build.gradle b/api/execution/build.gradle
index 94c97ec..13f3f03 100644
--- a/api/execution/build.gradle
+++ b/api/execution/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'api.execution' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The API for executing flows'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/api/function/build.gradle
----------------------------------------------------------------------
diff --git a/api/function/build.gradle b/api/function/build.gradle
index 5884e87..9c41053 100644
--- a/api/function/build.gradle
+++ b/api/function/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'api.function' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The API for buidling functions'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/api/graph/build.gradle
----------------------------------------------------------------------
diff --git a/api/graph/build.gradle b/api/graph/build.gradle
index 0fb30af..3a37705 100644
--- a/api/graph/build.gradle
+++ b/api/graph/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'api.graph' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The graph API'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/api/oplet/build.gradle
----------------------------------------------------------------------
diff --git a/api/oplet/build.gradle b/api/oplet/build.gradle
index 19da7fa..eef1aa9 100644
--- a/api/oplet/build.gradle
+++ b/api/oplet/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'api.oplet' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The oplet API'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/api/topology/build.gradle
----------------------------------------------------------------------
diff --git a/api/topology/build.gradle b/api/topology/build.gradle
index e9b3e53..d10205a 100644
--- a/api/topology/build.gradle
+++ b/api/topology/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'api.topology' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The topology API'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/api/window/build.gradle
----------------------------------------------------------------------
diff --git a/api/window/build.gradle b/api/window/build.gradle
index 91d6b77..01c4717 100644
--- a/api/window/build.gradle
+++ b/api/window/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'api.window' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The window API'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/apps/iot/build.gradle
----------------------------------------------------------------------
diff --git a/apps/iot/build.gradle b/apps/iot/build.gradle
index 5c62bd4..206cd8f 100644
--- a/apps/iot/build.gradle
+++ b/apps/iot/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'apps.iot' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Applications utilizing IotDevice'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/apps/runtime/build.gradle
----------------------------------------------------------------------
diff --git a/apps/runtime/build.gradle b/apps/runtime/build.gradle
index a3570c5..a327928 100644
--- a/apps/runtime/build.gradle
+++ b/apps/runtime/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'apps.runtime' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Applications utilizing IotDevice'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 8a525c4..b6b720b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 repositories {
 	mavenLocal()
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/common/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/common/build.gradle b/connectors/common/build.gradle
index 96ad5bf..7330ef6 100644
--- a/connectors/common/build.gradle
+++ b/connectors/common/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.common' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Common Connector Code'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/file/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/file/build.gradle b/connectors/file/build.gradle
index 751b8ce..27fcbbc 100644
--- a/connectors/file/build.gradle
+++ b/connectors/file/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.file' // However ArtifactId can be set per artifact in publishing.publications
 description = 'File Connectors'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/http/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/http/build.gradle b/connectors/http/build.gradle
index 0820037..46b5488 100644
--- a/connectors/http/build.gradle
+++ b/connectors/http/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.http' // However ArtifactId can be set per artifact in publishing.publications
 description = 'HTTP Connectors'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/iot/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/iot/build.gradle b/connectors/iot/build.gradle
index 752ed24..9b72989 100644
--- a/connectors/iot/build.gradle
+++ b/connectors/iot/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.iot' // However ArtifactId can be set per artifact in publishing.publications
 description = 'IoT Device API'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/iotf/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/iotf/build.gradle b/connectors/iotf/build.gradle
index 70a33e2..5547d1f 100644
--- a/connectors/iotf/build.gradle
+++ b/connectors/iotf/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.iotf' // However ArtifactId can be set per artifact in publishing.publications
 description = 'IOTF Connectors'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/javax.websocket-client/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/javax.websocket-client/build.gradle b/connectors/javax.websocket-client/build.gradle
index d28427f..fa05a3d 100644
--- a/connectors/javax.websocket-client/build.gradle
+++ b/connectors/javax.websocket-client/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.javax.websocket-client' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Jetty supplied jsr356 WebSocket Client Implementation package'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/javax.websocket-server/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/javax.websocket-server/build.gradle b/connectors/javax.websocket-server/build.gradle
index d9e9d3a..9ee8fe4 100644
--- a/connectors/javax.websocket-server/build.gradle
+++ b/connectors/javax.websocket-server/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.javax.websocket-server' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Jetty supplied JSR 356 WebSocket Server Implementation package'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/jdbc/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/jdbc/build.gradle b/connectors/jdbc/build.gradle
index aaf1d2c..0677900 100644
--- a/connectors/jdbc/build.gradle
+++ b/connectors/jdbc/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.jdbc' // However ArtifactId can be set per artifact in publishing.publications
 description = 'JDBC Connectors'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/kafka/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/kafka/build.gradle b/connectors/kafka/build.gradle
index 38439e7..ac354ce 100644
--- a/connectors/kafka/build.gradle
+++ b/connectors/kafka/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.kafka' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Kafka Connectors'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/mqtt/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/mqtt/build.gradle b/connectors/mqtt/build.gradle
index 6f91e25..580d8d4 100644
--- a/connectors/mqtt/build.gradle
+++ b/connectors/mqtt/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.mqtt' // However ArtifactId can be set per artifact in publishing.publications
 description = 'MQTT Connectors'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/pubsub/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/pubsub/build.gradle b/connectors/pubsub/build.gradle
index 637d3de..f81c72e 100644
--- a/connectors/pubsub/build.gradle
+++ b/connectors/pubsub/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.pubsub' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Publish Subscribe connector and service.'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/quarks.javax.websocket/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/quarks.javax.websocket/build.gradle b/connectors/quarks.javax.websocket/build.gradle
index c15836f..9b7fb19 100644
--- a/connectors/quarks.javax.websocket/build.gradle
+++ b/connectors/quarks.javax.websocket/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.websocket' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Special Quarks javax.websocket bundle'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/serial/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/serial/build.gradle b/connectors/serial/build.gradle
index b638e75..9d78c55 100644
--- a/connectors/serial/build.gradle
+++ b/connectors/serial/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.serial' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Serial Connector API'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/wsclient-javax.websocket/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/wsclient-javax.websocket/build.gradle b/connectors/wsclient-javax.websocket/build.gradle
index 68273ca..7c1014f 100644
--- a/connectors/wsclient-javax.websocket/build.gradle
+++ b/connectors/wsclient-javax.websocket/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.wsclient-javax.websocket' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Build JSR356 javax.websocket based WebSocket Client connector'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/connectors/wsclient/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/wsclient/build.gradle b/connectors/wsclient/build.gradle
index 771157c..34e4d34 100644
--- a/connectors/wsclient/build.gradle
+++ b/connectors/wsclient/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'connectors.wsclient' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Build WebSocket Client connector API.'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/console/server/build.gradle
----------------------------------------------------------------------
diff --git a/console/server/build.gradle b/console/server/build.gradle
index 010b277..970249e 100644
--- a/console/server/build.gradle
+++ b/console/server/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'console.server' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Console Server'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/console/servlets/build.gradle
----------------------------------------------------------------------
diff --git a/console/servlets/build.gradle b/console/servlets/build.gradle
index 74b3685..b003ef4 100644
--- a/console/servlets/build.gradle
+++ b/console/servlets/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 buildscript {
 	repositories {
 		jcenter()

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/providers/development/build.gradle
----------------------------------------------------------------------
diff --git a/providers/development/build.gradle b/providers/development/build.gradle
index 1533ef7..0a8c4f1 100644
--- a/providers/development/build.gradle
+++ b/providers/development/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'providers.development' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The development topology provider'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/providers/direct/build.gradle
----------------------------------------------------------------------
diff --git a/providers/direct/build.gradle b/providers/direct/build.gradle
index 9a9c279..8a4b472 100644
--- a/providers/direct/build.gradle
+++ b/providers/direct/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'providers.direct' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The direct topology provider'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/runtime/appservice/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/appservice/build.gradle b/runtime/appservice/build.gradle
index 89c3049..154ed2e 100644
--- a/runtime/appservice/build.gradle
+++ b/runtime/appservice/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'runtime.appservice' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The runtime application service library'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/runtime/etiao/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/etiao/build.gradle b/runtime/etiao/build.gradle
index c010902..6e30f70 100644
--- a/runtime/etiao/build.gradle
+++ b/runtime/etiao/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'runtime.etiao' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The runtime Everything Is An Oplet (ETIAO) library'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/runtime/jmxcontrol/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jmxcontrol/build.gradle b/runtime/jmxcontrol/build.gradle
index ad687f3..d20ff34 100644
--- a/runtime/jmxcontrol/build.gradle
+++ b/runtime/jmxcontrol/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'runtime.jmxcontrol' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The runtime JMX control library'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/runtime/jobregistry/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jobregistry/build.gradle b/runtime/jobregistry/build.gradle
index 91aa10e..ff82c9a 100644
--- a/runtime/jobregistry/build.gradle
+++ b/runtime/jobregistry/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'runtime.jobregistry' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The runtime job registry library'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/runtime/jsoncontrol/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jsoncontrol/build.gradle b/runtime/jsoncontrol/build.gradle
index e4f61c9..60e2891 100644
--- a/runtime/jsoncontrol/build.gradle
+++ b/runtime/jsoncontrol/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'runtime.jsoncontrol' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The runtime JSON control library'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/samples/apps/build.gradle
----------------------------------------------------------------------
diff --git a/samples/apps/build.gradle b/samples/apps/build.gradle
index 2272250..32c44e0 100644
--- a/samples/apps/build.gradle
+++ b/samples/apps/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'samples.apps' // However ArtifactId can be set per artifact in publishing.publications
 description = 'Sample applications'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/samples/connectors/build.gradle
----------------------------------------------------------------------
diff --git a/samples/connectors/build.gradle b/samples/connectors/build.gradle
index 361749d..a0e3763 100644
--- a/samples/connectors/build.gradle
+++ b/samples/connectors/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'samples.connectors' // However ArtifactId can be set per artifact in publishing.publications
 description = 'samples demonstrating connector functionality'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/samples/console/build.gradle
----------------------------------------------------------------------
diff --git a/samples/console/build.gradle b/samples/console/build.gradle
index da6cfd4..694f74c 100644
--- a/samples/console/build.gradle
+++ b/samples/console/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'samples.console' // However ArtifactId can be set per artifact in publishing.publications
 description = 'samples demonstrating console functionality'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/samples/topology/build.gradle
----------------------------------------------------------------------
diff --git a/samples/topology/build.gradle b/samples/topology/build.gradle
index ea3ec5e..e29e9c5 100644
--- a/samples/topology/build.gradle
+++ b/samples/topology/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'samples.topology' // However ArtifactId can be set per artifact in publishing.publications
 description = 'samples demonstrating add-on functionality'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/samples/utils/build.gradle
----------------------------------------------------------------------
diff --git a/samples/utils/build.gradle b/samples/utils/build.gradle
index b043427..318bbe1 100644
--- a/samples/utils/build.gradle
+++ b/samples/utils/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'samples.utils' // However ArtifactId can be set per artifact in publishing.publications
 description = 'samples demonstrating add-on functionality'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 1efd617..f4d652d 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 //analytics
 include "analytics/math3", "analytics/sensors"
 // api

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/spi/graph/build.gradle
----------------------------------------------------------------------
diff --git a/spi/graph/build.gradle b/spi/graph/build.gradle
index 70452df..68074a0 100644
--- a/spi/graph/build.gradle
+++ b/spi/graph/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'spi.graph' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The graph SPI'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/spi/topology/build.gradle
----------------------------------------------------------------------
diff --git a/spi/topology/build.gradle b/spi/topology/build.gradle
index 46fdab0..29873fe 100644
--- a/spi/topology/build.gradle
+++ b/spi/topology/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'spi.topology' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The topology SPI'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/test/fvtiot/build.gradle
----------------------------------------------------------------------
diff --git a/test/fvtiot/build.gradle b/test/fvtiot/build.gradle
index f689f44..404f64e 100644
--- a/test/fvtiot/build.gradle
+++ b/test/fvtiot/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'test.fvtiot' // However ArtifactId can be set per artifact in publishing.publications
 description = 'FVT for IoT scenario'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/test/svt/build.gradle
----------------------------------------------------------------------
diff --git a/test/svt/build.gradle b/test/svt/build.gradle
index c59e5da..4207f3e 100644
--- a/test/svt/build.gradle
+++ b/test/svt/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'test.svt' // However ArtifactId can be set per artifact in publishing.publications
 description = 'SVT'
 

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/95b22e06/utils/metrics/build.gradle
----------------------------------------------------------------------
diff --git a/utils/metrics/build.gradle b/utils/metrics/build.gradle
index c24bc33..cd0ecb4 100644
--- a/utils/metrics/build.gradle
+++ b/utils/metrics/build.gradle
@@ -1,3 +1,16 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 ext.artifact = 'utils.metrics' // However ArtifactId can be set per artifact in publishing.publications
 description = 'The metrics add-on'
 


[12/16] incubator-quarks git commit: Backing out osgi for the moment. Seems to cause a problem with one of the sub-projects.

Posted by ca...@apache.org.
Backing out osgi for the moment. Seems to cause a problem with one of the sub-projects.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/d27d7136
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/d27d7136
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/d27d7136

Branch: refs/heads/gradle
Commit: d27d71361b5e3fb883b6f3253dbff528849bb175
Parents: 785ff45
Author: Lance Feagan <lf...@hotmail.com>
Authored: Thu Mar 17 20:58:19 2016 -0500
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 build.gradle | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/d27d7136/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index ac4f84a..8a525c4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ getDate();
 subprojects {
 	apply plugin: 'java'
 	apply plugin: 'maven-publish'
-	apply plugin: 'osgi'
+	//apply plugin: 'osgi'
 	
 	group = 'org.apache.quarks'
 
@@ -45,9 +45,9 @@ subprojects {
 			attributes 'Implementation-Version': version,
 				       'Implementation-Vendor' : 'quarks-edge@github.com'
 //					   'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
-			instruction 'Bundle-Vendor', 'Apache Foundation'
-			instruction 'Bundle-Description', 'Quarks'
-			instruction 'Bundle-DocURL', 'http://quarks-edge.github.io/'
+		//	instruction 'Bundle-Vendor', 'Apache Foundation'
+		//	instruction 'Bundle-Description', 'Quarks'
+		//	instruction 'Bundle-DocURL', 'http://quarks-edge.github.io/'
 		}
 		
 		/*- From common-build.xml


[04/16] incubator-quarks git commit: add jsoncontrol and replace tab to space

Posted by ca...@apache.org.
add jsoncontrol and replace tab to space


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/4f98e17d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/4f98e17d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/4f98e17d

Branch: refs/heads/gradle
Commit: 4f98e17dd98d4642b63fb78ff3bc9d935730b783
Parents: 95b22e0
Author: Cazen Lee <Ca...@korea.com>
Authored: Mon May 9 23:39:01 2016 +0900
Committer: cazen <ca...@apache.org>
Committed: Thu May 19 07:34:11 2016 +0000

----------------------------------------------------------------------
 analytics/math3/build.gradle                    |  10 +-
 analytics/sensors/build.gradle                  |   8 +-
 api/execution/build.gradle                      |   2 +-
 api/function/build.gradle                       |  12 +-
 api/graph/build.gradle                          |   4 +-
 api/oplet/build.gradle                          |   6 +-
 api/topology/build.gradle                       |   4 +-
 api/window/build.gradle                         |   2 +-
 apps/iot/build.gradle                           |   8 +-
 apps/runtime/build.gradle                       |   8 +-
 build.gradle                                    | 158 +++++++++----------
 connectors/common/build.gradle                  |  10 +-
 connectors/file/build.gradle                    |  10 +-
 connectors/http/build.gradle                    |  10 +-
 connectors/iot/build.gradle                     |   2 +-
 connectors/iotf/build.gradle                    |  14 +-
 connectors/javax.websocket-client/build.gradle  |  16 +-
 connectors/javax.websocket-server/build.gradle  |   2 +-
 connectors/jdbc/build.gradle                    |  10 +-
 connectors/kafka/build.gradle                   |  24 +--
 connectors/mqtt/build.gradle                    |  16 +-
 connectors/pubsub/build.gradle                  |   8 +-
 connectors/quarks.javax.websocket/build.gradle  |   4 +-
 connectors/serial/build.gradle                  |   2 +-
 .../wsclient-javax.websocket/build.gradle       |  48 +++---
 connectors/wsclient/build.gradle                |   2 +-
 console/server/build.gradle                     |  18 +--
 console/servlets/build.gradle                   |  40 ++---
 gradle.properties                               |  25 +++
 providers/development/build.gradle              |  10 +-
 providers/direct/build.gradle                   |  15 +-
 runtime/appservice/build.gradle                 |   4 +-
 runtime/etiao/build.gradle                      |   6 +-
 runtime/jmxcontrol/build.gradle                 |   4 +-
 runtime/jobregistry/build.gradle                |   4 +-
 runtime/jsoncontrol/build.gradle                |   4 +-
 samples/apps/build.gradle                       |  12 +-
 samples/connectors/build.gradle                 |  18 +--
 samples/console/build.gradle                    |   8 +-
 samples/topology/build.gradle                   |   8 +-
 samples/utils/build.gradle                      |  14 +-
 settings.gradle                                 |   1 +
 spi/graph/build.gradle                          |   6 +-
 spi/topology/build.gradle                       |   4 +-
 test/fvtiot/build.gradle                        |   8 +-
 test/svt/build.gradle                           |   8 +-
 utils/metrics/build.gradle                      |  10 +-
 47 files changed, 323 insertions(+), 304 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/analytics/math3/build.gradle
----------------------------------------------------------------------
diff --git a/analytics/math3/build.gradle b/analytics/math3/build.gradle
index 3c00738..3e46941 100644
--- a/analytics/math3/build.gradle
+++ b/analytics/math3/build.gradle
@@ -15,9 +15,9 @@ ext.artifact = 'analytics.math3' // However ArtifactId can be set per artifact i
 description = 'Analytics math functions'
 
 dependencies {
-	compile project(':api/topology')
-	compile files('./ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
+    compile project(':api/topology')
+    compile files('./ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/analytics/sensors/build.gradle
----------------------------------------------------------------------
diff --git a/analytics/sensors/build.gradle b/analytics/sensors/build.gradle
index 43a8955..a9835e9 100644
--- a/analytics/sensors/build.gradle
+++ b/analytics/sensors/build.gradle
@@ -15,8 +15,8 @@ ext.artifact = 'analytics.sensors' // However ArtifactId can be set per artifact
 description = 'Analytics aimed at sensor readings'
 
 dependencies {
-	compile project(':api/topology')
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
+    compile project(':api/topology')
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/api/execution/build.gradle
----------------------------------------------------------------------
diff --git a/api/execution/build.gradle b/api/execution/build.gradle
index 13f3f03..a984d05 100644
--- a/api/execution/build.gradle
+++ b/api/execution/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'api.execution' // However ArtifactId can be set per artifact in
 description = 'The API for executing flows'
 
 dependencies {
-	compile project(':api/function')
+    compile project(':api/function')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/api/function/build.gradle
----------------------------------------------------------------------
diff --git a/api/function/build.gradle b/api/function/build.gradle
index 9c41053..c4a598d 100644
--- a/api/function/build.gradle
+++ b/api/function/build.gradle
@@ -15,9 +15,9 @@ ext.artifact = 'api.function' // However ArtifactId can be set per artifact in p
 description = 'The API for buidling functions'
 
 jar {
-	manifest {
-		name = 'Quarks Function API'	// Becomes 'Bundle-Name' in MANIFEST
-		attributes 'Implementation-Title': artifact,
-		           'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
-	}
-}
+    manifest {
+        name = 'Quarks Function API'    // Becomes 'Bundle-Name' in MANIFEST
+        attributes 'Implementation-Title': artifact,
+                   'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/api/graph/build.gradle
----------------------------------------------------------------------
diff --git a/api/graph/build.gradle b/api/graph/build.gradle
index 3a37705..bdc55f8 100644
--- a/api/graph/build.gradle
+++ b/api/graph/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'api.graph' // However ArtifactId can be set per artifact in publ
 description = 'The graph API'
 
 dependencies {
-	compile project(':api/oplet')
-}
+    compile project(':api/oplet')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/api/oplet/build.gradle
----------------------------------------------------------------------
diff --git a/api/oplet/build.gradle b/api/oplet/build.gradle
index eef1aa9..5347e9d 100644
--- a/api/oplet/build.gradle
+++ b/api/oplet/build.gradle
@@ -15,7 +15,7 @@ ext.artifact = 'api.oplet' // However ArtifactId can be set per artifact in publ
 description = 'The oplet API'
 
 dependencies {
-	compile project(':api/execution')
-	compile project(':api/function')
-	compile project(':api/window')
+    compile project(':api/execution')
+    compile project(':api/function')
+    compile project(':api/window')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/api/topology/build.gradle
----------------------------------------------------------------------
diff --git a/api/topology/build.gradle b/api/topology/build.gradle
index d10205a..5ddaaa8 100644
--- a/api/topology/build.gradle
+++ b/api/topology/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'api.topology' // However ArtifactId can be set per artifact in p
 description = 'The topology API'
 
 dependencies {
-	compile project(':api/execution')
-	compile project(':api/graph')
+    compile project(':api/execution')
+    compile project(':api/graph')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/api/window/build.gradle
----------------------------------------------------------------------
diff --git a/api/window/build.gradle b/api/window/build.gradle
index 01c4717..eb8b991 100644
--- a/api/window/build.gradle
+++ b/api/window/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'api.window' // However ArtifactId can be set per artifact in pub
 description = 'The window API'
 
 dependencies {
-	compile project(':api/function')
+    compile project(':api/function')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/apps/iot/build.gradle
----------------------------------------------------------------------
diff --git a/apps/iot/build.gradle b/apps/iot/build.gradle
index 206cd8f..dfa0a9d 100644
--- a/apps/iot/build.gradle
+++ b/apps/iot/build.gradle
@@ -15,9 +15,9 @@ ext.artifact = 'apps.iot' // However ArtifactId can be set per artifact in publi
 description = 'Applications utilizing IotDevice'
 
 dependencies {
-	compile project(':api/topology')
-	compile project(':connectors/iot')
-	compile project(':connectors/pubsub')
+    compile project(':api/topology')
+    compile project(':connectors/iot')
+    compile project(':connectors/pubsub')
 
-	testCompile project(':providers/direct')
+    testCompile project(':providers/direct')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/apps/runtime/build.gradle
----------------------------------------------------------------------
diff --git a/apps/runtime/build.gradle b/apps/runtime/build.gradle
index a327928..562d9eb 100644
--- a/apps/runtime/build.gradle
+++ b/apps/runtime/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'apps.runtime' // However ArtifactId can be set per artifact in p
 description = 'Applications utilizing IotDevice'
 
 dependencies {
-	compile project(':api/topology')
-	compile project(':runtime/jobregistry')
+    compile project(':api/topology')
+    compile project(':runtime/jobregistry')
         compile project(':runtime/appservice')
 
-	testCompile project(':providers/direct')
-	testCompile project(':runtime/jmxcontrol')
+    testCompile project(':providers/direct')
+    testCompile project(':runtime/jmxcontrol')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index b6b720b..aa30435 100644
--- a/build.gradle
+++ b/build.gradle
@@ -11,92 +11,84 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-repositories {
-	mavenLocal()
-}
+import org.gradle.api.JavaVersion
+
+def minJavaVersion = JavaVersion.VERSION_1_8;
+ext.buildDir = "${rootDir}/target/gradle"
 
-// SET PROJECT INFO for all artifacts
-assert hasProperty('version')	// See version in gradle.properties.
-System.out.println("version=${version}")
-group = 'org.apache.quarks'
+println "buildDir =  $buildDir"
 
-def getDate() {
-	if (!hasProperty('buildDate') || buildDate == null) {
-		ext.buildDate = new java.util.Date().format('yyyyMMddHHmm');
-	}
-	return ext.buildDate;
+allprojects {
+    apply plugin: 'idea'
+    apply plugin: 'eclipse'
 }
 
-getDate();
+task clean(type: Delete) {
 
-subprojects {
-	apply plugin: 'java'
-	apply plugin: 'maven-publish'
-	//apply plugin: 'osgi'
-	
-	group = 'org.apache.quarks'
-
-	repositories {
-	   mavenCentral()
-	}
-
-	dependencies {
-		compile group: 'com.google.code.gson' , name: 'gson' , version: '2.2.4'
-		compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
-		compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.1.2'
-		testCompile 'junit:junit:4.8.2'
-		testCompile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.12'
-	}
-
-	version = '0.4.0'
-
-	jar {
-		manifest.attributes provider: 'Apache Foundation'
-		
-		manifest {
-//			attributes 'Implementation-Title': ext.artifact,
-			attributes 'Implementation-Version': version,
-				       'Implementation-Vendor' : 'quarks-edge@github.com'
-//					   'Class-Path' : configurations.compile.collect { it.getName() }.join(' ')
-		//	instruction 'Bundle-Vendor', 'Apache Foundation'
-		//	instruction 'Bundle-Description', 'Quarks'
-		//	instruction 'Bundle-DocURL', 'http://quarks-edge.github.io/'
-		}
-		
-		/*- From common-build.xml
-		<attribute name="Implementation-Title" value="${ant.project.name}"/>
-		<attribute name="Implementation-Version" value="${commithash}-${DSTAMP}-${TSTAMP}"/>
-		<attribute name="Implementation-Vendor" value="quarks-edge@github.com"/>
-		<attribute name="Class-Path" value="${jar.classpath}"/>
-		*/		
-	}
-	
-	task sourceJar(type: Jar) {
-		// baseName-appendix-version-classifier.extension
-		from sourceSets.main.allJava
-		classifier = 'sources'
-	}
-	
-	task javadocJar(type: Jar, dependsOn: 'javadoc') {
-		from javadoc.destinationDir
-		classifier = 'javadoc'
-	}
-
-	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')
-				}
-			}
-		}
-	}
-
-	task listAllDependencies(type: DependencyReportTask) {}
+    println "delete =  ${rootProject.ext.buildDir}"
+    delete "${rootProject.ext.buildDir}"
 }
+
+subprojects {
+    apply plugin: 'java'
+    apply plugin: 'maven-publish'
+
+    repositories {
+        mavenCentral()
+    }
+
+    tasks.withType(Jar) {
+        println "withTypeJar : ${rootProject.ext.buildDir}/$project.name/lib"
+        destinationDir = file("${rootProject.ext.buildDir}/$project.name/lib")
+    }
+
+    dependencies {
+        compile group: 'com.google.code.gson', name: 'gson', version: '2.2.4'
+        compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
+        compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.1.2'
+        testCompile 'junit:junit:4.8.2'
+        testCompile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.12'
+    }
+
+    test {
+        filter {
+            //include specific method in any of the tests
+            includeTestsMatching "quarks.test.*"
+            exclude  "TestManual*"
+        }
+    }
+
+    jar {
+        archiveName = "${rootProject.name}.${project.name}.jar".replaceAll("/", ".")
+
+        if (project.hasProperty('moduleName') && !projectName.equals(moduleName)) {
+            appendix = moduleName
+        }
+
+        manifest.attributes provider: 'Apache Software Foundation'
+
+        manifest {
+            attributes 'Implementation-Version': version,
+                    'Implementation-Vendor': 'dev@quarks.incubator.apache.org'
+        }
+    }
+
+    task copyToLib(type: Copy) {
+        println "copyToLibJar : ${rootProject.ext.buildDir}/$project.name/ext"
+        into "${rootProject.ext.buildDir}/$project.name/ext"
+        from configurations.compile.filter{!it.name.startsWith('quarks')}
+    }
+
+    task sourceJar(type: Jar) {
+        // baseName-appendix-version-classifier.extension
+        from sourceSets.main.allJava
+        classifier = 'sources'
+    }
+
+    task javadocJar(type: Jar, dependsOn: 'javadoc') {
+        from javadoc.destinationDir
+        classifier = 'javadoc'
+    }
+
+    task listAllDependencies(type: DependencyReportTask) {}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/common/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/common/build.gradle b/connectors/common/build.gradle
index 7330ef6..6d0838a 100644
--- a/connectors/common/build.gradle
+++ b/connectors/common/build.gradle
@@ -15,9 +15,9 @@ ext.artifact = 'connectors.common' // However ArtifactId can be set per artifact
 description = 'Common Connector Code'
 
 dependencies {
-	compile project(':api/topology')
-	
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
+    compile project(':api/topology')
+
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/file/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/file/build.gradle b/connectors/file/build.gradle
index 27fcbbc..c7a38e6 100644
--- a/connectors/file/build.gradle
+++ b/connectors/file/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'connectors.file' // However ArtifactId can be set per artifact i
 description = 'File Connectors'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':connectors/common').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':connectors/common').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/http/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/http/build.gradle b/connectors/http/build.gradle
index 46b5488..86071b5 100644
--- a/connectors/http/build.gradle
+++ b/connectors/http/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'connectors.http' // However ArtifactId can be set per artifact i
 description = 'HTTP Connectors'
 
 dependencies {
-	compile project(':api/topology')
-	compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
+    compile project(':api/topology')
+    compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/iot/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/iot/build.gradle b/connectors/iot/build.gradle
index 9b72989..bc321d6 100644
--- a/connectors/iot/build.gradle
+++ b/connectors/iot/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'connectors.iot' // However ArtifactId can be set per artifact in
 description = 'IoT Device API'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/iotf/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/iotf/build.gradle b/connectors/iotf/build.gradle
index 5547d1f..695623c 100644
--- a/connectors/iotf/build.gradle
+++ b/connectors/iotf/build.gradle
@@ -15,11 +15,11 @@ ext.artifact = 'connectors.iotf' // However ArtifactId can be set per artifact i
 description = 'IOTF Connectors'
 
 dependencies {
-	compile project(':api/topology')
-	compile project(':connectors/iot')
-	// compile group: 'joda-time', name: 'joda-time', version: '2.6'
-	// compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
-	compile files('./ext/com.ibm.iotf.client-0.0.9.jar')
-	compile files('./ext/lib/joda-time-2.6.jar')
-	compile files('./ext/lib/org.eclipse.paho.client.mqttv3-1.0.3-20150818.040635-202.jar')
+    compile project(':api/topology')
+    compile project(':connectors/iot')
+    // compile group: 'joda-time', name: 'joda-time', version: '2.6'
+    // compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
+    compile files('./ext/com.ibm.iotf.client-0.0.9.jar')
+    compile files('./ext/lib/joda-time-2.6.jar')
+    compile files('./ext/lib/org.eclipse.paho.client.mqttv3-1.0.3-20150818.040635-202.jar')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/javax.websocket-client/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/javax.websocket-client/build.gradle b/connectors/javax.websocket-client/build.gradle
index fa05a3d..2aebec4 100644
--- a/connectors/javax.websocket-client/build.gradle
+++ b/connectors/javax.websocket-client/build.gradle
@@ -15,13 +15,13 @@ ext.artifact = 'connectors.javax.websocket-client' // However ArtifactId can be
 description = 'Jetty supplied jsr356 WebSocket Client Implementation package'
 
 dependencies {
-	compile project(':connectors/quarks.javax.websocket')
+    compile project(':connectors/quarks.javax.websocket')
 
-	//compile 'org.eclipse.jetty.websocket:websocket-api:9.3.6.v20151106'
-	compile files('./ext/javax-websocket-client-impl-9.3.6.v20151106.jar')
-	compile files('./ext/javax.websocket-api-1.0.jar')
-	compile files('./ext/jetty-util-9.3.6.v20151106.jar')
-	compile files('./ext/websocket-api-9.3.6.v20151106.jar')
-	compile files('./ext/websocket-client-9.3.6.v20151106.jar')
-	compile files('./ext/websocket-common-9.3.6.v20151106.jar')
+    //compile 'org.eclipse.jetty.websocket:websocket-api:9.3.6.v20151106'
+    compile files('./ext/javax-websocket-client-impl-9.3.6.v20151106.jar')
+    compile files('./ext/javax.websocket-api-1.0.jar')
+    compile files('./ext/jetty-util-9.3.6.v20151106.jar')
+    compile files('./ext/websocket-api-9.3.6.v20151106.jar')
+    compile files('./ext/websocket-client-9.3.6.v20151106.jar')
+    compile files('./ext/websocket-common-9.3.6.v20151106.jar')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/javax.websocket-server/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/javax.websocket-server/build.gradle b/connectors/javax.websocket-server/build.gradle
index 9ee8fe4..c1a4a71 100644
--- a/connectors/javax.websocket-server/build.gradle
+++ b/connectors/javax.websocket-server/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'connectors.javax.websocket-server' // However ArtifactId can be
 description = 'Jetty supplied JSR 356 WebSocket Server Implementation package'
 
 dependencies {
-	compile project(':connectors/javax.websocket-client')
+    compile project(':connectors/javax.websocket-client')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/jdbc/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/jdbc/build.gradle b/connectors/jdbc/build.gradle
index 0677900..cc2c50e 100644
--- a/connectors/jdbc/build.gradle
+++ b/connectors/jdbc/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'connectors.jdbc' // However ArtifactId can be set per artifact i
 description = 'JDBC Connectors'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':connectors/common').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':connectors/common').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/kafka/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/kafka/build.gradle b/connectors/kafka/build.gradle
index ac354ce..0906dd4 100644
--- a/connectors/kafka/build.gradle
+++ b/connectors/kafka/build.gradle
@@ -15,17 +15,17 @@ ext.artifact = 'connectors.kafka' // However ArtifactId can be set per artifact
 description = 'Kafka Connectors'
 
 dependencies {
-	compile project(':api/topology')
-	compile files('./ext/kafka-clients-0.8.2.2.jar')
-	compile files('./ext/kafka_2.10-0.8.2.2.jar')
-	compile files('./ext/log4j-1.2.16.jar')
-	compile files('./ext/metrics-core-2.2.0.jar')
-	compile files('./ext/scala-library-2.10.4.jar')
-	compile files('./ext/zkclient-0.3.jar')
-	compile files('./ext/zookeeper-3.4.6.jar')
+    compile project(':api/topology')
+    compile files('./ext/kafka-clients-0.8.2.2.jar')
+    compile files('./ext/kafka_2.10-0.8.2.2.jar')
+    compile files('./ext/log4j-1.2.16.jar')
+    compile files('./ext/metrics-core-2.2.0.jar')
+    compile files('./ext/scala-library-2.10.4.jar')
+    compile files('./ext/zkclient-0.3.jar')
+    compile files('./ext/zookeeper-3.4.6.jar')
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':connectors/common').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':connectors/common').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/mqtt/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/mqtt/build.gradle b/connectors/mqtt/build.gradle
index 580d8d4..3583c64 100644
--- a/connectors/mqtt/build.gradle
+++ b/connectors/mqtt/build.gradle
@@ -15,13 +15,13 @@ ext.artifact = 'connectors.mqtt' // However ArtifactId can be set per artifact i
 description = 'MQTT Connectors'
 
 dependencies {
-	compile project(':api/topology')
-	compile project(':connectors/common')
-	compile project(':connectors/iot')
-	compile files('./ext/org.eclipse.paho.client.mqttv3-1.0.2.jar')
+    compile project(':api/topology')
+    compile project(':connectors/common')
+    compile project(':connectors/iot')
+    compile files('./ext/org.eclipse.paho.client.mqttv3-1.0.2.jar')
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':connectors/common').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':connectors/common').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/pubsub/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/pubsub/build.gradle b/connectors/pubsub/build.gradle
index f81c72e..95e0552 100644
--- a/connectors/pubsub/build.gradle
+++ b/connectors/pubsub/build.gradle
@@ -15,9 +15,9 @@ ext.artifact = 'connectors.pubsub' // However ArtifactId can be set per artifact
 description = 'Publish Subscribe connector and service.'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/quarks.javax.websocket/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/quarks.javax.websocket/build.gradle b/connectors/quarks.javax.websocket/build.gradle
index 9b7fb19..e19e4a0 100644
--- a/connectors/quarks.javax.websocket/build.gradle
+++ b/connectors/quarks.javax.websocket/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'connectors.websocket' // However ArtifactId can be set per artif
 description = 'Special Quarks javax.websocket bundle'
 
 dependencies {
-	//compile 'org.eclipse.jetty.websocket:websocket-api:9.3.6.v20151106'
-	compile files('./ext/javax.websocket-api-1.0.jar')
+    //compile 'org.eclipse.jetty.websocket:websocket-api:9.3.6.v20151106'
+    compile files('./ext/javax.websocket-api-1.0.jar')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/serial/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/serial/build.gradle b/connectors/serial/build.gradle
index 9d78c55..654077c 100644
--- a/connectors/serial/build.gradle
+++ b/connectors/serial/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'connectors.serial' // However ArtifactId can be set per artifact
 description = 'Serial Connector API'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/wsclient-javax.websocket/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/wsclient-javax.websocket/build.gradle b/connectors/wsclient-javax.websocket/build.gradle
index 7c1014f..8a0385c 100644
--- a/connectors/wsclient-javax.websocket/build.gradle
+++ b/connectors/wsclient-javax.websocket/build.gradle
@@ -15,31 +15,31 @@ ext.artifact = 'connectors.wsclient-javax.websocket' // However ArtifactId can b
 description = 'Build JSR356 javax.websocket based WebSocket Client connector'
 
 dependencies {
-	compile project(':api/topology')
-	compile project(':connectors/common')
-	compile project(':connectors/wsclient')
-	compile project(':connectors/quarks.javax.websocket')
-	compile files('./ext/javax.websocket-api-1.0.jar')
+    compile project(':api/topology')
+    compile project(':connectors/common')
+    compile project(':connectors/wsclient')
+    compile project(':connectors/quarks.javax.websocket')
+    compile files('./ext/javax.websocket-api-1.0.jar')
 
-	testCompile project(':providers/direct')
-	testCompile project(':providers/direct').sourceSets.test.output
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':connectors/common').sourceSets.test.output
-	testCompile project(':connectors/javax.websocket-client')
-	testCompile project(':connectors/javax.websocket-server')
+    testCompile project(':providers/direct')
+    testCompile project(':providers/direct').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':connectors/common').sourceSets.test.output
+    testCompile project(':connectors/javax.websocket-client')
+    testCompile project(':connectors/javax.websocket-server')
 
-	testCompile files('../javax.websocket-server/ext/javax-websocket-server-impl-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/jetty-http-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/jetty-io-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/jetty-security-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/jetty-server-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/jetty-servlet-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/servlet-api-3.1.jar')
-	testCompile files('../javax.websocket-server/ext/websocket-server-9.3.6.v20151106.jar')
-	testCompile files('../javax.websocket-server/ext/websocket-servlet-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/javax-websocket-server-impl-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/jetty-http-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/jetty-io-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/jetty-security-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/jetty-server-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/jetty-servlet-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/servlet-api-3.1.jar')
+    testCompile files('../javax.websocket-server/ext/websocket-server-9.3.6.v20151106.jar')
+    testCompile files('../javax.websocket-server/ext/websocket-servlet-9.3.6.v20151106.jar')
 
-//	testCompile project(':connectors/javax.websocket-client').configurations.runtime
-//	testCompile project(':connectors/javax.websocket-server').configurations.compile
-//	testCompile files('../javax.websocket-server/ext/jetty-http-9.3.6.v20151106.jar')
-//	testCompile files('../javax.websocket-server/ext/jetty-server-9.3.6.v20151106.jar')
+//    testCompile project(':connectors/javax.websocket-client').configurations.runtime
+//    testCompile project(':connectors/javax.websocket-server').configurations.compile
+//    testCompile files('../javax.websocket-server/ext/jetty-http-9.3.6.v20151106.jar')
+//    testCompile files('../javax.websocket-server/ext/jetty-server-9.3.6.v20151106.jar')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/connectors/wsclient/build.gradle
----------------------------------------------------------------------
diff --git a/connectors/wsclient/build.gradle b/connectors/wsclient/build.gradle
index 34e4d34..e9cd0ae 100644
--- a/connectors/wsclient/build.gradle
+++ b/connectors/wsclient/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'connectors.wsclient' // However ArtifactId can be set per artifa
 description = 'Build WebSocket Client connector API.'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/console/server/build.gradle
----------------------------------------------------------------------
diff --git a/console/server/build.gradle b/console/server/build.gradle
index 970249e..bff9106 100644
--- a/console/server/build.gradle
+++ b/console/server/build.gradle
@@ -15,13 +15,13 @@ ext.artifact = 'console.server' // However ArtifactId can be set per artifact in
 description = 'Console Server'
 
 dependencies {
-	compile files('./ext/jetty-9.3.6/jetty-http-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-io-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-security-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-server-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-servlet-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-util-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-webapp-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/jetty-xml-9.3.6.v20151106.jar')
-	compile files('./ext/jetty-9.3.6/servlet-api-3.1.jar')
+    compile files('./ext/jetty-9.3.6/jetty-http-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-io-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-security-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-server-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-servlet-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-util-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-webapp-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/jetty-xml-9.3.6.v20151106.jar')
+    compile files('./ext/jetty-9.3.6/servlet-api-3.1.jar')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/console/servlets/build.gradle
----------------------------------------------------------------------
diff --git a/console/servlets/build.gradle b/console/servlets/build.gradle
index b003ef4..e8254ca 100644
--- a/console/servlets/build.gradle
+++ b/console/servlets/build.gradle
@@ -12,12 +12,12 @@
  * limitations under the License.
  */
 buildscript {
-	repositories {
-		jcenter()
-	}
-	dependencies {
-		classpath 'org.akhikhl.gretty:gretty:+'
-	}
+    repositories {
+        jcenter()
+    }
+    dependencies {
+        classpath 'org.akhikhl.gretty:gretty:+'
+    }
 }
 
 apply plugin: 'war'
@@ -28,24 +28,24 @@ ext.artifact = 'console.servlets' // However ArtifactId can be set per artifact
 description = 'Web Console Servlets'
 
 dependencies {
-	compile files('../server/ext/jetty-9.3.6/servlet-api-3.1.jar')
+    compile files('../server/ext/jetty-9.3.6/servlet-api-3.1.jar')
 }
 
 war {
-	archiveName 'console.war'
-	from 'webapp_content/html' // adds a file-set to the root of the archive
-	into('resources') {
-		from 'webapp_content/resources'
-	}
-	into('js') {
-		from 'webapp_content/js'
-	}
-	webInf { from 'webapp_content/WEB-INF/' } // adds a file-set to the WEB-INF dir.
-	webXml = file('webapp_content/WEB-INF/console.xml') // copies a file to WEB-INF/web.xml
+    archiveName 'console.war'
+    from 'webapp_content/html' // adds a file-set to the root of the archive
+    into('resources') {
+        from 'webapp_content/resources'
+    }
+    into('js') {
+        from 'webapp_content/js'
+    }
+    webInf { from 'webapp_content/WEB-INF/' } // adds a file-set to the WEB-INF dir.
+    webXml = file('webapp_content/WEB-INF/console.xml') // copies a file to WEB-INF/web.xml
 }
 
 gretty {
-	port = 8080
-	contextPath = '/'
-	servletContainer = 'jetty9'
+    port = 8080
+    contextPath = '/'
+    servletContainer = 'jetty9'
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/gradle.properties
----------------------------------------------------------------------
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..47e3387
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Quarks Properties
+group=org.apache.quarks
+version=0.4.0
+
+# System Properties
+gradleVersion=2.13
+org.gradle.jvmargs="-XX:MaxPermSize=512m"
+systemProp.file.encoding=UTF-8
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/providers/development/build.gradle
----------------------------------------------------------------------
diff --git a/providers/development/build.gradle b/providers/development/build.gradle
index 0a8c4f1..ec6b5ca 100644
--- a/providers/development/build.gradle
+++ b/providers/development/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'providers.development' // However ArtifactId can be set per arti
 description = 'The development topology provider'
 
 dependencies {
-	compile project(':providers/direct')
-	compile project(':console/server')
-	compile project(':utils/metrics')
-	compile project(':runtime/jmxcontrol')
+    compile project(':providers/direct')
+    compile project(':console/server')
+    compile project(':utils/metrics')
+    compile project(':runtime/jmxcontrol')
 
-	testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/providers/direct/build.gradle
----------------------------------------------------------------------
diff --git a/providers/direct/build.gradle b/providers/direct/build.gradle
index 8a4b472..2ffb8dc 100644
--- a/providers/direct/build.gradle
+++ b/providers/direct/build.gradle
@@ -15,12 +15,13 @@ ext.artifact = 'providers.direct' // However ArtifactId can be set per artifact
 description = 'The direct topology provider'
 
 dependencies {
-	compile project(':api/topology')
-	compile project(':spi/topology')
-	compile project(':spi/graph')
-	compile project(':runtime/etiao')
+    compile project(':api/topology')
+    compile project(':spi/topology')
+    compile project(':spi/graph')
+    compile project(':runtime/etiao')
+    compile project(':runtime/jsoncontrol')
 
-	testCompile project(':api/topology').sourceSets.test.output
-	testCompile project(':utils/metrics')
-	testCompile project(':utils/metrics').sourceSets.test.output
+    testCompile project(':api/topology').sourceSets.test.output
+    testCompile project(':utils/metrics')
+    testCompile project(':utils/metrics').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/runtime/appservice/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/appservice/build.gradle b/runtime/appservice/build.gradle
index 154ed2e..34ca730 100644
--- a/runtime/appservice/build.gradle
+++ b/runtime/appservice/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'runtime.appservice' // However ArtifactId can be set per artifac
 description = 'The runtime application service library'
 
 dependencies {
-	compile project(':api/execution')
-	compile project(':api/topology')
+    compile project(':api/execution')
+    compile project(':api/topology')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/runtime/etiao/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/etiao/build.gradle b/runtime/etiao/build.gradle
index 6e30f70..4212c3d 100644
--- a/runtime/etiao/build.gradle
+++ b/runtime/etiao/build.gradle
@@ -15,7 +15,7 @@ ext.artifact = 'runtime.etiao' // However ArtifactId can be set per artifact in
 description = 'The runtime Everything Is An Oplet (ETIAO) library'
 
 dependencies {
-	compile project(':api/graph')
-	compile project(':spi/graph')
-	testCompile project(':api/graph').sourceSets.test.output
+    compile project(':api/graph')
+    compile project(':spi/graph')
+    testCompile project(':api/graph').sourceSets.test.output
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/runtime/jmxcontrol/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jmxcontrol/build.gradle b/runtime/jmxcontrol/build.gradle
index d20ff34..a8dcaef 100644
--- a/runtime/jmxcontrol/build.gradle
+++ b/runtime/jmxcontrol/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'runtime.jmxcontrol' // However ArtifactId can be set per artifac
 description = 'The runtime JMX control library'
 
 dependencies {
-	compile project(':api/execution')
-	compile project(':api/function')
+    compile project(':api/execution')
+    compile project(':api/function')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/runtime/jobregistry/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jobregistry/build.gradle b/runtime/jobregistry/build.gradle
index ff82c9a..42d41bc 100644
--- a/runtime/jobregistry/build.gradle
+++ b/runtime/jobregistry/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'runtime.jobregistry' // However ArtifactId can be set per artifa
 description = 'The runtime job registry library'
 
 dependencies {
-	compile project(':api/execution')
-	compile project(':api/topology')
+    compile project(':api/execution')
+    compile project(':api/topology')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/runtime/jsoncontrol/build.gradle
----------------------------------------------------------------------
diff --git a/runtime/jsoncontrol/build.gradle b/runtime/jsoncontrol/build.gradle
index 60e2891..5094c63 100644
--- a/runtime/jsoncontrol/build.gradle
+++ b/runtime/jsoncontrol/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'runtime.jsoncontrol' // However ArtifactId can be set per artifa
 description = 'The runtime JSON control library'
 
 dependencies {
-	compile project(':api/execution')
-	compile project(':api/function')
+    compile project(':api/execution')
+    compile project(':api/function')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/samples/apps/build.gradle
----------------------------------------------------------------------
diff --git a/samples/apps/build.gradle b/samples/apps/build.gradle
index 32c44e0..7fa9013 100644
--- a/samples/apps/build.gradle
+++ b/samples/apps/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'samples.apps' // However ArtifactId can be set per artifact in p
 description = 'Sample applications'
 
 dependencies {
-	compile project(':connectors/mqtt')
-	compile project(':connectors/file')
-	compile project(':analytics/math3')
-	compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
-	compile project(':samples/topology')
-	compile project(':samples/utils')
+    compile project(':connectors/mqtt')
+    compile project(':connectors/file')
+    compile project(':analytics/math3')
+    compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
+    compile project(':samples/topology')
+    compile project(':samples/utils')
 }

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/samples/connectors/build.gradle
----------------------------------------------------------------------
diff --git a/samples/connectors/build.gradle b/samples/connectors/build.gradle
index a0e3763..a6fd821 100644
--- a/samples/connectors/build.gradle
+++ b/samples/connectors/build.gradle
@@ -15,12 +15,12 @@ ext.artifact = 'samples.connectors' // However ArtifactId can be set per artifac
 description = 'samples demonstrating connector functionality'
 
 dependencies {
-	compile project(':connectors/file')
-	compile project(':connectors/iotf')
-	compile project(':connectors/jdbc')
-	compile project(':connectors/kafka')
-	compile project(':connectors/mqtt')
-	compile project(':connectors/serial')
-	compile project(':samples/topology')
-	compile project(':samples/utils')
-}
+    compile project(':connectors/file')
+    compile project(':connectors/iotf')
+    compile project(':connectors/jdbc')
+    compile project(':connectors/kafka')
+    compile project(':connectors/mqtt')
+    compile project(':connectors/serial')
+    compile project(':samples/topology')
+    compile project(':samples/utils')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/samples/console/build.gradle
----------------------------------------------------------------------
diff --git a/samples/console/build.gradle b/samples/console/build.gradle
index 694f74c..b6e44d7 100644
--- a/samples/console/build.gradle
+++ b/samples/console/build.gradle
@@ -15,7 +15,7 @@ ext.artifact = 'samples.console' // However ArtifactId can be set per artifact i
 description = 'samples demonstrating console functionality'
 
 dependencies {
-	compile project(':console/server')
-	compile project(':providers/development')
-	compile project(':providers/direct')
-}
+    compile project(':console/server')
+    compile project(':providers/development')
+    compile project(':providers/direct')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/samples/topology/build.gradle
----------------------------------------------------------------------
diff --git a/samples/topology/build.gradle b/samples/topology/build.gradle
index e29e9c5..4b5096f 100644
--- a/samples/topology/build.gradle
+++ b/samples/topology/build.gradle
@@ -15,7 +15,7 @@ ext.artifact = 'samples.topology' // However ArtifactId can be set per artifact
 description = 'samples demonstrating add-on functionality'
 
 dependencies {
-	compile project(':analytics/math3')
-	compile project(':samples/utils')
-	compile project(':runtime/jobregistry')
-}
+    compile project(':analytics/math3')
+    compile project(':samples/utils')
+    compile project(':runtime/jobregistry')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/samples/utils/build.gradle
----------------------------------------------------------------------
diff --git a/samples/utils/build.gradle b/samples/utils/build.gradle
index 318bbe1..7e05cb4 100644
--- a/samples/utils/build.gradle
+++ b/samples/utils/build.gradle
@@ -15,10 +15,10 @@ ext.artifact = 'samples.utils' // However ArtifactId can be set per artifact in
 description = 'samples demonstrating add-on functionality'
 
 dependencies {
-	compile project(':console/server')
-	compile project(':providers/development')
-	compile project(':providers/direct')
-	compile project(':utils/metrics')
-	compile project(':analytics/sensors')
-	compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
-}
+    compile project(':console/server')
+    compile project(':providers/development')
+    compile project(':providers/direct')
+    compile project(':utils/metrics')
+    compile project(':analytics/sensors')
+    compile files('../../analytics/math3/ext/commons-math3-3.4.1/commons-math3-3.4.1.jar')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index f4d652d..fabf9d5 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -11,6 +11,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+rootProject.name = 'quarks'
 //analytics
 include "analytics/math3", "analytics/sensors"
 // api

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/spi/graph/build.gradle
----------------------------------------------------------------------
diff --git a/spi/graph/build.gradle b/spi/graph/build.gradle
index 68074a0..8c7cd13 100644
--- a/spi/graph/build.gradle
+++ b/spi/graph/build.gradle
@@ -15,6 +15,6 @@ ext.artifact = 'spi.graph' // However ArtifactId can be set per artifact in publ
 description = 'The graph SPI'
 
 dependencies {
-	compile project(':api/graph')
-	compile project(':api/execution')
-}
+    compile project(':api/graph')
+    compile project(':api/execution')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/spi/topology/build.gradle
----------------------------------------------------------------------
diff --git a/spi/topology/build.gradle b/spi/topology/build.gradle
index 29873fe..cb68207 100644
--- a/spi/topology/build.gradle
+++ b/spi/topology/build.gradle
@@ -15,5 +15,5 @@ ext.artifact = 'spi.topology' // However ArtifactId can be set per artifact in p
 description = 'The topology SPI'
 
 dependencies {
-	compile project(':api/topology')
-}
+    compile project(':api/topology')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/test/fvtiot/build.gradle
----------------------------------------------------------------------
diff --git a/test/fvtiot/build.gradle b/test/fvtiot/build.gradle
index 404f64e..0312011 100644
--- a/test/fvtiot/build.gradle
+++ b/test/fvtiot/build.gradle
@@ -15,7 +15,7 @@ ext.artifact = 'test.fvtiot' // However ArtifactId can be set per artifact in pu
 description = 'FVT for IoT scenario'
 
 dependencies {
-	compile project(':providers/direct')
-	compile project(':runtime/appservice')
-	compile project(':runtime/jsoncontrol')
-}
+    compile project(':providers/direct')
+    compile project(':runtime/appservice')
+    compile project(':runtime/jsoncontrol')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/test/svt/build.gradle
----------------------------------------------------------------------
diff --git a/test/svt/build.gradle b/test/svt/build.gradle
index 4207f3e..825865f 100644
--- a/test/svt/build.gradle
+++ b/test/svt/build.gradle
@@ -15,7 +15,7 @@ ext.artifact = 'test.svt' // However ArtifactId can be set per artifact in publi
 description = 'SVT'
 
 dependencies {
-	compile project(':connectors/iotf')
-	compile project(':samples/apps')
-	compile project(':providers/development')
-}
+    compile project(':connectors/iotf')
+    compile project(':samples/apps')
+    compile project(':providers/development')
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/4f98e17d/utils/metrics/build.gradle
----------------------------------------------------------------------
diff --git a/utils/metrics/build.gradle b/utils/metrics/build.gradle
index cd0ecb4..91e7e86 100644
--- a/utils/metrics/build.gradle
+++ b/utils/metrics/build.gradle
@@ -15,9 +15,9 @@ ext.artifact = 'utils.metrics' // However ArtifactId can be set per artifact in
 description = 'The metrics add-on'
 
 dependencies {
-	compile project(':api/topology')
+    compile project(':api/topology')
 
-	testCompile project(':api/topology').sourceSets.test.output
-//	testCompile project(':providers/direct')
-//	testCompile project(':providers/direct').sourceSets.test.output
-}
+    testCompile project(':api/topology').sourceSets.test.output
+//    testCompile project(':providers/direct')
+//    testCompile project(':providers/direct').sourceSets.test.output
+}
\ No newline at end of file