Add input and output jars as inputs for VMCompactLibraryTask.
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / general / GeneralSquirrelJMEPlugin.java
blobd88a1bb5670b000f5eeb7f907b54ace76ea8af42
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.plugin.general;
12 import cc.squirreljme.plugin.multivm.TaskInitialization;
13 import org.gradle.api.Plugin;
14 import org.gradle.api.Project;
16 /**
17 * This is a plugin that performs general SquirrelJME tasks and is mostly used
18 * for extra utilities that are not needed by the build at all. Examples of
19 * this would be managing the blog or otherwise.
21 * @since 2020/06/24
23 public class GeneralSquirrelJMEPlugin
24 implements Plugin<Project>
26 /**
27 * {@inheritDoc}
28 * @since 2020/06/24
30 @Override
31 public void apply(Project __project)
33 // Print Fossil executable path
34 FossilExeTask exeTask = __project.getTasks().create("fossilExe",
35 FossilExeTask.class);
37 // Print Fossil executable path
38 __project.getTasks().create("fossilVersion",
39 FossilExeVersionTask.class, exeTask);
41 // Print Fossil user
42 __project.getTasks().create("fossilUser",
43 FossilUserTask.class, exeTask);
45 // Developer note
46 __project.getTasks().create("developerNote",
47 DeveloperNoteTask.class, exeTask);
49 // Recreate the developer note calendar
50 __project.getTasks().create("recreateDeveloperNoteCalendar",
51 RecreateDeveloperNoteCalendarTask.class, exeTask);
53 // List error prefixes used by projects
54 __project.getTasks().create("listErrorPrefixes",
55 ListErrorPrefixTask.class);
57 // Determine the next error prefix that is available
58 __project.getTasks().create("nextErrorPrefix",
59 NextErrorPrefixTask.class);
61 // Setup ROM tasks, only once
62 TaskInitialization.romTasks(__project);
64 // Initialize the full suite tasks
65 TaskInitialization.initializeFullSuiteTask(__project);