Repository: incubator-weex
Updated Branches:
  refs/heads/0.14-dev c109e10c7 -> 4bc03cc67


* Add License Gradle Plugin for format license in the head of android src file.


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

Branch: refs/heads/0.14-dev
Commit: 4bc03cc67efc338295cbe77f718bdb152ad49cc6
Parents: c109e10
Author: YorkShen <shenyua...@gmail.com>
Authored: Thu Jun 8 16:24:54 2017 +0800
Committer: YorkShen <shenyua...@gmail.com>
Committed: Thu Jun 8 16:24:54 2017 +0800

----------------------------------------------------------------------
 LICENSE                                         | 20 ++++++++++++++++++-
 POSSIBLE-NOTICES-FOR-BIN-DIST                   |  3 +++
 android/sdk/build.gradle                        | 12 ++++++++++-
 .../com/taobao/weex/LayoutFinishListener.java   | 18 +++++++++++++++++
 .../taobao/weex/adapter/ICrashInfoReporter.java | 18 +++++++++++++++++
 .../weex/dom/action/ExecutableRenderAction.java | 18 +++++++++++++++++
 .../weex/dom/action/ModuleInvocationAction.java | 18 +++++++++++++++++
 .../taobao/weex/utils/WXDataStructureUtil.java  | 21 ++++++++++++++++++--
 8 files changed, 124 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index 8f1309a..c54354a 100644
--- a/LICENSE
+++ b/LICENSE
@@ -284,4 +284,22 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 
DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
-*/
\ No newline at end of file
+*/
+
+For Guava
+android/sdk/src/main/java/com/taobao/weex/utils/WXDataStructureUtil.java
+/*
+ * Copyright (C) 2007 The Guava Authors
+ *
+ * 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.
+ */
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/POSSIBLE-NOTICES-FOR-BIN-DIST
----------------------------------------------------------------------
diff --git a/POSSIBLE-NOTICES-FOR-BIN-DIST b/POSSIBLE-NOTICES-FOR-BIN-DIST
index 052f78c..350a00b 100644
--- a/POSSIBLE-NOTICES-FOR-BIN-DIST
+++ b/POSSIBLE-NOTICES-FOR-BIN-DIST
@@ -97,3 +97,6 @@ by The Android Open Source Project , licensed under the 
Apache 2.0 License.
 
 This product contains software SDWebImage(https://github.com/rs/SDWebImage) 
developed
 by Olivier Poitrey  , licensed under the MIT License.
+
+This product contains software Guava(https://github.com/google/guava) developed
+by google  , licensed under the Apache License.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/android/sdk/build.gradle
----------------------------------------------------------------------
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 7593dbd..c8c235b 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -4,6 +4,10 @@ buildscript {
     }
 }
 
+plugins {
+    id "com.github.hierynomus.license" version "0.14.0"
+}
+
 apply plugin: 'com.android.library'
 apply plugin: 'checkstyle'
 
@@ -150,4 +154,10 @@ dependencies {
     testCompile 'org.robolectric:robolectric:3.0'
     testCompile "org.robolectric:shadows-httpclient:3.0"
     testCompile 'org.json:json:20160212'
-}
\ No newline at end of file
+}
+
+license {
+    header = file('../license/LICENSE')
+    excludes(["com/taobao/weex/dom/flex/*.java"])
+}
+preBuild.dependsOn licenseFormat
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/android/sdk/src/main/java/com/taobao/weex/LayoutFinishListener.java
----------------------------------------------------------------------
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/LayoutFinishListener.java 
b/android/sdk/src/main/java/com/taobao/weex/LayoutFinishListener.java
index 5c49e5e..b863316 100644
--- a/android/sdk/src/main/java/com/taobao/weex/LayoutFinishListener.java
+++ b/android/sdk/src/main/java/com/taobao/weex/LayoutFinishListener.java
@@ -1,3 +1,21 @@
+/**
+ * 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.
+ */
 package com.taobao.weex;
 
 import android.support.annotation.NonNull;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/android/sdk/src/main/java/com/taobao/weex/adapter/ICrashInfoReporter.java
----------------------------------------------------------------------
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/adapter/ICrashInfoReporter.java 
b/android/sdk/src/main/java/com/taobao/weex/adapter/ICrashInfoReporter.java
index 52c474d..54c15cc 100644
--- a/android/sdk/src/main/java/com/taobao/weex/adapter/ICrashInfoReporter.java
+++ b/android/sdk/src/main/java/com/taobao/weex/adapter/ICrashInfoReporter.java
@@ -1,3 +1,21 @@
+/**
+ * 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.
+ */
 package com.taobao.weex.adapter;
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/android/sdk/src/main/java/com/taobao/weex/dom/action/ExecutableRenderAction.java
----------------------------------------------------------------------
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/dom/action/ExecutableRenderAction.java
 
b/android/sdk/src/main/java/com/taobao/weex/dom/action/ExecutableRenderAction.java
index f8b6240..0e78088 100644
--- 
a/android/sdk/src/main/java/com/taobao/weex/dom/action/ExecutableRenderAction.java
+++ 
b/android/sdk/src/main/java/com/taobao/weex/dom/action/ExecutableRenderAction.java
@@ -1,3 +1,21 @@
+/**
+ * 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.
+ */
 package com.taobao.weex.dom.action;
 
 import com.taobao.weex.dom.DOMAction;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/android/sdk/src/main/java/com/taobao/weex/dom/action/ModuleInvocationAction.java
----------------------------------------------------------------------
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/dom/action/ModuleInvocationAction.java
 
b/android/sdk/src/main/java/com/taobao/weex/dom/action/ModuleInvocationAction.java
index 865d629..0d7a1f0 100644
--- 
a/android/sdk/src/main/java/com/taobao/weex/dom/action/ModuleInvocationAction.java
+++ 
b/android/sdk/src/main/java/com/taobao/weex/dom/action/ModuleInvocationAction.java
@@ -1,3 +1,21 @@
+/**
+ * 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.
+ */
 package com.taobao.weex.dom.action;
 
 import android.support.annotation.NonNull;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4bc03cc6/android/sdk/src/main/java/com/taobao/weex/utils/WXDataStructureUtil.java
----------------------------------------------------------------------
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/utils/WXDataStructureUtil.java 
b/android/sdk/src/main/java/com/taobao/weex/utils/WXDataStructureUtil.java
index d8e0bf0..159f895 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXDataStructureUtil.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXDataStructureUtil.java
@@ -6,9 +6,9 @@
  * 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
@@ -16,6 +16,23 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+
+/*
+ * Copyright (C) 2007 The Guava Authors
+ *
+ * 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.
+ */
+
 package com.taobao.weex.utils;
 
 import java.util.HashMap;

Reply via email to