January 2018
Intermediate to advanced
434 pages
14h 1m
English
So far, our server has been dependent on IDE. We would definitely want to make it independent of IDE. Thanks to Gradle, it is very easy to create a runnable JAR just with the following:
./gradlew clean bootRepackage
The preceding command is platform independent and uses the Gradle build system to build the application. Now, you just need to type the mentioned command to run it:
java -jar build/libs/gs-rest-service-0.1.0.jar
You can then see the following output as before:
Started AppKt in 4.858 seconds (JVM running for 5.548)
This means your server is running successfully.
Read now
Unlock full access