// enable DSL support in IDEA, see https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness
def ctx = context(pathRegexp: /.*\/jobs\/.*groovy/)
contributor(ctx, {
delegatesTo(findClass('javaposse.jobdsl.dsl.DslFactory'))
})
job("$basePath/grails-example-deploy") {
parameters {
stringParam 'host'
}
steps {
shell 'scp war file; restart...'
}
}
delegatesTo(findClass('javaposse.jobdsl.dsl.Job'))
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/236580af-37f9-447f-b033-c227fc44323c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm having a slightly different problem using the job-dsl-gradle-example where the file that enables the autocomplete config has this error:I'm using the community edition(IntelliJ IDEA 2016.2.3Build #IC-162.1812.17, built on August 30, 2016JRE: 1.8.0_112-release-b287 x86_64JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o)I'm not 100% sure of where to look to make sure that the right library is on the right place in the classpath. I did see that I do have some of the dependencies including the dsl jars, but not all the same ones in all the modules.job-dsl-gradle-example_test has (job-dsl-core:1.50, job-dsl:hpi:1.50 and job-dsl:1.50) as well as depending on job-dsl-gradle-example_mainjob-dsl-gradle-example_main only has (job-dsl-core:1.50)job-dsl-gradle-example_jobs only depends on job-dsl-example_mainI was also having a problem where the debugXML would run fine from the gradlew command line but not in intelliJ. Then I figured out to add the"-Dpattern=jobs/**/*Jobs.groovy" to the "Gradle VM options" under the Preferences|Gradle prefs.Thanks,Rob
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/236580af-37f9-447f-b033-c227fc44323c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/090c5aa5-2110-4c92-aa08-3f2d49e4df68%40googlegroups.com.