Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 30fc804

Browse files
committed
Add Application Gradle plugin in order to have the following commands available:
* `./gradlew run`: Run the main entrypoint (`Starter`) without having to reference it * `./gradlew startScripts`: Creates OS specific scripts to run the project as a JVM application * More info: https://docs.gradle.org/current/userguide/application_plugin.html
1 parent 2537fca commit 30fc804

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Take a look, play and have fun with it!
2121
`./gradlew assemble --warning-mode all`
2222
2. Run the tests and plugins verification tasks:
2323
`./gradlew check --warning-mode all`
24+
3. Execute the main application entrypoint:
25+
`./gradlew run --warning-mode all`
2426
4. Start developing!
2527

2628
## 🤔 How to update dependencies

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'java'
2+
apply plugin: 'application'
23

34
sourceCompatibility = 1.11
45
targetCompatibility = 1.11
@@ -27,3 +28,7 @@ test {
2728
html.enabled = true
2829
}
2930
}
31+
32+
application {
33+
mainClassName = "tv.codely.Starter"
34+
}

0 commit comments

Comments
 (0)