update maven support

This commit is contained in:
kimchy 2010-04-02 21:24:28 +03:00
parent dad0686fa9
commit 58d2e2e1fc
2 changed files with 36 additions and 4 deletions

View File

@ -68,10 +68,26 @@ test {
systemProperties["es.test.log.conf"] = System.getProperty("es.test.log.conf", "log4j-gradle.properties")
}
configurations {
deployerJars
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-http:1.0-beta-2"
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/repository")
snapshotRepository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/snapshotRepository")
// repository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/repository")
// snapshotRepository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/snapshotRepository")
configuration = configurations.deployerJars
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: "kimchy", password: System.getenv("REPO_PASS"))
}
snapshotRepository(url: "http://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: "kimchy", password: System.getenv("REPO_PASS"))
}
pom.project {
inceptionYear '2009'

View File

@ -79,10 +79,26 @@ task release(dependsOn: [zip]) << {
}
}
configurations {
deployerJars
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-http:1.0-beta-2"
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/repository")
snapshotRepository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/snapshotRepository")
// repository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/repository")
// snapshotRepository(url: "file://localhost/" + rootProject.projectDir.absolutePath + "/build/maven/snapshotRepository")
configuration = configurations.deployerJars
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: "kimchy", password: System.getenv("REPO_PASS"))
}
snapshotRepository(url: "http://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: "kimchy", password: System.getenv("REPO_PASS"))
}
pom.project {
inceptionYear '2009'