summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangPlugin.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangPlugin.kt')
-rw-r--r--plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangPlugin.kt22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangPlugin.kt b/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangPlugin.kt
new file mode 100644
index 0000000..4f01322
--- /dev/null
+++ b/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangPlugin.kt
@@ -0,0 +1,22 @@
+package moe.nea.archenemy.mojang
+
+import org.gradle.api.Plugin
+import org.gradle.api.Project
+
+class ArchenemyMojangPlugin : Plugin<Project> {
+
+ override fun apply(project: Project) {
+ project.rootProject.tasks.maybeCreate(
+ "downloadMinecraftVersionManifest",
+ DownloadMinecraftVersionManifest::class.java
+ )
+
+ val rootExt = project.rootProject.extensions
+ if (rootExt.findByName("archenemyShared") == null) {
+ rootExt.create("archenemyShared", ArchenemySharedExtension::class.java, project.rootProject)
+ }
+ val mojang = project.extensions.create(
+ "mojang", ArchenemyMojangExtension::class.java, project,
+ )
+ }
+} \ No newline at end of file