1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
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
;
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.
23 public class GeneralSquirrelJMEPlugin
24 implements Plugin
<Project
>
31 public void apply(Project __project
)
33 // Print Fossil executable path
34 FossilExeTask exeTask
= __project
.getTasks().create("fossilExe",
37 // Print Fossil executable path
38 __project
.getTasks().create("fossilVersion",
39 FossilExeVersionTask
.class, exeTask
);
42 __project
.getTasks().create("fossilUser",
43 FossilUserTask
.class, exeTask
);
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
);