Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is there a plugin for the gradle war plugin?


Asked by Travis Prince on Nov 29, 2021 Gradle



Gradle war plugin declares it's own provided configurations providedCompile and providedRuntime and these dependencies are not going into resulted war, but contained in the generated pom as compile. Plugin fixes such dependencies scope to provided (how it could be declared in pure maven).
Accordingly,
Gradle Plugin Development Plugin. The Java Gradle Plugin development plugin can be used to assist in the development of Gradle plugins. It automatically applies the Java Library plugin, adds the gradleApi () dependency to the api configuration and performs validation of plugin metadata during jar task execution.
Next, A plugin for gradle to provide functionality similar to the war overlay function in maven. This plugin is initially developed to support building CAS servers, but should work in other situations. This plugin enhances the Gradle WAR plugin. Alternatively, import the plugin in one line:
In this manner,
The plugin also integrates with TestKit, a library that aids in writing and executing functional tests for plugin code. It automatically adds the gradleTestKit () dependency to the testImplementation configuration and generates a plugin classpath manifest file consumed by a GradleRunner instance if found.
Also Know,
Adds files to the classpath to include in the WAR archive. Adds an action to be applied to each file as it about to be copied into its destination. The given closure is called with a FileCopyDetails as its parameter. Actions are executed in the order added, and are inherited from the parent spec.