-
Notifications
You must be signed in to change notification settings - Fork 47
/
build.gradle
85 lines (74 loc) · 1.79 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
apply plugin: 'java'
ext {
stardogVersion = project.hasProperty("stardogVersion") ? project.getProperty("stardogVersion") : '9.0.0'
projectVersion = '0.0.6'
distPath = "${projectDir}/dist"
stardogRepo = project.hasProperty("stardogRepo") ? project.getProperty("stardogRepo") : "http://maven.stardog.com"
stardogLib = project.hasProperty("stardogLib") ? project.getProperty("stardogLib") : "."
guavaVersion = "33.2.1-jre"
junitVersion = "4.12"
rdf4jRuntimeVersion = "2.2.4"
slf4jVersion = "2.0.13"
}
allprojects {
apply plugin: 'idea'
group = 'com.complexible.stardog'
version = projectVersion
// also configure in idea.gradle
sourceCompatibility = '11'
targetCompatibility = '11'
repositories {
maven {
url stardogRepo
}
mavenLocal()
mavenCentral()
maven {
url 'https://jitpack.io'
}
}
tasks.withType(Test) {
systemProperty 'stardog.home', rootProject.projectDir
systemProperty 'java.library.path', project.stardogLib
}
}
subprojects {
apply plugin: "java"
// common deps
dependencies {
implementation("com.google.guava:guava:$guavaVersion") {
version {
require "$guavaVersion"
}
exclude group: "com.google.code.findbugs"
exclude group: "com.google.guava", module: "failureaccess"
}
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "org.slf4j:slf4j-jdk14:$slf4jVersion"
testImplementation "junit:junit:$junitVersion"
}
sourceSets {
all {
// work around a Gradle-metadata bug introduced in Guava v32.1.0
configurations.all {
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
}
}
main {
java {
srcDir 'main/src'
}
resources {
srcDir 'main/resources'
}
}
test {
java {
srcDir 'test/src'
}
resources {
srcDir 'test/resources'
}
}
}
}