You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2022/01/15 07:15:15 UTC

[incubator-tuweni] branch main updated: check NOTICE

This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/main by this push:
     new c93b1a8  check NOTICE
     new 90400fb  Merge pull request #360 from atoulme/NOTICE_year
c93b1a8 is described below

commit c93b1a8f20d374c9af0f8beb78676d5655f140f4
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Fri Jan 14 21:53:40 2022 -0800

    check NOTICE
---
 .github/workflows/checks.yml |  4 ++--
 NOTICE                       |  2 +-
 build.gradle                 | 11 +++++++++++
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 12090e1..5c38207 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -33,5 +33,5 @@ jobs:
       - uses: actions/checkout@v1
         with:
           submodules: true
-      - name: gradle rat spotlessCheck
-        run: ./gradlew rat spotlessCheck
\ No newline at end of file
+      - name: gradle rat spotlessCheck checkNotice
+        run: ./gradlew rat spotlessCheck checkNotice
\ No newline at end of file
diff --git a/NOTICE b/NOTICE
index b2648ca..fec96d6 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Tuweni
-Copyright 2019-2021 The Apache Software Foundation
+Copyright 2019-2022 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
diff --git a/build.gradle b/build.gradle
index 4a1e8a8..adf2990 100644
--- a/build.gradle
+++ b/build.gradle
@@ -640,3 +640,14 @@ dokkaHtml {
     }
   }
 }
+
+project.task("checkNotice") {
+  def lines = file("NOTICE").readLines()
+  def expected = "Copyright 2019-${LocalDate.now().getYear()} The Apache Software Foundation"
+  for (line in lines) {
+    if (expected == line) {
+      return
+    }
+  }
+  throw new GradleException('NOTICE file is not up-to-date')
+}

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org