diff --git a/modules/elasticsearch/build.gradle b/modules/elasticsearch/build.gradle index 5c5f554f94f..fc1acf364e9 100644 --- a/modules/elasticsearch/build.gradle +++ b/modules/elasticsearch/build.gradle @@ -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' diff --git a/plugins/attachments/build.gradle b/plugins/attachments/build.gradle index 7a167c872cc..be0183c6c11 100644 --- a/plugins/attachments/build.gradle +++ b/plugins/attachments/build.gradle @@ -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'