2015-11-10 02:34:22 -05:00
|
|
|
/*
|
|
|
|
* Licensed to Elasticsearch under one or more contributor
|
|
|
|
* license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright
|
|
|
|
* ownership. Elasticsearch licenses this file to you under
|
|
|
|
* the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
* not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*/
|
2015-10-29 14:40:19 -04:00
|
|
|
|
2015-11-23 17:11:32 -05:00
|
|
|
// we must use buildscript + apply so that an external plugin
|
|
|
|
// can apply this file, since the plugins directive is not
|
|
|
|
// supported through file includes
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
|
|
|
|
}
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
2015-11-23 17:11:32 -05:00
|
|
|
apply plugin: 'groovy'
|
|
|
|
apply plugin: 'com.bmuschko.nexus'
|
2015-10-29 14:40:19 -04:00
|
|
|
// TODO: move common IDE configuration to a common file to include
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
group = 'org.elasticsearch.gradle'
|
|
|
|
archivesBaseName = 'build-tools'
|
|
|
|
|
2015-11-10 02:34:22 -05:00
|
|
|
Properties props = new Properties()
|
|
|
|
props.load(project.file('version.properties').newDataInputStream())
|
|
|
|
version = props.getProperty('elasticsearch')
|
|
|
|
|
2015-10-29 14:40:19 -04:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name 'sonatype-snapshots'
|
|
|
|
url "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
2015-10-29 16:59:10 -04:00
|
|
|
jcenter()
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile gradleApi()
|
|
|
|
compile localGroovy()
|
2015-11-10 02:34:22 -05:00
|
|
|
compile "com.carrotsearch.randomizedtesting:junit4-ant:${props.getProperty('randomizedrunner')}"
|
|
|
|
compile("junit:junit:${props.getProperty('junit')}") {
|
2015-10-29 14:40:19 -04:00
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile 'com.netflix.nebula:gradle-extra-configurations-plugin:3.0.3'
|
2015-10-29 16:59:10 -04:00
|
|
|
compile 'com.netflix.nebula:gradle-info-plugin:3.0.3'
|
|
|
|
compile 'org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r'
|
|
|
|
compile 'com.perforce:p4java:2012.3.551082' // THIS IS SUPPOSED TO BE OPTIONAL IN THE FUTURE....
|
2015-10-29 14:40:19 -04:00
|
|
|
compile 'de.thetaphi:forbiddenapis:2.0'
|
2015-11-13 17:05:50 -05:00
|
|
|
compile 'com.bmuschko:gradle-nexus-plugin:2.3.1'
|
2015-12-18 13:59:07 -05:00
|
|
|
compile 'org.apache.rat:apache-rat:0.11'
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
2015-11-10 02:34:22 -05:00
|
|
|
inputs.file('version.properties')
|
|
|
|
from 'version.properties'
|
2015-10-29 14:40:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
extraArchive {
|
|
|
|
javadoc = false
|
|
|
|
tests = false
|
|
|
|
}
|
2015-11-10 10:30:11 -05:00
|
|
|
|
|
|
|
eclipse {
|
|
|
|
classpath {
|
2016-02-04 18:44:30 -05:00
|
|
|
defaultOutputDir = file('build-eclipse')
|
2015-11-10 10:30:11 -05:00
|
|
|
}
|
|
|
|
}
|
2015-12-03 22:53:50 -05:00
|
|
|
|
|
|
|
task copyEclipseSettings(type: Copy) {
|
|
|
|
from project.file('src/main/resources/eclipse.settings')
|
|
|
|
into '.settings'
|
|
|
|
}
|
|
|
|
// otherwise .settings is not nuked entirely
|
|
|
|
tasks.cleanEclipse {
|
|
|
|
delete '.settings'
|
|
|
|
}
|
|
|
|
tasks.eclipse.dependsOn(cleanEclipse, copyEclipseSettings)
|