Remove build time from the OAP version (#8934)

This commit is contained in:
kezhenxu94 2022-04-22 22:17:04 +08:00 committed by GitHub
parent 6a6f89e2c3
commit 210f26b7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -26,6 +26,7 @@
* [Critical] Revert [**Enhance DataCarrier#MultipleChannelsConsumer to add
priority**](https://github.com/apache/skywalking/pull/8664) to avoid consuming issues.
* Fix the problem that some configurations (such as group.id) did not take effect due to the override order when using the kafkaConsumerConfig property to extend the configuration in Kafka Fetcher.
* Remove build time from the OAP version.
#### UI

View File

@ -28,7 +28,6 @@ public enum Version {
CURRENT;
private final String buildVersion;
private final String buildTime;
private final String commitId;
private final Properties properties = new Properties();
@ -38,7 +37,6 @@ public enum Version {
properties.load(Version.class.getClassLoader()
.getResourceAsStream("version.properties"));
buildVersion = properties.getProperty("git.build.version");
buildTime = properties.getProperty("git.build.time");
commitId = properties.getProperty("git.commit.id");
} catch (IOException e) {
throw new ExceptionInInitializerError(e);
@ -48,10 +46,9 @@ public enum Version {
@Override
public String toString() {
return String.format(
"%s-%s (%s)",
"%s-%s",
buildVersion,
Strings.left(commitId, 7),
buildTime
Strings.left(commitId, 7)
);
}
}

View File

@ -357,7 +357,6 @@
<includeOnlyProperties>
<includeOnlyProperty>^git.build.version$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
<includeOnlyProperty>^git.build.time$</includeOnlyProperty>
</includeOnlyProperties>
</configuration>
</plugin>