Gradle Effective Implementation Guide by Unknown

Gradle Effective Implementation Guide by Unknown

Author:Unknown
Language: eng
Format: epub, pdf
Publisher: Packt Publishing


We can invoke the run task and see the output of the SampleApp class:

$ gradle run :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :run Welcome to Gradle. BUILD SUCCESSFUL Total time: 1.423 secs

Note that we don't have to set the classpath property anymore. The plugin automatically includes the runtimeClasspath object of the project to execute the Java class.

Creating a distributable application archive

With the application plugin we can also build a distribution with our Java application. This means we can distribute the application and people can run the Java application without Gradle. The plugin will create the necessary operating system-specific start scripts and package all necessary classes and dependencies.

The following table shows the extra tasks we can use with the application plugin to build a distribution:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.