Class ThinLauncherPlugin

  • All Implemented Interfaces:
    org.gradle.api.Plugin<org.gradle.api.Project>

    public class ThinLauncherPlugin
    extends java.lang.Object
    implements org.gradle.api.Plugin<org.gradle.api.Project>
    Gradle Plugin for Spring Boot's thin launcher. If the Java plugin is applied to the project, some tasks are added to the project.
    • "thinResolve": runs the project jar and download its dependencies. If you have more than one jar task then an additional task is created for each one named "thinResolve[JarTaskName]" (where "JarTaskName" is the capitalized name of the jar task).
    • "thinResolvePrepare": copies the project jar to the "root" directory preparing for the resolution. The same naming convention applies to multiple jar tasks.
    • "thinProperties": calculates thin.properties and puts them in the main build output.
    • "thinPom": runs automatically if you apply the Maven plugin. Generates a pom.xml and puts it in the main build output.
    Author:
    Andy Wilkinson
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.gradle.api.Project project)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThinLauncherPlugin

        public ThinLauncherPlugin()
    • Method Detail

      • apply

        public void apply​(org.gradle.api.Project project)
        Specified by:
        apply in interface org.gradle.api.Plugin<org.gradle.api.Project>