User: rednesto Date: 11 Jul 24 13:50 Revision: 84f01917f34ebeec08e951e25e6d53482ad4110e Summary: Set up changelogs and first draft for 1.8.0 TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9416&personal=false Index: build.gradle.kts =================================================================== --- build.gradle.kts (revision 6fa2235d603088a6ba4e82782394ab8c3f4dbb9a) +++ build.gradle.kts (revision 84f01917f34ebeec08e951e25e6d53482ad4110e) @@ -21,6 +21,7 @@ import org.cadixdev.gradle.licenser.header.HeaderStyle import org.cadixdev.gradle.licenser.tasks.LicenseUpdate import org.gradle.internal.jvm.Jvm +import org.jetbrains.changelog.Changelog import org.jetbrains.gradle.ext.settings import org.jetbrains.gradle.ext.taskTriggers import org.jetbrains.intellij.tasks.PrepareSandboxTask @@ -37,6 +38,7 @@ id("org.jetbrains.intellij") version "1.17.2" id("org.cadixdev.licenser") id("org.jlleitschuh.gradle.ktlint") version "10.3.0" + id("org.jetbrains.changelog") version "2.2.0" } val ideaVersionName: String by project @@ -191,6 +193,12 @@ attributes.attribute(filtered, true) } +changelog { + groups.empty() + path = "changelog.md" + repositoryUrl = "https://github.com/minecraft-dev/MinecraftDev" +} + intellij { // IntelliJ IDEA dependency version.set(providers.gradleProperty("ideaVersion")) @@ -217,6 +225,12 @@ sandboxDir.set(layout.projectDirectory.dir(".sandbox").toString()) } +tasks.patchPluginXml { + val changelog = project.changelog + val item = changelog.getOrNull(version.toString()) ?: changelog.getUnreleased() + changeNotes = changelog.renderItem(item.withHeader(false).withEmptySections(false), Changelog.OutputType.HTML) +} + tasks.publishPlugin { // Build numbers are used for properties["buildNumber"]?.let { buildNumber -> Index: changelog.md =================================================================== --- changelog.md (revision 84f01917f34ebeec08e951e25e6d53482ad4110e) +++ changelog.md (revision 84f01917f34ebeec08e951e25e6d53482ad4110e) @@ -0,0 +1,42 @@ +# Minecraft Development for IntelliJ + +## [Unreleased] + +This release contains two major features: +- Support for MixinExtras expressions ([#2274](https://github.com/minecraft-dev/MinecraftDev/pull/2274)) +- A rewritten project creator ([#2274](https://github.com/minecraft-dev/MinecraftDev/pull/2274)) + +The new project creator is very similar to the previous one but has a few advantages: +- The templates are now stored on a separate repository and updated the first time you open the creator. This allows us to release template updates independently of plugin releases. +- You can create your own custom templates in their own repositories, which can be: + - flat directories + - local ZIP archives + - remote ZIP archives (like the built-in templates) +- Kotlin templates were added to all platforms except Forge and Architectury (couldn't get the Forge one to work, will look into it later) +- Fabric now has a split sources option +- Some niche options like the plugins dependencies fields were removed as their use was quite limited +- Remembered field values won't be ported over to the new creator, so make sure to configure your Group ID under Build System Properties! +- The old creator will be kept for a few months to give us the time to fix the new creator, please report any issues on the [issue tracker](https://github.com/minecraft-dev/MinecraftDev/issues) + +--- + +### Added + +- Initial support for NeoForge's ModDevGradle +- Option to force json translation and configurable default i18n call ([#2292](https://github.com/minecraft-dev/MinecraftDev/pull/2292)) +- Minecraft version detection for Loom-based projects +- Other JVM languages support for translation references, inspections and code folding +- Repo-based project creator templates ([#2304](https://github.com/minecraft-dev/MinecraftDev/pull/2304)) +- Support for MixinExtras expressions ([#2274](https://github.com/minecraft-dev/MinecraftDev/pull/2274)) + +### Changed + +- [#2296](https://github.com/minecraft-dev/MinecraftDev/issues/2296) Support entry point container objects in fabric.mod.json +- [#2325](https://github.com/minecraft-dev/MinecraftDev/issues/2325) Make lang annotator fixes bulk compatible +- Migrated the remaining legacy forms to the Kotlin UI DSL + +### Fixed + +- [#2316](https://github.com/minecraft-dev/MinecraftDev/issues/2316) Sponge's injection inspection isn't aware of the Configurate 4 classes ([#2317](https://github.com/minecraft-dev/MinecraftDev/pull/2317)) +- [#2310](https://github.com/minecraft-dev/MinecraftDev/issues/2310) Translations aren't detected for enum constructors +- [#2260](https://github.com/minecraft-dev/MinecraftDev/issues/2260) Vararg return type expected in a @ModifyArg method