Skip to content

Commit

Permalink
fix artifacts in gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeshustoff committed Jul 2, 2021
1 parent bf20826 commit 040d4f7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ class DiktGradlePlugin : KotlinCompilerPluginSupportPlugin {
override fun apply(target: Project) {
target.extensions.create("dikt", DiktGradleExtension::class.java)
target.configurations.filter { it.name.endsWith("implementation", ignoreCase = true) }.forEach {
target.dependencies.add(it.name, target.dependencies.create("io.github.sergeshustoff.dikt:dikt-runtime:$version"))
target.dependencies.add(it.name, target.dependencies.create("com.github.sergeshustoff.dikt:dikt-runtime:$version"))
}
}

override fun applyToCompilation(kotlinCompilation: KotlinCompilation<*>): Provider<List<SubpluginOption>> {
return kotlinCompilation.target.project.provider { emptyList() }
}

override fun getCompilerPluginId(): String = "io.github.sergeshustoff.dikt"
override fun getCompilerPluginId(): String = "com.github.sergeshustoff.dikt"

override fun getPluginArtifact(): SubpluginArtifact {
return SubpluginArtifact(
groupId = "io.github.sergeshustoff.dikt",
groupId = "com.github.sergeshustoff.dikt",
artifactId = "dikt-compiler-plugin",
version = version
)
}

override fun getPluginArtifactForNative(): SubpluginArtifact = SubpluginArtifact(
groupId = "io.github.sergeshustoff.dikt",
groupId = "com.github.sergeshustoff.dikt",
artifactId = "dikt-compiler-plugin-native",
version = version
)
Expand Down

0 comments on commit 040d4f7

Please sign in to comment.