Skip to content

Commit 7777904

Browse files
committed
Move more configuration into gradle.properties
1 parent 4f8c35d commit 7777904

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ plugins {
4444
apply plugin: 'org.hibernate.orm'
4545

4646
ext {
47-
_group = "de.debuglevel"
48-
_module = "greeter"
47+
_group = applicationGroup
48+
_module = applicationModule
4949
_mainClass = _group + "." + _module + ".Application"
50-
_title = "Greeter Microservice"
50+
_title = applicationTitle
5151
}
5252

5353
// application plugin configuration
@@ -176,9 +176,9 @@ kapt {
176176
jar {
177177
// add Manifest to jar
178178
manifest {
179-
attributes 'Implementation-Title': applicationName,
179+
attributes 'Implementation-Title': applicationTitle,
180180
'Implementation-Version': version,
181-
'Main-Class': mainClassName
181+
'Main-Class': _mainClass
182182
}
183183
}
184184

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Application definition
2-
group=de.debuglevel.greeter
2+
applicationGroup=de.debuglevel
3+
applicationModule=greeter
4+
applicationTitle=Greeter Microservice
35
version=0.2.0-SNAPSHOT
46
# other settings
57
kotlin.code.style=official

0 commit comments

Comments
 (0)