Skip to content

Releases: Kord-Extensions/gradle-plugins

Release v1.5.0

20 Oct 15:02
7a39cf5
Compare
Choose a tag to compare

Gradle Plugins 1.5.0

This version includes some small changes to the KordEx plugin.

KordEx Plugin

  • This version adds a new i18n { } builder, allowing you to generate Kord Extensions Key objects based on your project's translation bundle.
    • To use it, provide the classPackage and translationBundle properties, and run the generateTranslationsClass task.
    • The plugin will add any generated objects to your project's source-set automatically.
    • Other options are available: className, configureSourceSet and outputDirectory.

For more information on the i18n { } builder, please read the documentation.

For more information on doing i18n work with Kord Extensions in general, please read the new documentation page.


Commits (1)

Release v1.4.2

23 Aug 21:49
b045299
Compare
Choose a tag to compare

Gradle Plugins 1.4.2

This version is a quick update to bump the Kotlin version used for compilation to 2.0.20, so we're no longer depending on release candidates. Thanks to @daksh7011 for his timely PR!


Commits (1)

  • b04529: 1.4.2: Kotlin 2.0.20

Release v1.4.1

20 Aug 17:07
7c0b514
Compare
Choose a tag to compare

Gradle Plugins 1.4.1

This version includes some small changes to the KordEx plugin.

KordEx Plugin

  • Fixed a problem where specifying a specific snapshot (rather than a moving snapshot version) would throw an error.
  • The plugin now applies KSP source-sets automatically again.

This version should fix the KSP issues we've noticed recently. Let us know how you get on!


Commits (1)

  • 7c0b51: 1.4.1: A few small fixes

Release v1.4.0

20 Aug 13:34
b0f9011
Compare
Choose a tag to compare

Gradle Plugins 1.4.0

This version involves a significant rewrite of the KordEx plugin, and some small changes to the Docker plugin.

KordEx Plugin

I've rewritten most of the plugin, making it more lazy and moving a lot of code out of afterEvaluate.

This, along with the other edits, introduces the following changes:

  • Fix an issue where the Gradle metadata may fail to parse due to unknown keys being present.
  • Fix an issue where the bot metadata was out of date when you changed the settings, preventing regeneration.
  • Fix an oversight that caused an error when you didn't manually configure a data collection level.

This release doesn't fix the KSP plugin issue — we're still working on that!

Docker Plugin

This version includes the following changes:

  • The plugin will now always regenerate the Dockerfile. This fixes a problem where the Dockerfile would always be out of date when you update your configuration.

Commits (1)

  • b0f901: 1.4.0: Fix, once and for all.

Release v1.3.3

18 Aug 10:45
0db7cba
Compare
Choose a tag to compare

Gradle Plugins 1.3.3

This version includes a small change to the KordEx plugin.

KordEx Plugin

As the mappings (func-mappings) module is now back, the KordEx plugin no longer throws an error when trying to use it.


Commits (1)

  • 0db7cb: 1.3.3: Mappings module is back!

Release v1.3.2

17 Aug 22:19
728eaa1
Compare
Choose a tag to compare

Gradle Plugins 1.3.2

This version includes a small change to the KordEx plugin.

KordEx Plugin

When you have the KSP plugin applied, the KordEx plugin automatically configures the annotation processor. Now, the plugin will also configure the relevant source-sets, so your IDE will be aware of KSP-generated files.


Commits (1)

  • 728eaa: 1.3.2: KSP source-sets

Release v1.3.1

16 Aug 11:34
f7be3e6
Compare
Choose a tag to compare

Gradle Plugins 1.3.1

This version makes some changes to the KordEx plugin.

KordEx Plugin

This release improves support for running bots in development, and provides a more sensible way to resolve the latest Kord version (when "latest" is specified).

  • Add a new dev task, which runs your bot in development mode and can recursively parse .env files in your project:
    • First, the .env file in your project's root directory is parsed.
    • Then, if your bot is in a submodule, the KordEx plugin will traverse the directory tree down to it, parsing any .env files it finds on the way, overriding previously set variables if it finds any duplicates.
    • Example: /root/.env -> /root/folder/.env -> /root/folder/current-submodule/.env
    • The plugin adds these variables to your in-development bot's runtime environment variables.
    • You can disable this by setting processDotEnv in your bot { } builder to false.
  • When you supply "latest" for the kordVersion property, the plugin will now ignore Kord feature branch snapshots, which should make things more consistent and predictable. You can still supply feature branch snapshots manually if you need to use them.
  • The plugin now uses reflection to figure out which version of the Kotlin plugin you've applied, rather than inspecting the buildscript's classpath. This fixes a problem where the classpath is empty in some project configurations.
  • When writing KordEx plugins using the plugin { } builder, the plugin now disables all Tar tasks, as building a.tar distribution is nonsensical given Kord Extensions can't load them.

Commits (1)

  • f7be3e: 1.3.1: Plugin and dev mode fixes, .env parsing

Release v1.3.0

13 Aug 15:36
7d68089
Compare
Choose a tag to compare

Gradle Plugins 1.3.0

This version makes some changes change to the KordEx plugin.

KordEx Plugin

The KordEx plugin is now ready for Kord Extensions 2 and is more resilient to metadata resolution problems.

  • Add support for Kord Extensions 2 dependencies.
  • When using Kord Extensions 2, warn about v1 module names and rename them to match the v2 names.
    • When using Kord Extensions 1, this will also happen in reverse for v2 module names.
    • This will become an error in later versions of the plugin.
  • Resolvers can now handle missing repository metadata gracefully and provide a more explicit error when they can't
    resolve a version.

Commits (1)

  • 7d6808: 1.3.0: KordEx v2 Support

Release v1.2.1

12 Aug 18:20
cb14dae
Compare
Choose a tag to compare

Gradle Plugins 1.2.1

This version makes a small change to the KordEx plugin.

KordEx Plugin

For developers working on complex Gradle projects, the plugin now supports an addDependencies configuration option, which you can use to prevent the plugin from configuring any dependencies.

This may be useful in multi-module projects where you want to define a "common" module that depends on Kord Extensions and configure bots in other modules depending on that one.


Commits (1)

  • cb14da: 1.2.1: addDependencies option for KordEx plugin

Release v1.2.0

10 Aug 11:58
696bbbc
Compare
Choose a tag to compare

Gradle Plugins 1.2.0

This version adds a new plugin — the Docker plugin from the template repo.

Docker Plugin

This (relatively simple) plugin allows you to generate a Dockerfile based on a Kotlin DSL, centralising your project's configuration and allowing Docker to adapt to changes, such as renaming a Gradle project.

For more information, see the documentation. It is pretty long!


Commits (1)

  • 696bbb: Move Docker plugin over from the template repo