Skip to content

Commit

Permalink
publish nightly builds
Browse files Browse the repository at this point in the history
fixes #29
  • Loading branch information
costin committed Apr 30, 2013
1 parent cd66cd9 commit 6a3fbc2
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 6 deletions.
8 changes: 3 additions & 5 deletions build.gradle
Expand Up @@ -7,9 +7,6 @@ buildscript {
}
}

description = 'ElasticSearch Hadoop'
group = 'org.elasticsearch.hadoop'

repositories {
mavenCentral()
maven { url "http://oss.sonatype.org/content/groups/public/" }
Expand All @@ -21,6 +18,7 @@ repositories {
apply plugin: "java"
apply plugin: 'eclipse'
apply plugin: 'idea'
apply from: "$rootDir/maven.gradle"
apply plugin: 'propdeps'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
Expand Down Expand Up @@ -126,7 +124,7 @@ test {
"org/elasticsearch/hadoop/integration/**/*Suite.class"]

testLogging {
events "started" //, "standardOut", "standardError"
events "started" , "standardOut", "standardError"
minGranularity 2
maxGranularity 2
}
Expand Down Expand Up @@ -169,7 +167,7 @@ jar {
manifest.attributes['Implementation-Version'] = project.version
manifest.attributes['Implementation-URL'] = "http://github.com/elasticsearch/elasticsearch-hadoop"
manifest.attributes['Implementation-Vendor'] = "Elasticsearch"
manifest.attributes['Implementation-Vendor-Id'] = "org.elasticsearch"
manifest.attributes['Implementation-Vendor-Id'] = "org.elasticsearch.hadoop"

def build = System.env['ESHDP.BUILD']
if (build != null)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -28,4 +28,4 @@ esVersion = 0.90.0
# --------------------
# Project wide version
# --------------------
version=1.0.0.BUILD-SNAPSHOT
version=1.3.0.BUILD-SNAPSHOT
69 changes: 69 additions & 0 deletions maven.gradle
@@ -0,0 +1,69 @@
apply plugin: "maven"
apply plugin: "propdeps-maven"

def customizePom(pom, gradleProject) {
pom.whenConfigured { generatedPom ->

// eliminate test-scoped dependencies (no need in maven central poms)
generatedPom.dependencies.removeAll { dep ->
dep.scope == 'test'
}

// add all items necessary for maven central publication
generatedPom.project {
name = gradleProject.description
description = gradleProject.description
url = 'http://github.com/elasticsearch/elasticsearch-hadoop'
organization {
name = 'Elasticsearch'
url = 'http://www.elasticsearch.org/'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
scm {
url = 'http://github.com/elasticsearch/elasticsearch-hadoop'
connection = 'scm:git:git://github.com/elasticsearch/elasticsearch-hadoop'
developerConnection = 'scm:git:git://github.com/elasticsearch/elasticsearch-hadoop'
}
developers {
developer {
id = 'costin'
name = 'Costin Leau'
email = 'costin@elasticsearch.com'
properties {
twitter = 'costinl'
}
}
}
}

groupId = "org.elasticsearch"
artifactId = "elasticsearch-hadoop"
}
}

uploadArchives {
repositories {
mavenDeployer {
customizePom(pom, project)

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
}
}
}

install {
repositories.mavenInstaller {
customizePom(pom, project)
}
}
1 change: 1 addition & 0 deletions settings.gradle
@@ -0,0 +1 @@
rootProject.name = "elasticsearch-hadoop"

0 comments on commit 6a3fbc2

Please sign in to comment.