Fix new Checkstyle violations
Move `apply plugin: 'com.gradle.develocity'` after we have modified `startParameter.noBuildScan`. Otherwise, the Develocity is configured for its default server instead of Spring's one
This commit is contained in:
@@ -65,6 +65,7 @@ public class AnalyticsConsumerConfiguration {
|
||||
CharSequence meterNameRaw = properties.getComputedNameExpression().getValue(message, CharSequence.class);
|
||||
String meterName = StringUtils.hasText(meterNameRaw) ? meterNameRaw.toString() : "empty";
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
// All fixed tags together are passed with every meter update.
|
||||
Tags fixedTags = this.toTags(properties.getTag().getFixed());
|
||||
|
||||
|
||||
@@ -156,6 +156,7 @@ public class AnalyticsConsumerProperties {
|
||||
* fixed Tags is: <code>
|
||||
* analytics.tag.fixed.[tag-name]=[tag-value]
|
||||
* </code>
|
||||
* @deprecated in favor of {@link #expression}
|
||||
*/
|
||||
@Deprecated
|
||||
private Map<String, String> fixed;
|
||||
@@ -168,10 +169,12 @@ public class AnalyticsConsumerProperties {
|
||||
*/
|
||||
private Map<String, Expression> expression;
|
||||
|
||||
@Deprecated
|
||||
public Map<String, String> getFixed() {
|
||||
return this.fixed;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setFixed(Map<String, String> fixed) {
|
||||
this.fixed = fixed;
|
||||
}
|
||||
@@ -186,7 +189,7 @@ public class AnalyticsConsumerProperties {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MetricsTag{" + "fixed=" + this.fixed + ", expression=" + this.expression + '}';
|
||||
return "MetricsTag{expression=" + this.expression + '}';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
plugins {
|
||||
id 'com.gradle.develocity' version '3.17.6'
|
||||
id 'com.gradle.develocity' version '3.17.6' apply false
|
||||
id 'io.spring.ge.conventions' version '0.0.17' apply false
|
||||
}
|
||||
|
||||
startParameter.noBuildScan = startParameter.taskNames.contains('format')
|
||||
|
||||
apply plugin: 'com.gradle.develocity'
|
||||
apply plugin: 'io.spring.ge.conventions'
|
||||
|
||||
rootProject.name = 'spring-functions-catalog'
|
||||
|
||||
Reference in New Issue
Block a user