Skip to content

Commit

Permalink
Require the license in Gradle files (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrodman committed Jul 2, 2019
1 parent 8332664 commit 0e8724a
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 1 deletion.
14 changes: 14 additions & 0 deletions appengine_war.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

def environments = ['production', 'sandbox', 'alpha', 'crash'] def environments = ['production', 'sandbox', 'alpha', 'crash']


def projects = ['production': 'domain-registry', def projects = ['production': 'domain-registry',
Expand Down
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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 { buildscript {
if (project.disableDependencyLocking.toBoolean() == false) { if (project.disableDependencyLocking.toBoolean() == false) {
// Lock buildscript dependencies. // Lock buildscript dependencies.
Expand Down
14 changes: 14 additions & 0 deletions buildSrc/build.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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 { buildscript {
if (rootProject.disableDependencyLocking.toBoolean() == false) { if (rootProject.disableDependencyLocking.toBoolean() == false) {
// Lock buildscript dependencies. // Lock buildscript dependencies.
Expand Down
2 changes: 1 addition & 1 deletion config/presubmits.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def fails(self, file):
# License check # License check
PresubmitCheck( PresubmitCheck(
r".*Copyright 20\d{2} The Nomulus Authors\. All Rights Reserved\.", r".*Copyright 20\d{2} The Nomulus Authors\. All Rights Reserved\.",
("java", "js", "soy", "sql", "py", "sh"), { ("java", "js", "soy", "sql", "py", "sh", "gradle"), {
".git", "/build/", "/generated/", "node_modules/", ".git", "/build/", "/generated/", "node_modules/",
"JUnitBackports.java" "JUnitBackports.java"
}, REQUIRED): }, REQUIRED):
Expand Down
14 changes: 14 additions & 0 deletions core/build.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

plugins { plugins {
id 'java-library' id 'java-library'
} }
Expand Down
14 changes: 14 additions & 0 deletions dependencies.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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 { ext {
dependencyList = [ dependencyList = [
'args4j:args4j:2.0.26', 'args4j:args4j:2.0.26',
Expand Down
14 changes: 14 additions & 0 deletions java_common.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

apply plugin: 'java' apply plugin: 'java'
apply plugin: 'nebula.lint' apply plugin: 'nebula.lint'
apply plugin: 'net.ltgt.apt' apply plugin: 'net.ltgt.apt'
Expand Down
14 changes: 14 additions & 0 deletions proxy/build.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

apply plugin: 'java' apply plugin: 'java'


createUberJar('deployJar', 'proxy_server', 'google.registry.proxy.ProxyServer') createUberJar('deployJar', 'proxy_server', 'google.registry.proxy.ProxyServer')
Expand Down
14 changes: 14 additions & 0 deletions settings.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

if (pluginsUrl) { if (pluginsUrl) {
println "Plugins: Using repo $pluginsUrl..." println "Plugins: Using repo $pluginsUrl..."
pluginManagement { pluginManagement {
Expand Down
14 changes: 14 additions & 0 deletions third_party/build.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

plugins { plugins {
id 'java-library' id 'java-library'
} }
Expand Down
14 changes: 14 additions & 0 deletions util/build.gradle
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// 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.

apply plugin: 'java' apply plugin: 'java'


dependencies { dependencies {
Expand Down

0 comments on commit 0e8724a

Please sign in to comment.