blob: b364307f75ae147aa19952b9eaf005908f11b621 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF 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.
*/
apply from: 'gradle/scripts/environment.gradle'
buildscript {
apply from: 'gradle/scripts/repositories.gradle'
apply from: 'gradle/scripts/defaultBuildProperties.gradle'
apply from: 'gradle/scripts/computeVersions.gradle'
buildscript.repositories.addAll(project.repositories)
dependencies {
classpath 'org.apache.ant:ant:1.9.4'
classpath 'gradle.plugin.org.inferred:gradle-processors:1.1.2'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
classpath 'gradle.plugin.com.palantir:jacoco-coverage:0.3.0'
classpath 'io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE'
classpath 'me.champeau.gradle:jmh-gradle-plugin:0.3.1'
}
}
apply from: 'gradle/scripts/repositories.gradle'
apply plugin: 'org.inferred.processors'
apply plugin: 'io.spring.dependency-management'
apply from: 'gradle/scripts/configureSubprojects.gradle'
apply from: 'gradle/scripts/idesSetup.gradle'
apply from: 'gradle/scripts/jacoco-coveralls-support.gradle'
apply from: 'gradle/scripts/dependencyDefinitions.gradle'
apply from: 'gradle/scripts/restli.gradle'
apply from: 'gradle/scripts/testSetup.gradle'
apply from: 'gradle/scripts/globalDependencies.gradle'
apply from: 'gradle/scripts/javaPlugin.gradle'
apply from: 'gradle/scripts/utilities.gradle'
apply from: 'gradle/scripts/javadoc.gradle'
apply from: 'gradle/scripts/sourcesJar.gradle'
apply from: 'gradle/scripts/mavenPublishing.gradle'
apply from: 'gradle/scripts/javaVersionCheck.gradle'
task wrapper(type: Wrapper) { gradleVersion = '2.13' }
/*
* Hack for upgrading pegasus to version 11.0.0. For some reason, the gradle-plugins in
* that version fails to bring in "tools.jar" into the classpath. The rest.li team is actively
* seeking for a clean fix. This part will be removed later when the fix is ready
*/
allprojects {
tasks.matching { it.name == 'generateRestModel' }.all {
doFirst {
it.codegenClasspath += files("${System.getProperty('java.home')}/../lib/tools.jar")
}
}
}