I am trying to get my Gradle build to upload to Artifactory using the
plugin. It doesn't seem to be working and I have no idea why.
I gave up working on this with my live projects and am now working on a
simple test project. It is a Java project with one class and one
dependency (log4j). Everything works, including resolving the dependency
and generating the jar, up to the upload. I have even tried using invalid
credentials in hopes of eliciting an error of some sort.
Below is my build.gradle. Why am I not getting gradletest.jar uploaded to
lib-release-local in my Artifactory instance, an error, or something? Is
it trying to give me a hint with:
Cannot publish Ivy descriptor if ivyDescriptor not set in task
':artifactoryPublish'
And task 'uploadArchives' does not export the Ivy descriptor.
Cannot publish Maven descriptor if mavenDescriptor not set in task
':artifactoryPublish'
And default install task for project ':' is not an Upload task
Thanks.
-Andrew Goodspeed
"How *reliable* [is he]? How shallow is the ocean? How cold is the sun?"
-Douglas Adams (Arthur Dent)
--build.gradle--
apply plugin: 'java'
apply plugin: 'artifactory'
// Project root name cannot be set here, so check that settings.gradle (or
whatever) has it set properly
assert name == 'gradletest'
// "group" equates to "organisation"
group = 'com.me'
artifactory {
contextUrl = 'http://artifactory.me.com/artifactory'
publish {
repository {
repoKey = 'libs-release-local'
username = 'hacker'
password = 'unauthorized'
ivy {
ivyLayout =
'[organization]/[module]/[revision]/[type]s/ivy-[revision].xml'
artifactLayout =
'[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]'
mavenCompatible = false
}
}
}
resolve {
repository {
repoKey = 'libs-release'
}
}
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.5.8'
}
sourceSets {
main {
java {
srcDir 'src'
}
}
}------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users