-
Notifications
You must be signed in to change notification settings - Fork 434
Compilation failure when using the org.hidetake.ssh plugin #763
Comments
Is this an issue with the Kotlin compiler or Gradle not correctly resolving dependencies? |
Using kotlin-dsl 0.16.3.
As soon as the 'host' or any property from the FWIW, currently I workaround the issue by writing the remotes configuration and custom SSH task using a separate Groovy script, and then apply the groovy script in my module's build.gradle.kts (similar to https://github.com/gradle/kotlin-dsl/blob/master/samples/groovy-interop/build.gradle.kts). |
Just hit the same wall. Also it would be good to have complimentary kotlin dsl for this case since there seems to be no simple kotlin- or java-based way to upload something via ssh. Using Jsch directly is complicated. |
Oh, a simple
|
I still get
when using a separate file. Not sure if this is the same issue, should I make a new one? |
This is a Groovy/Kotlin interoperability problem. The |
Here is how to work around the plugin interoperability issue using plugins {
id("org.hidetake.ssh") version "2.10.1"
}
remotes {
withGroovyBuilder {
"create"("webServer") {
setProperty("host", "127.0.0.1")
}
}
} |
@eskatos Struggling to use your workaround in practice. I have:
Currently stuck on the error: In summary the issue is passing the remote to the Edit: Use SessionHandler. |
As long as you need to reference the The real fix would be that int128/gradle-ssh-plugin#317 be addressed by the plugin author or the community. |
The compilation of the following build file fails with Gradle 4.6:
with the error message:
The text was updated successfully, but these errors were encountered: