dkorotych / gradle-maven-exec-plugin

Gradle plugin which provides an Maven exec task
Apache License 2.0
57 stars 7 forks source link

Unable to set goals #26

Open bellini-ea opened 4 years ago

bellini-ea commented 4 years ago

Hi I'm on gradle 6.2.1 and using the kotlin DSL. I'm trying to setup this plugin but having issues getting access to be able to set goals.

register("mytask")` { goals(listOf("")) }

I get the following on the goals part in Intellij:

Cannot access 'com.github.dkorotych.gradle.maven.exec.DefaultMavenExecSpec.Trait.FieldHelper' which is a supertype of 'com.github.dkorotych.gradle.maven.exec.MavenExec'. Check your module classpath for missing or conflicting dependencies

On the commandline I get this:

` Could not resolve all artifacts for configuration ':classpath'. Could not find com.github.dkorotych.gradle.maven.exec:gradle-maven-exec-plugin:2.2.1. Searched in the following locations:

Appreciate any guidance here.

image

elect86 commented 4 years ago

hey, did you manage to solve in the meanwhile?

bellini-ea commented 4 years ago

I did not. Couldn't find a way so ended up calling maven as a direct os call.

dkorotych commented 4 years ago

Sorry, guys, I can’t devote enough time to this task now.

There is an example here, I tried to port my standard test scripts to Kotlin and some tasks work. I think I just do not have the knowledge to correctly port the script from Groovy to Kotlin

But I will always accept a working PR

elect86 commented 4 years ago

I'd love to do that!

elect86 commented 4 years ago

Here you go, remains left only: