forked from uschi2000/atlasdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (42 loc) · 1.29 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
buildscript {
repositories {
mavenCentral()
maven {
url 'http://dl.bintray.com/palantir/releases/'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.3.1'
classpath 'com.palantir:jacoco-coverage:0.1.4'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
}
}
plugins {
id 'com.palantir.git-version' version '0.1.3'
id 'org.inferred.processors' version '1.1'
}
apply from: 'gradle/versions.gradle'
group = 'com.palantir.atlasdb'
version = gitVersion()
description = 'Transactional distributed database layer'
task clean(type: Delete) {
delete buildDir
}
apply from: 'idea.gradle'
def ideaSetModuleLevel(idea, targetCompatibility) {
if (idea == null) return
idea.module.jdkName = targetCompatibility
idea.module.iml.withXml {
it.asNode().component.find { it.@name == 'NewModuleRootManager' }.@LANGUAGE_LEVEL = ("JDK_" + targetCompatibility).replaceAll('\\.', '_')
}
}
allprojects {
// This allows tests that require an artefact to exist to
// decide whether to call gradle themselves or not
tasks.withType(Test) {
systemProperty 'RUNNING_IN_GRADLE', 'true'
}
}