https://kotlinlang.org logo
Title
s

snowe

12/04/2018, 4:07 AM
ok, I applied the plugin, but still no dice…
g

gildor

12/04/2018, 5:08 AM
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

snowe

12/04/2018, 3:41 PM
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

gildor

12/04/2018, 3:59 PM
Idea suggests imports, but requires explicitly select it from code completion, because member declaration has higher priority than extension functions
s

snowe

12/04/2018, 4:06 PM
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?
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

gildor

12/04/2018, 4:23 PM
,> 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

snowe

12/07/2018, 10:11 PM
ah gross. thanks for the link.
I’m just going forward and converting everything in here to kotlin 😕