From 87d7ed2be091ba9285497f4250ebd1c43035c0b0 Mon Sep 17 00:00:00 2001 From: Yan Babitski Date: Wed, 27 Mar 2019 01:01:34 -0700 Subject: [PATCH] all: update copyrights and configure license plugin Update copyrights to include current year and also configure license plugin to work with current year Fixes #515 --- etc/checkstyle.xml | 2 +- etc/license-formatting.xml | 30 +++++++++++++++++++ etc/license.txt | 2 +- etc/mvn-deploy-settings.xml | 4 +-- etc/versions-rules.xml | 2 +- jetcd-all/pom.xml | 2 +- .../main/java/io/etcd/jetcd/all/JetcdAll.java | 4 +-- .../java/io/etcd/jetcd/all/package-info.java | 4 +-- jetcd-common/pom.xml | 2 +- .../exception/ClosedClientException.java | 4 +-- .../ClosedKeepAliveListenerException.java | 4 +-- .../exception/ClosedSnapshotException.java | 4 +-- .../exception/ClosedWatcherException.java | 4 +-- .../common/exception/CompactedException.java | 4 +-- .../jetcd/common/exception/EtcdException.java | 4 +-- .../exception/EtcdExceptionFactory.java | 4 +-- jetcd-core/pom.xml | 2 +- .../java/io/etcd/jetcd/AbstractResponse.java | 4 +-- .../src/main/java/io/etcd/jetcd/Auth.java | 4 +-- .../src/main/java/io/etcd/jetcd/AuthImpl.java | 4 +-- .../main/java/io/etcd/jetcd/ByteSequence.java | 4 +-- .../src/main/java/io/etcd/jetcd/Client.java | 4 +-- .../java/io/etcd/jetcd/ClientBuilder.java | 4 +-- .../etcd/jetcd/ClientConnectionManager.java | 4 +-- .../main/java/io/etcd/jetcd/ClientImpl.java | 4 +-- .../java/io/etcd/jetcd/CloseableClient.java | 4 +-- .../src/main/java/io/etcd/jetcd/Cluster.java | 4 +-- .../main/java/io/etcd/jetcd/ClusterImpl.java | 4 +-- .../main/java/io/etcd/jetcd/Constants.java | 4 +-- .../src/main/java/io/etcd/jetcd/KV.java | 4 +-- .../src/main/java/io/etcd/jetcd/KVImpl.java | 4 +-- .../src/main/java/io/etcd/jetcd/KeyValue.java | 4 +-- .../src/main/java/io/etcd/jetcd/Lease.java | 4 +-- .../main/java/io/etcd/jetcd/LeaseImpl.java | 4 +-- .../src/main/java/io/etcd/jetcd/Lock.java | 4 +-- .../src/main/java/io/etcd/jetcd/LockImpl.java | 4 +-- .../main/java/io/etcd/jetcd/Maintenance.java | 4 +-- .../java/io/etcd/jetcd/MaintenanceImpl.java | 4 +-- .../main/java/io/etcd/jetcd/Observers.java | 4 +-- .../src/main/java/io/etcd/jetcd/Response.java | 4 +-- .../src/main/java/io/etcd/jetcd/Txn.java | 4 +-- .../src/main/java/io/etcd/jetcd/Util.java | 4 +-- .../src/main/java/io/etcd/jetcd/Watch.java | 4 +-- .../main/java/io/etcd/jetcd/WatchImpl.java | 4 +-- .../etcd/jetcd/auth/AuthDisableResponse.java | 4 +-- .../etcd/jetcd/auth/AuthEnableResponse.java | 4 +-- .../etcd/jetcd/auth/AuthRoleAddResponse.java | 4 +-- .../jetcd/auth/AuthRoleDeleteResponse.java | 4 +-- .../etcd/jetcd/auth/AuthRoleGetResponse.java | 4 +-- .../auth/AuthRoleGrantPermissionResponse.java | 4 +-- .../etcd/jetcd/auth/AuthRoleListResponse.java | 4 +-- .../AuthRoleRevokePermissionResponse.java | 4 +-- .../etcd/jetcd/auth/AuthUserAddResponse.java | 4 +-- .../auth/AuthUserChangePasswordResponse.java | 4 +-- .../jetcd/auth/AuthUserDeleteResponse.java | 4 +-- .../etcd/jetcd/auth/AuthUserGetResponse.java | 4 +-- .../jetcd/auth/AuthUserGrantRoleResponse.java | 4 +-- .../etcd/jetcd/auth/AuthUserListResponse.java | 4 +-- .../auth/AuthUserRevokeRoleResponse.java | 4 +-- .../java/io/etcd/jetcd/auth/Permission.java | 4 +-- .../java/io/etcd/jetcd/cluster/Member.java | 4 +-- .../etcd/jetcd/cluster/MemberAddResponse.java | 4 +-- .../jetcd/cluster/MemberListResponse.java | 4 +-- .../jetcd/cluster/MemberRemoveResponse.java | 4 +-- .../jetcd/cluster/MemberUpdateResponse.java | 4 +-- .../main/java/io/etcd/jetcd/cluster/Util.java | 4 +-- .../io/etcd/jetcd/kv/CompactResponse.java | 4 +-- .../java/io/etcd/jetcd/kv/DeleteResponse.java | 4 +-- .../java/io/etcd/jetcd/kv/GetResponse.java | 4 +-- .../java/io/etcd/jetcd/kv/PutResponse.java | 4 +-- .../java/io/etcd/jetcd/kv/TxnResponse.java | 4 +-- .../etcd/jetcd/lease/LeaseGrantResponse.java | 4 +-- .../jetcd/lease/LeaseKeepAliveResponse.java | 4 +-- .../LeaseKeepAliveResponseWithError.java | 4 +-- .../etcd/jetcd/lease/LeaseRevokeResponse.java | 4 +-- .../jetcd/lease/LeaseTimeToLiveResponse.java | 4 +-- .../jetcd/lease/NoSuchLeaseException.java | 4 +-- .../java/io/etcd/jetcd/lock/LockResponse.java | 4 +-- .../io/etcd/jetcd/lock/UnlockResponse.java | 4 +-- .../etcd/jetcd/maintenance/AlarmMember.java | 4 +-- .../etcd/jetcd/maintenance/AlarmResponse.java | 4 +-- .../io/etcd/jetcd/maintenance/AlarmType.java | 4 +-- .../jetcd/maintenance/DefragmentResponse.java | 4 +-- .../jetcd/maintenance/HashKVResponse.java | 4 +-- .../jetcd/maintenance/MoveLeaderResponse.java | 4 +-- .../SnapshotReaderResponseWithError.java | 4 +-- .../jetcd/maintenance/SnapshotResponse.java | 4 +-- .../jetcd/maintenance/StatusResponse.java | 4 +-- .../src/main/java/io/etcd/jetcd/op/Cmp.java | 4 +-- .../main/java/io/etcd/jetcd/op/CmpTarget.java | 4 +-- .../src/main/java/io/etcd/jetcd/op/Op.java | 4 +-- .../main/java/io/etcd/jetcd/op/TxnImpl.java | 4 +-- .../io/etcd/jetcd/options/CompactOption.java | 4 +-- .../io/etcd/jetcd/options/DeleteOption.java | 4 +-- .../java/io/etcd/jetcd/options/GetOption.java | 4 +-- .../io/etcd/jetcd/options/LeaseOption.java | 4 +-- .../io/etcd/jetcd/options/OptionsUtil.java | 4 +-- .../java/io/etcd/jetcd/options/PutOption.java | 4 +-- .../io/etcd/jetcd/options/WatchOption.java | 4 +-- .../java/io/etcd/jetcd/watch/WatchEvent.java | 4 +-- .../io/etcd/jetcd/watch/WatchResponse.java | 4 +-- .../jetcd/watch/WatchResponseWithError.java | 4 +-- jetcd-core/src/main/proto/auth.proto | 2 +- jetcd-core/src/main/proto/kv.proto | 2 +- jetcd-core/src/main/proto/lock.proto | 2 +- jetcd-core/src/main/proto/rpc.proto | 2 +- .../java/io/etcd/jetcd/AuthClientTest.java | 5 ++-- .../java/io/etcd/jetcd/ClientBuilderTest.java | 5 ++-- .../jetcd/ClientConnectionManagerTest.java | 5 ++-- .../java/io/etcd/jetcd/ClusterClientTest.java | 5 ++-- .../java/io/etcd/jetcd/KVNamespaceTest.java | 5 ++-- .../src/test/java/io/etcd/jetcd/KVTest.java | 5 ++-- .../test/java/io/etcd/jetcd/LeaseTest.java | 5 ++-- .../java/io/etcd/jetcd/LeaseUnitTest.java | 5 ++-- .../java/io/etcd/jetcd/LoadBalancerTest.java | 5 ++-- .../src/test/java/io/etcd/jetcd/LockTest.java | 5 ++-- .../java/io/etcd/jetcd/MaintenanceTest.java | 5 ++-- .../io/etcd/jetcd/MaintenanceUnitTest.java | 5 ++-- .../src/test/java/io/etcd/jetcd/SslTest.java | 5 ++-- .../src/test/java/io/etcd/jetcd/TestUtil.java | 5 ++-- .../java/io/etcd/jetcd/TxnResponseTest.java | 5 ++-- .../java/io/etcd/jetcd/WatchResumeTest.java | 5 ++-- .../test/java/io/etcd/jetcd/WatchTest.java | 5 ++-- .../java/io/etcd/jetcd/WatchUnitTest.java | 5 ++-- .../test/java/io/etcd/jetcd/op/TxnTest.java | 5 ++-- jetcd-core/src/test/resources/log4j2.xml | 2 +- jetcd-examples/jetcd-ctl/pom.xml | 2 +- .../etcd/jetcd/examples/ctl/CommandGet.java | 4 +-- .../etcd/jetcd/examples/ctl/CommandPut.java | 4 +-- .../etcd/jetcd/examples/ctl/CommandWatch.java | 4 +-- .../java/io/etcd/jetcd/examples/ctl/Main.java | 4 +-- .../jetcd-ctl/src/main/resources/log4j2.xml | 2 +- jetcd-examples/jetcd-watch/pom.xml | 2 +- .../io/etcd/jetcd/examples/watch/Main.java | 4 +-- .../jetcd-watch/src/main/resources/log4j2.xml | 2 +- jetcd-examples/pom.xml | 2 +- jetcd-extensions/pom.xml | 2 +- .../io/etcd/jetcd/extensions/Extensions.java | 4 +-- jetcd-launcher-maven-plugin-test/pom.xml | 2 +- .../launcher/maven/test/MavenPluginTest.java | 4 +-- jetcd-launcher-maven-plugin/pom.xml | 2 +- .../etcd/jetcd/launcher/maven/Singleton.java | 4 +-- .../etcd/jetcd/launcher/maven/StartMojo.java | 4 +-- .../etcd/jetcd/launcher/maven/StopMojo.java | 4 +-- .../m2e/lifecycle-mapping-metadata.xml | 2 +- jetcd-launcher/pom.xml | 2 +- .../io/etcd/jetcd/launcher/EtcdCluster.java | 4 +-- .../jetcd/launcher/EtcdClusterFactory.java | 4 +-- .../io/etcd/jetcd/launcher/EtcdContainer.java | 4 +-- .../launcher/junit4/EtcdClusterResource.java | 4 +-- .../launcher/junit5/EtcdClusterExtension.java | 4 +-- jetcd-osgi/jetcd-karaf/pom.xml | 2 +- .../io/etcd/jetcd/karaf/package-info.java | 4 +-- .../src/main/resources/features.xml | 2 +- .../etcd/jetcd/osgi/ClientServiceChecks.java | 4 +-- .../etcd/jetcd/osgi/PaxExamWrapperTest.java | 4 +-- .../java/io/etcd/jetcd/osgi/TestSupport.java | 4 +-- jetcd-osgi/jetcd-osgi/pom.xml | 2 +- .../io/etcd/jetcd/osgi/ClientService.java | 4 +-- .../jetcd/osgi/DnsSrvResolverService.java | 4 +-- jetcd-osgi/pom.xml | 2 +- jetcd-resolver-dns-srv/pom.xml | 2 +- .../resolver/dnssrv/DnsSrvUriResolver.java | 4 +-- .../resolver/dnssrv/NameResolverTest.java | 5 ++-- .../src/test/resources/log4j2.xml | 2 +- jetcd-resolver/pom.xml | 2 +- .../jetcd/resolver/DirectUriResolver.java | 4 +-- .../jetcd/resolver/SmartNameResolver.java | 4 +-- .../resolver/SmartNameResolverFactory.java | 4 +-- .../io/etcd/jetcd/resolver/URIResolver.java | 4 +-- .../jetcd/resolver/URIResolverLoader.java | 4 +-- .../etcd/jetcd/resolver/NameResolverTest.java | 5 ++-- pom.xml | 17 ++++++++++- 173 files changed, 380 insertions(+), 316 deletions(-) create mode 100644 etc/license-formatting.xml diff --git a/etc/checkstyle.xml b/etc/checkstyle.xml index 8a5652dd0..ec31aff80 100644 --- a/etc/checkstyle.xml +++ b/etc/checkstyle.xml @@ -1,7 +1,7 @@ + + + + + + + + false + true + false + + diff --git a/etc/license.txt b/etc/license.txt index 0f263d249..e47455a1c 100644 --- a/etc/license.txt +++ b/etc/license.txt @@ -1,4 +1,4 @@ -Copyright 2017 The jetcd authors +Copyright ${license.git.copyrightYears} The jetcd authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/etc/mvn-deploy-settings.xml b/etc/mvn-deploy-settings.xml index bff92a392..e37948fa0 100644 --- a/etc/mvn-deploy-settings.xml +++ b/etc/mvn-deploy-settings.xml @@ -1,8 +1,7 @@ - - + ${license-maven-plugin.version} + +