Skip to content

Commit 021fb1b

Browse files
authored
Merge pull request #73 from iExecBlockchainComputing/feature/add-version-to-banner
Feature/add application version to banner
2 parents e83b105 + 6edf8dd commit 021fb1b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### New Features
88
* Expose a `BrokerClient` in library.
99
* Add iExec banner at startup.
10+
* Show application version on banner.
1011
### Quality
1112
* Improve code quality.
1213
* Use new TEE classes in tests.

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ springBoot {
8787
buildInfo()
8888
}
8989

90+
tasks.named("bootJar") {
91+
manifest {
92+
attributes("Implementation-Title": "iExec Blockchain Adapter API",
93+
"Implementation-Version": project.version)
94+
}
95+
}
96+
9097
sourceSets {
9198
integrationTest {
9299
java {
@@ -126,7 +133,7 @@ jar {
126133
publishing {
127134
publications {
128135
maven(MavenPublication) {
129-
artifact bootJar
136+
artifact tasks.named("bootJar")
130137
from components.java
131138
}
132139
}

src/main/resources/banner.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ ${Ansi.YELLOW} \ / | | _| \ \/ / _ \/ __| \ \ \ \
44
${Ansi.YELLOW} /_ _\ | | |___ > < __/ (__ / / / /
55
${Ansi.YELLOW} \/ |_|_____/_/\_\___|\___| /_/_/_/
66
${Ansi.YELLOW} =========
7-
${Ansi.YELLOW} :: Spring Boot${spring-boot.formatted-version} :: ${Ansi.DEFAULT}
7+
${Ansi.YELLOW} :: ${application.title}${application.formatted-version} built with Spring Boot${spring-boot.formatted-version} :: ${Ansi.DEFAULT}

0 commit comments

Comments
 (0)