Remove build time from the OAP version (#8934)
This commit is contained in:
parent
6a6f89e2c3
commit
210f26b7df
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -357,7 +357,6 @@
|
|||
<includeOnlyProperties>
|
||||
<includeOnlyProperty>^git.build.version$</includeOnlyProperty>
|
||||
<includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
|
||||
<includeOnlyProperty>^git.build.time$</includeOnlyProperty>
|
||||
</includeOnlyProperties>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
|||
Loading…
Reference in New Issue