-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
121 lines (88 loc) · 2.04 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath(group: 'com.sahlbach.gradle', name: 'gradle-jetty-eclipse-plugin', version: '1.9.+')
classpath 'com.github.rholder:gradle-one-jar:1.0.3'
}
}
defaultTasks 'createDeploy'
apply plugin: 'java'
subprojects {
defaultTasks 'build'
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '0.60-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
ext.luceneVersion = '7.0.0'
ext.mongoJavaVersion = '3.4.1'
group = 'org.lumongo'
repositories {
mavenCentral()
flatDir name: 'directoryRepository', dirs: rootProject.file('notInMaven')
//maven {
//url "https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-6.6.0-RC1-rev4d055f00bba9a745737e4b6c3f9dff06dd35aa2e/lucene/maven/"
//}
}
dependencies {
testCompile 'org.testng:testng:6.8.21'
}
test {
useTestNG()
systemProperty 'mongoServer', 'localhost'
systemProperty 'mongoPort', '27017'
//tweaking memory settings for the forked vm that runs tests
jvmArgs '-Xmx1500m'
beforeTest { descriptor ->
logger.lifecycle("\n\nRunning test: " + descriptor)
}
afterTest { descriptor ->
logger.lifecycle("\nFinished test: " + descriptor + "\n\n")
}
onOutput { descriptor, event ->
logger.lifecycle(event.message.trim())
}
workingDir = 'build/'
}
dependencies {
testCompile 'junit:junit:[4.10,)'
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava {
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
javadoc {
options.addStringOption("sourcepath", "src/main/java")
exclude '**/schema/**'
}
sourceSets {
main {
resources {
srcDir 'src/main/java'
}
}
test {
resources {
srcDir 'src/test/java'
}
}
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
jar {
dependsOn 'sourceJar'
}
configurations {
source
}
artifacts {
source sourceJar
}
}