Add application task
This commit is contained in:
parent
46215760d4
commit
36422cbf45
3 changed files with 12 additions and 1 deletions
|
@ -31,6 +31,10 @@ repositories {
|
|||
mavenCentral()
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'com.example.Example'
|
||||
}
|
||||
|
||||
run {
|
||||
doFirst {
|
||||
println "Version: $version"
|
||||
|
|
|
@ -29,6 +29,10 @@ test {
|
|||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'App'
|
||||
}
|
||||
|
||||
semver {
|
||||
// properties = 'example.properties'
|
||||
// keysPrefix = 'example.'
|
||||
|
|
|
@ -7,7 +7,10 @@ plugins {
|
|||
|
||||
defaultTasks 'run'
|
||||
|
||||
mainClassName = 'App'
|
||||
|
||||
application {
|
||||
mainClass = 'App'
|
||||
}
|
||||
|
||||
// version = 1.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue