Closed eldritch-dream closed 5 years ago
This repository, kotlin-dsl-samples
is only for extra Kotlin DSL samples. Please open Gradle Kotlin DSL issues on the gradle/gradle
repository. I'll move this issue to gradle/gradle
.
Issue moved to gradle/gradle #10990 via ZenHub
I was asking for a sample to show a resolution to my question. Is this not the right place for that?
Expected Behavior
I am using the kotlin-dsl plugin to build a pre-compiled script plugin that depends on the artifactory plugin as shown below. What I would expect is that the version of the artifactory plugin would be included in the jar that gets produced so I could use my plugin in a different project without including the artifactory plugin with a defined version at the top level.
build.gradle.kts
myPlugin.gradle.kts
Current Behavior
Currently when I want to use my published plugin I have to do so as shown below. Without the artifactory plugin line, my-plugin complains that it doesn't know what the com.jfrog.artifactory plugin is like so. I am fairly certain that this error message is because my-plugin doesn't know which version of the artifactory plugin to use.
Some other project build.gradle.kts
Is it possible to do what I am trying to do? If so could an example be created to help other people down the line?
Thanks