From 418ebf8effc066f8010565a3bbaf03addb4f6e69 Mon Sep 17 00:00:00 2001 From: Jonatan Ivanov Date: Tue, 4 Jan 2022 16:06:20 -0800 Subject: [PATCH 1/2] Automate non-Javadoc multi-line comments for license headers fixes gh-2942 related: gh-2412 gh-2940 --- build.gradle | 2 +- gradle/licenseHeader.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 9fe4b00a5a..67fc3294a4 100644 --- a/build.gradle +++ b/build.gradle @@ -168,7 +168,7 @@ subprojects { header rootProject.file('gradle/licenseHeader.txt') strictCheck true mapping { - kt = 'JAVADOC_STYLE' + java = 'SLASHSTAR_STYLE' } sourceSets = project.sourceSets diff --git a/gradle/licenseHeader.txt b/gradle/licenseHeader.txt index 9cf2b2645c..36ed148038 100644 --- a/gradle/licenseHeader.txt +++ b/gradle/licenseHeader.txt @@ -1,11 +1,11 @@ Copyright ${year} VMware, 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 -

+ https://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. From 988b5bd5ec80407d24bad5ab374b5841b164bf97 Mon Sep 17 00:00:00 2001 From: Jonatan Ivanov Date: Tue, 4 Jan 2022 16:47:56 -0800 Subject: [PATCH 2/2] Regenerate license headers using the license plugin related: gh-2942 gh-2412 gh-2940 --- .../src/test/resources/logback.xml | 6 +++--- .../src/test/resources/logback.xml | 6 +++--- .../io/micrometer/dynatrace/package-info.java | 1 - .../src/test/resources/logback.xml | 6 +++--- .../io/micrometer/health/package-info.java | 1 - .../src/test/resources/logback.xml | 6 +++--- .../src/test/resources/logback.xml | 6 +++--- .../binder/cache/CaffeineStatsCounter.java | 1 - .../CommonsObjectPool2Metrics.java | 3 +-- .../AbstractMetricCollectingInterceptor.java | 1 - .../grpc/MetricCollectingClientCall.java | 1 - .../MetricCollectingClientInterceptor.java | 1 - .../MetricCollectingServerInterceptor.java | 1 - .../binder/jetty/JettyStatisticsMetrics.java | 2 +- .../binder/kafka/KafkaClientMetrics.java | 2 +- .../binder/kafka/KafkaStreamsMetrics.java | 18 ++++++++++-------- .../OnlyOnceLoggingDenyMeterFilter.java | 3 +-- .../java/io/micrometer/core/lang/NonNull.java | 6 +++--- .../io/micrometer/core/lang/NonNullApi.java | 6 +++--- .../io/micrometer/core/lang/NonNullFields.java | 6 +++--- .../java/io/micrometer/core/lang/Nullable.java | 6 +++--- .../micrometer-core/native-image.properties | 2 ++ .../binder/cache/CaffeineStatsCounterTest.java | 1 - .../CommonsObjectPool2MetricsTest.java | 2 +- .../instrument/util/AbstractPartitionTest.java | 18 ++++++++++-------- .../binder/logging/log4j2-async-logger.xml | 6 +++--- .../log4j2-root-logger-additivity-false.xml | 6 +++--- micrometer-core/src/test/resources/logback.xml | 6 +++--- micrometer-test/src/test/resources/logback.xml | 6 +++--- .../src/main/resources/application.yml | 6 +++--- .../main/resources/application-appoptics.yml | 6 +++--- .../src/main/resources/application-atlas.yml | 6 +++--- .../resources/application-azuremonitor.yml | 6 +++--- .../src/main/resources/application-datadog.yml | 6 +++--- .../main/resources/application-dynatrace.yml | 6 +++--- .../src/main/resources/application-elastic.yml | 6 +++--- .../src/main/resources/application-ganglia.yml | 6 +++--- .../src/main/resources/application-humio.yml | 6 +++--- .../src/main/resources/application-influx.yml | 6 +++--- .../src/main/resources/application-jmx.yml | 6 +++--- .../src/main/resources/application-kairos.yml | 6 +++--- .../application-prometheus-pushgateway.yml | 6 +++--- .../main/resources/application-prometheus.yml | 6 +++--- .../main/resources/application-signalfx.yml | 6 +++--- .../main/resources/application-stackdriver.yml | 6 +++--- .../resources/application-statsd-datadog.yml | 6 +++--- .../main/resources/application-statsd-etsy.yml | 6 +++--- .../resources/application-statsd-telegraf.yml | 6 +++--- .../main/resources/application-wavefront.yml | 6 +++--- .../src/main/resources/application.yml | 6 +++--- .../src/main/resources/logback.xml | 6 +++--- .../src/main/resources/logback.xml | 6 +++--- .../hazelcast4/HazelcastCacheSample.java | 1 - .../src/main/resources/logback.xml | 6 +++--- .../hazelcast3/HazelcastCacheSample.java | 1 - .../src/main/resources/logback.xml | 6 +++--- 56 files changed, 141 insertions(+), 147 deletions(-) diff --git a/implementations/micrometer-registry-atlas/src/test/resources/logback.xml b/implementations/micrometer-registry-atlas/src/test/resources/logback.xml index cd890fdf8c..4c73e7630a 100644 --- a/implementations/micrometer-registry-atlas/src/test/resources/logback.xml +++ b/implementations/micrometer-registry-atlas/src/test/resources/logback.xml @@ -1,13 +1,13 @@