forked from stardog-union/stardog-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 1.25 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
apply plugin: 'java'
task wrapper(type: Wrapper) {
gradleVersion = '4.10'
}
ext {
stardogVersion = project.hasProperty("stardogVersion") ? project.getProperty("stardogVersion") : '7.1.2'
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") : "."
}
allprojects {
apply plugin: 'idea'
group = 'com.complexible.stardog'
version = projectVersion
// also configure in idea.gradle
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
maven {
url stardogRepo
}
mavenLocal()
mavenCentral()
}
tasks.withType(Test) {
systemProperty 'stardog.home', rootProject.projectDir
systemProperty 'java.library.path', project.stardogLib
}
}
subprojects {
apply plugin: "java"
// common deps
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'org.slf4j:slf4j-jdk14:1.7.12'
testCompile 'junit:junit:4.12'
}
sourceSets {
main {
java {
srcDir 'main/src'
}
resources {
srcDir 'main/resources'
}
}
test {
java {
srcDir 'test/src'
}
resources {
srcDir 'test/resources'
}
}
}
}