Some hints:

- remove the Java plugin
- add the following:
  artifacts { archives myZip }

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Twitter: @pniederw


Chris Lefevre wrote:
> 
> Hello,
> I'm extremely new to Gradle, but I am trying to simply zip up a python
> Django folder tree, and then take said zip and upload it to my
> Artifactory.
> 
> In testing I've gotten a gradle build file this far:
> 
> // Called as gradle -Pversion="${bamboo.custom.svn.revision.number}"
> // This sets the project.version var to the svn build if I'm following
> this right (Seems to work)
> 
> apply plugin: 'java'
> apply plugin: 'maven'
>  
> group = 'com.local.project'
> 
> packaging = 'zip'
> task myZip(type: Zip) {
>     from 'src'
> }
> 
> def artifactId = projectDir.name
> def groupId = group
> def versionNumber = version
>  
> repositories {
>   mavenRepo urls: "http://localhost:8081/artifactory/libs-release";;
> }
>  
> uploadArchives {
>   repositories {
>     mavenRepo urls:
> "http://localhost:8081/artifactory/libs-release-local";;
>     repositories.mavenDeployer {
>       repository(url:
> "http://localhost:8081/artifactory/libs-release-local";) {
>         authentication(userName: 'user', password: 'pass')
>       }
>       pom.version = versionNumber
>       pom.artifactId = artifactId
>       pom.groupId = groupId
>     }
>   }
> }
> 
> 
> 
> When this is run, I can get the zip file to properly create, but on the
> uploadArchives, it keeps trying to upload a .Jar version instead of the
> .zip file that I've created. I am putting up a Python Django project, so
> .jar isn't what I wanted to upload.
> 


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Extremely-simple-question-on-Zip-Archiving-and-Upload-to-Artifactory-tp4704664p4705742.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to