Skip to content

Commit 3ed58c8

Browse files
committed
Maintenance
1 parent 8662513 commit 3ed58c8

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ val processResources: AbstractCopyTask by tasks
5050
val test: Test by tasks
5151
val runIde: JavaExec by tasks
5252
val publishPlugin: PublishTask by tasks
53+
val clean: Task by tasks
5354

5455
configurations {
5556
"kotlin"()
@@ -263,6 +264,12 @@ runIde {
263264
}
264265
}
265266

267+
val cleanGen = task<Delete>("cleanGen") {
268+
delete = setOf(file("gen"))
269+
}
270+
271+
clean.dependsOn(cleanGen)
272+
266273
inline operator fun <T : Task> T.invoke(a: T.() -> Unit): T = apply(a)
267274
fun DependencyHandlerScope.kotlinModule(module: String) = kotlinModule(module, kotlinVersion) as String
268275
fun intellijPlugin(name: String) = mapOf(

src/main/kotlin/com/demonwav/mcdev/creator/BuildSystemWizardStep.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class BuildSystemWizardStep(private val creator: MinecraftProjectCreator) : Modu
6161
override fun updateDataModel() {}
6262

6363
override fun onStepLeaving() {
64-
super.onStepLeaving()
6564
creator.groupId = groupIdField.text
6665
creator.artifactId = artifactIdField.text
6766
creator.version = versionField.text

src/main/kotlin/com/demonwav/mcdev/creator/BungeeCordProjectSettingsWizard.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class BungeeCordProjectSettingsWizard(private val creator: MinecraftProjectCreat
7373
}
7474

7575
override fun onStepLeaving() {
76-
super.onStepLeaving()
7776
this.settings!!.pluginName = pluginNameField.text
7877
this.settings!!.pluginVersion = pluginVersionField.text
7978
this.settings!!.mainClass = mainClassField.text

src/main/kotlin/com/demonwav/mcdev/creator/MinecraftProjectCreator.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import com.demonwav.mcdev.platform.sponge.SpongeProjectConfiguration
2424
import com.google.common.base.MoreObjects
2525
import com.google.common.base.Objects
2626
import com.google.common.collect.ImmutableList
27-
import com.google.common.collect.Maps
2827
import com.intellij.openapi.module.Module
2928
import com.intellij.openapi.progress.ProgressIndicator
3029
import com.intellij.openapi.progress.ProgressManager
@@ -40,7 +39,7 @@ class MinecraftProjectCreator {
4039
lateinit var module: Module
4140
lateinit var buildSystem: BuildSystem
4241

43-
val settings = Maps.newLinkedHashMap<PlatformType, ProjectConfiguration>()!!
42+
val settings = LinkedHashMap<PlatformType, ProjectConfiguration>()
4443

4544
lateinit var sourceDir: VirtualFile
4645
lateinit var resourceDir: VirtualFile

src/main/kotlin/com/demonwav/mcdev/creator/ProjectChooserWizardStep.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,31 +208,31 @@ class ProjectChooserWizardStep(private val creator: MinecraftProjectCreator) : M
208208
}
209209

210210
companion object {
211-
private val bukkitInfo = "Create a standard " +
211+
private const val bukkitInfo = "Create a standard " +
212212
"<a href=\"https://bukkit.org/\">Bukkit</a> plugin, for use " +
213213
"on CraftBukkit, Spigot, and Paper servers."
214-
private val spigotInfo = "Create a standard " +
214+
private const val spigotInfo = "Create a standard " +
215215
"<a href=\"https://www.spigotmc.org/\">Spigot</a> plugin, for use " +
216216
"on Spigot and Paper servers."
217-
private val paperInfo = "Create a standard " +
217+
private const val paperInfo = "Create a standard " +
218218
"<a href=\"https://paper.emc.gs\">Paper</a> plugin, for use " +
219219
"on Paper servers."
220-
private val bungeeCordInfo = "Create a standard " +
220+
private const val bungeeCordInfo = "Create a standard " +
221221
"<a href=\"https://www.spigotmc.org/wiki/bungeecord/\">BungeeCord</a> plugin, for use " +
222222
"on BungeeCord servers."
223-
private val spongeInfo = "Create a standard " +
223+
private const val spongeInfo = "Create a standard " +
224224
"<a href=\"https://www.spongepowered.org/\">Sponge</a> plugin, for use " +
225225
"on Sponge servers."
226-
private val forgeInfo = "Create a standard " +
226+
private const val forgeInfo = "Create a standard " +
227227
"<a href=\"https://files.minecraftforge.net/\">Forge</a> mod, for use " +
228228
"on Forge servers and clients."
229-
private val liteLoaderInfo = "Create a standard " +
229+
private const val liteLoaderInfo = "Create a standard " +
230230
"<a href=\"http://www.liteloader.com/\">LiteLoader</a> mod, for use " +
231231
"on LiteLoader clients."
232-
private val canaryInfo = "Create a standard " +
232+
private const val canaryInfo = "Create a standard " +
233233
"<a href=\"https://canarymod.net/\">Canary</a> plugin, for use " +
234234
"on CanaryMod and Neptune servers."
235-
private val neptuneInfo = "Create a standard " +
235+
private const val neptuneInfo = "Create a standard " +
236236
"<a href=\"https://www.neptunepowered.org/\">Neptune</a> plugin, for use " +
237237
"on Neptune servers."
238238
}

src/main/kotlin/com/demonwav/mcdev/creator/SpongeForgeChooser.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ class SpongeForgeChooser(private val creator: MinecraftProjectCreator) : ModuleW
4949
}
5050

5151
override fun onStepLeaving() {
52-
super.onStepLeaving()
53-
5452
if (singleRadioButton.isSelected) {
5553
// First remove the singular forge and sponge configurations
5654
creator.settings

0 commit comments

Comments
 (0)