Hi Kallin,

The exception you got usually indicates that Gradle was unable to upload the archives due invalid credentials.
Please add the following 2 properties to your gradle.properties. 

artifactory.publish.username= "your username"
artifactory.publish.password= "your password"

If there is still a problem, please run Gradle with the -d switch. This should give a more verbose log, and will allow us to analyze the problem.

HTH

Tomer

On 10/08/2010 04:08 PM, Kallin Nagelberg wrote:
Thanks Tomer,

I have read through that documentation many times for clues. I had imagined that all properties were optional, and that the plugin would use the artifactory defaults for choosing 'libs-releases-local', etc. I added a couple properties to the gradle.properties file and got some activity:

artifactory.publish.repoKey = libs-releases-local
artifactory.contextUrl = http://myhost/artifactory

but it just produces a low-level exception now:

C:\dev\gradle_test>gradle uploadArchives
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:uploadArchives

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\dev\gradle_test\build.gradle'

* What went wrong:
Execution failed for task ':uploadArchives'.
Cause: Could not publish configurations [configuration ':archives'].

* 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: 9.73 secs
java.util.NoSuchElementException
        at java.util.LinkedList.remove(LinkedList.java:788)
        at java.util.LinkedList.removeFirst(LinkedList.java:134)
        at org.gradle.logging.AbstractProgressLoggingAwareFormatter.format(AbstractProgressLoggingAwareFormatter.java:56)
        at org.gradle.logging.Slf4jLoggingConfigurer$LoggingDestination$1.format(Slf4jLoggingConfigurer.java:191)
        at org.gradle.logging.Slf4jLoggingConfigurer$Appender.append(Slf4jLoggingConfigurer.java:237)
        at org.gradle.logging.Slf4jLoggingConfigurer$Appender.append(Slf4jLoggingConfigurer.java:227)
        at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85)
        at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:64)

Maybe I'm missing something trivial? It would be nice to have a simple example of all that is required in that documentation.

Thanks,
-Kallin Nagelberg


On Thu, Oct 7, 2010 at 5:06 PM, Tomer Cohen <[email protected]> wrote:

Hi Kallin

The plugin defines a new task called buildInfo which executes the
uploadArchives to the repository that is defined in gradle.properties

please see
http://wiki.jfrog.org/confluence/display/RTD/Gradle+Artifactory+Plugin
for all relevant properties you can configure for the plugin.

HTH

Tomer
--
View this message in context: http://forums.jfrog.org/artifactory-gradle-plugin-example-tp5612937p5613007.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
_______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to