mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-25 23:37:12 -07:00
Added description and group for the uberJar task.
This commit is contained in:
parent
269971663b
commit
c33235a1ac
1 changed files with 2 additions and 2 deletions
|
@ -40,11 +40,9 @@ import java.util.Locale;
|
||||||
|
|
||||||
@SuppressWarnings({"ALL", "unused"})
|
@SuppressWarnings({"ALL", "unused"})
|
||||||
public class Rife2Plugin implements Plugin<Project> {
|
public class Rife2Plugin implements Plugin<Project> {
|
||||||
|
|
||||||
public static final String DEFAULT_TEMPLATES_DIR = "src/main/templates";
|
public static final String DEFAULT_TEMPLATES_DIR = "src/main/templates";
|
||||||
public static final String DEFAULT_GENERATED_RIFE2_CLASSES_DIR = "generated/classes/rife2";
|
public static final String DEFAULT_GENERATED_RIFE2_CLASSES_DIR = "generated/classes/rife2";
|
||||||
public static final String RIFE2_GROUP = "rife2";
|
public static final String RIFE2_GROUP = "rife2";
|
||||||
|
|
||||||
public static final String WEBAPP_SRCDIR = "src/main/webapp";
|
public static final String WEBAPP_SRCDIR = "src/main/webapp";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -127,6 +125,8 @@ public class Rife2Plugin implements Plugin<Project> {
|
||||||
TaskContainer tasks,
|
TaskContainer tasks,
|
||||||
TaskProvider<PrecompileTemplates> precompileTemplatesTask) {
|
TaskProvider<PrecompileTemplates> precompileTemplatesTask) {
|
||||||
return tasks.register("uberJar", Jar.class, jar -> {
|
return tasks.register("uberJar", Jar.class, jar -> {
|
||||||
|
jar.setGroup(RIFE2_GROUP);
|
||||||
|
jar.setDescription("Assembles the web application and all dependencies into a single jar archive.");
|
||||||
var base = project.getExtensions().getByType(BasePluginExtension.class);
|
var base = project.getExtensions().getByType(BasePluginExtension.class);
|
||||||
jar.getArchiveBaseName().convention(project.provider(() -> base.getArchivesName().get() + "-uber"));
|
jar.getArchiveBaseName().convention(project.provider(() -> base.getArchivesName().get() + "-uber"));
|
||||||
jar.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);
|
jar.setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue