Skip to content

Commit

Permalink
Bump version and more version related stuffs
Browse files Browse the repository at this point in the history
- Bump version
- Add more metadata to jar file
- Display app version in log
  • Loading branch information
Czompi committed Aug 9, 2023
1 parent 1b38e57 commit ad690b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'hu.czompi'
version = '1.0'
version = '1.0.1'

repositories {
mavenCentral()
Expand All @@ -20,7 +20,17 @@ dependencies {

jar {
manifest {
attributes 'Main-Class': 'hu.czompi.ch_app.Main'
attributes([
'Main-Class' : 'hu.czompi.ch_app.Main',
"Specification-Title" : "ch-app",
"Specification-Vendor" : "Czompi",
"Specification-Version" : "1",
"Implementation-Title" : "CH APP",
"Implementation-Version" : version,
"Implementation-Vendor" : "Czompi",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"Automatic-Module-Name" : "hu.czompi.ch_app"
])
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/hu/czompi/ch_app/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
@Log4j2
public class Main {
public static void main(String[] args) {
LOGGER.info("Starting " + Main.class.getPackage().getSpecificationTitle() + ", version " + Main.class.getPackage().getImplementationVersion());

// Loading configurations
ProductManager productManager = new ProductManager();
OrderManager orderManager = new OrderManager();
Expand Down

0 comments on commit ad690b7

Please sign in to comment.