Skip to content

Commit

Permalink
Add explicit version to plugin artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalossilva committed Dec 9, 2021
1 parent 0454efe commit 4a8d51b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ Notable changes are documented in this file, whose format follows [Keep a Change

- Removed cross-dependency from the library to the plugin.

### Fixed

- Add explicit version to plugin artifact to prevent issues with resolution.

## [0.2.0] - 2021-12-08

### Added
Expand Down
1 change: 1 addition & 0 deletions resources-plugin/build.gradle.kts
Expand Up @@ -40,6 +40,7 @@ buildConfig {
buildConfigField("String", "GROUP_ID", "\"$group\"")
buildConfigField("String", "ARTIFACT_ID", "\"$artifactId\"")
buildConfigField("String", "PLUGIN_ID", "\"$pluginId\"")
buildConfigField("String", "VERSION", "\"$version\"")
}

pluginBundle {
Expand Down
3 changes: 2 additions & 1 deletion resources-plugin/src/main/kotlin/ResourcesPlugin.kt
Expand Up @@ -23,7 +23,8 @@ class ResourcesPlugin : KotlinCompilerPluginSupportPlugin {

override fun getPluginArtifact() = SubpluginArtifact(
groupId = BuildConfig.GROUP_ID,
artifactId = BuildConfig.ARTIFACT_ID
artifactId = BuildConfig.ARTIFACT_ID,
version = BuildConfig.VERSION
)

override fun isApplicable(kotlinCompilation: KotlinCompilation<*>) =
Expand Down

0 comments on commit 4a8d51b

Please sign in to comment.