forked from allegro/elasticsearch-reindex-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (87 loc) · 2.7 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.1"
}
}
plugins {
id 'java'
id 'application'
id 'maven-publish'
id 'pl.allegro.tech.build.axion-release' version '1.2.4'
id "com.bmuschko.nexus" version "2.3.1"
id 'com.github.kt3k.coveralls' version '2.3.1'
}
apply plugin: 'io.codearte.nexus-staging'
sourceCompatibility = 1.8
project.group = 'pl.allegro.yukon'
mainClassName = "pl.allegro.tech.search.elasticsearch.tools.reindex.ReindexAction"
scmVersion {
tag {
prefix = 'elasticsearch-reindex-tool'
}
}
project.version = scmVersion.version
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.elasticsearch', name: 'elasticsearch', version: '2.0.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.7'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.13'
compile group: 'com.beust', name: 'jcommander', version: '1.30'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testCompile group: 'cglib', name: 'cglib', version: '3.1'
testCompile group: 'com.jayway.awaitility', name: 'awaitility', version: '1.6.3'
testCompile group: 'org.assertj', name: 'assertj-core', version: '2.0.0'
testCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.0.4'
testCompile group: 'eu.codearte.catch-exception', name: 'catch-exception', version: '1.4.4'
}
run {
if ( project.hasProperty("appArgs") ) {
args Eval.me(appArgs)
}
}
jar {
manifest {
attributes(
'Main-Class': mainClassName)
}
}
nexusStaging {
packageGroup = "pl.allegro"
}
modifyPom {
project {
name 'Elasticsearch reindex tool'
description 'Elasticsearch reindex tool provides easy way to rebuild indexes'
url 'https://github.com/allegro/elasticsearch-reindex-tool'
inceptionYear '2015'
scm {
url 'https://github.com/allegro/elasticsearch-reindex-tool'
connection 'scm:[email protected]:allegro/elasticsearch-reindex-tool.git'
developerConnection 'scm:[email protected]:allegro/elasticsearch-reindex-tool.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'awislowski'
name 'Andrzej Wisłowski'
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.7'
}