diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/README.md b/README.md index fc70f0c..603e3ee 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ This example generates Java FlatBuffers from the schema files in the default `sr For bugs, questions, and discussions please use the [Github Issues](https://github.com/netifi/gradle-flatbuffers-plugin/issues). ## License -Copyright 2018 [Netifi Inc.](https://www.netifi.com) +Copyright 2017 - 2018 [Netifi Inc.](https://www.netifi.com) 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 diff --git a/build.gradle b/build.gradle index 74e10c3..0a4fccc 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,7 @@ buildscript { plugins { id 'com.gradle.build-scan' version '1.16' + id 'com.github.hierynomus.license' version '0.14.0' } buildScan { @@ -37,8 +38,8 @@ dependencies { } } -version = '1.0.4' group = 'io.netifi' +version = '1.0.5' pluginBundle { website = 'https://github.com/netifi/gradle-flatbuffers-plugin' @@ -53,3 +54,9 @@ pluginBundle { } } } + +license { + header rootProject.file('codequality/HEADER') + strictCheck true + excludes([ "**/*.json", "**/*.html", "**/*.js" ]) +} diff --git a/codequality/HEADER b/codequality/HEADER new file mode 100644 index 0000000..9a41249 --- /dev/null +++ b/codequality/HEADER @@ -0,0 +1,13 @@ +Copyright 2017 - 2018 Netifi Inc. + +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. diff --git a/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersLanguage.groovy b/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersLanguage.groovy index 6c9393e..6530ca8 100644 --- a/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersLanguage.groovy +++ b/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersLanguage.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin /** diff --git a/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPlugin.groovy b/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPlugin.groovy index d61ab16..a435a01 100644 --- a/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPlugin.groovy +++ b/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPlugin.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin import io.netifi.flatbuffers.plugin.tasks.CleanFlatBuffers diff --git a/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPluginExtension.groovy b/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPluginExtension.groovy index 0b9cd7e..26483a1 100644 --- a/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPluginExtension.groovy +++ b/src/main/groovy/io/netifi/flatbuffers/plugin/FlatBuffersPluginExtension.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin class FlatBuffersPluginExtension { diff --git a/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/CleanFlatBuffers.groovy b/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/CleanFlatBuffers.groovy index a1d12b5..4f37d78 100644 --- a/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/CleanFlatBuffers.groovy +++ b/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/CleanFlatBuffers.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin.tasks import io.netifi.flatbuffers.plugin.FlatBuffersPlugin diff --git a/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/FlatBuffers.groovy b/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/FlatBuffers.groovy index e2998bd..a978023 100644 --- a/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/FlatBuffers.groovy +++ b/src/main/groovy/io/netifi/flatbuffers/plugin/tasks/FlatBuffers.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin.tasks import groovy.io.FileType diff --git a/src/main/resources/META-INF/gradle-plugins/io.netifi.flatbuffers.properties b/src/main/resources/META-INF/gradle-plugins/io.netifi.flatbuffers.properties index eb899cd..af47a24 100644 --- a/src/main/resources/META-INF/gradle-plugins/io.netifi.flatbuffers.properties +++ b/src/main/resources/META-INF/gradle-plugins/io.netifi.flatbuffers.properties @@ -1 +1,17 @@ +# +# Copyright 2017 - 2018 Netifi Inc. +# +# 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. +# + implementation-class=io.netifi.flatbuffers.plugin.FlatBuffersPlugin diff --git a/src/test/groovy/io/netifi/flatbuffers/plugin/CleanFlatBuffersFuncTest.groovy b/src/test/groovy/io/netifi/flatbuffers/plugin/CleanFlatBuffersFuncTest.groovy index 3acb6f9..39d56e6 100644 --- a/src/test/groovy/io/netifi/flatbuffers/plugin/CleanFlatBuffersFuncTest.groovy +++ b/src/test/groovy/io/netifi/flatbuffers/plugin/CleanFlatBuffersFuncTest.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin import org.gradle.testkit.runner.GradleRunner diff --git a/src/test/groovy/io/netifi/flatbuffers/plugin/MultipleFlatBuffersFuncTest.groovy b/src/test/groovy/io/netifi/flatbuffers/plugin/MultipleFlatBuffersFuncTest.groovy index 97ebaf8..a134c47 100644 --- a/src/test/groovy/io/netifi/flatbuffers/plugin/MultipleFlatBuffersFuncTest.groovy +++ b/src/test/groovy/io/netifi/flatbuffers/plugin/MultipleFlatBuffersFuncTest.groovy @@ -1,11 +1,11 @@ /* - * Copyright 2017 Netifi Inc. + * Copyright 2017 - 2018 Netifi Inc. * * 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 + * 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, @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package io.netifi.flatbuffers.plugin import org.gradle.testkit.runner.GradleRunner