views:

70

answers:

3

I just add the hudson-artifactory plugin and everything run marvelously!!! with maven but when I tried to buikld the project with gradle ("I added th gradle plugin to hudson")

i have this error

FAILURE: Build failed with an exception. * Where: Initialization script 'C:\Documents and Settings\qqqqqqqqqqqq.hudson\jobs\skiiiiiiiiiin\builds\2010-08-10_10-45-03\init-artifactory.gradle' line: 2 * What went wrong: A problem occurred evaluating initialization script. Cause: No signature of method: org.gradle.invocation.DefaultGradle.apply() is applicable for argument types: (init_artifactory_gradle_bb54a6ea5f854f8feae8c6181e5acbf4$_run_closure1_closure2) values: [init_artifactory_gradle_bb54a6ea5f854f8feae8c6181e5acbf4$_run_closure1_closure2@1d7b222] * Try: Run with -s or -d option to get more details. Run with -S option to get the full (very verbose) stacktrace. BUILD FAILED Total time: 1.942 secs Finished: FAILURE

please any idea !! ????

+1  A: 

The plugin requires Gradle 0.9-preview-3+ Try using the latest version.

yossis
we must add http://gradle.artifactoryonline.com/gradle/libs/ and http://gradle.artifactoryonline.com/gradle/plugins/ on remote repository :)) and everything works !
trabelsi houcem
A: 

can you give me a link to download may be i have some error ! i tried with gradle-0.9-rc-1-bin.zip and i added the URL of the remote repository !
http://gradle.artifactoryonline.com/gradle/plugins/

but i get another kind of error from hudson :

:: problems summary :: :::: WARNINGS module not found: org.gradle#gradle-plugins;0.9-preview-3

==== clientModule: tried

..........

-- artifact org.fusesource.jansi#jansi;1.1!jansi.jar:

:::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.gradle#gradle-plugins;0.9-preview-3: not found :: org.gradle#gradle-core;0.9-preview-3: not found :: org.fusesource.jansi#jansi;1.1: not found :::::::::::::::::::::::::::::::::::::::::::::: FAILURE: Build failed with an exception. * Where: Initialization script 'C:\Documents and Settings\hetrabelsi.hudson\jobs\kicket trunk\builds\2010-08-11_10-18-27\init-artifactory.gradle' line: 3 * What went wrong: A problem occurred evaluating initialization script. Cause: Could not resolve all dependencies for configuration 'classpath': - unresolved dependency: org.gradle#gradle-plugins;0.9-preview-3: not found - unresolved dependency: org.gradle#gradle-core;0.9-preview-3: not found - unresolved dependency: org.fusesource.jansi#jansi;1.1: not found * Try: Run with -s or -d option to get more details. Run with -S option to get the full (very verbose) stacktrace. BUILD FAILED Total time: 15.026 secs Finished: FAILURE

trabelsi houcem
+1  A: 

we must add gradle.artifactoryonline.com/gradle/libs and gradle.artifactoryonline.com/gradle/plugins on remote repository :)) and everything works !

trabelsi houcem

related questions