Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Commit

Permalink
Maven webdev upload example
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmccullough committed May 26, 2011
1 parent 586ea81 commit 23f1f76
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions maven-uploadwebdav/build.gradle
@@ -0,0 +1,25 @@
apply plugin: 'java'
apply plugin: 'maven'

group = 'com.gradleware.samples'

configurations {
deployerJars
}

repositories {
mavenCentral()
}

dependencies {
deployerJars "org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-7"
}

uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(
url: "http://localhost:8081/nexus/content/repositories/matthew"
)
}
}
2 changes: 2 additions & 0 deletions maven-uploadwebdav/run-example.bsh
@@ -0,0 +1,2 @@
#!/bin/bash
gradle uploadArchives
7 changes: 7 additions & 0 deletions maven-uploadwebdav/src/main/java/Main.java
@@ -0,0 +1,7 @@
public class Main
{
public static void main( String[] args )
{
System.out.println( "This is a Java main." );
}
}

0 comments on commit 23f1f76

Please sign in to comment.