From 5d5c53151b044e6fafb0c2239176542b0355c24d Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 2 Apr 2010 16:54:01 +0300 Subject: [PATCH] more work on maven --- modules/elasticsearch/build.gradle | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/modules/elasticsearch/build.gradle b/modules/elasticsearch/build.gradle index f9ea7ed3628..1c05f6beb82 100644 --- a/modules/elasticsearch/build.gradle +++ b/modules/elasticsearch/build.gradle @@ -68,15 +68,26 @@ test { systemProperties["es.test.log.conf"] = System.getProperty("es.test.log.conf", "log4j-gradle.properties") } -configure(install.repositories.mavenInstaller) { -// pom.name = "ElasticSearch" -// pom.description = "Open Source, Distributed, RESTful, Search Engine" -// pom.url = "http://www.elasticsearch.org" -} - 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") + pom.project { + inceptionYear '2009' + name 'elasticsearch' + description 'Open Source, Distributed, RESTful Search Engine' + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + scm { + connection 'git://github.com/elasticsearch/elasticsearch.git' + developerConnection 'git@github.com:elasticsearch/elasticsearch.git' + url 'http://github.com/elasticsearch/elasticsearch' + } + } } } \ No newline at end of file