ok, I applied the plugin, but still no dice…
# gradle
s
ok, I applied the plugin, but still no dice…
g
Are you suree that you imported members of
org.gradle.kotlin.dsl
?
there are no implicit imports like in build.gradle.kts, this is not a script
I don’t see
import org.gradle.kotlin.dsl.*
in your file
@snowe I created PR with fix, everything should work https://github.com/promontech/gradle-release/pull/1
s
fantastic. thank you so much @gildor. I did not think I would have to resolve the imports myself, I thought intellij would let me know if I needed to. I had gone to sleep by the time you messaged.
g
Idea suggests imports, but requires explicitly select it from code completion, because member declaration has higher priority than extension functions
s
Yeah I wasn’t getting the suggestions even. I had to manually add some more imports for the
tasks.invoke()
method.
do you know what could be up with this error here?
Copy code
09:01:02.351 [ERROR] [org.gradle.api.Task] e: /Users/tyler.thrailkill/Documents/code/oss/gradle-release/src/main/groovy/net/researchgate/release/ReleasePlugin.kt: (19, 1): Class 'ReleasePlugin' is not abstract and does not implement abstract base class member public abstract fun setProperty(p0: String!, p1: Any!): Unit defined in net.researchgate.release.PluginHelper
doesn’t make any sense to me, because PluginHelper doesn’t have a method
setProperty
.
or an abstract method
setProperty
g
,> Yeah I wasn’t getting the suggestions even. I had to manually add some more imports for the
tasks.invoke()
method. What kind import? Everything should be in org.gradle.kotlin.dsl
But this class is Groovy
You cannot easily extend it
s
ah gross. thanks for the link.
I’m just going forward and converting everything in here to kotlin 😕