-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
107 lines (90 loc) · 2.94 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
subprojects {
apply plugin: 'java'
group = 'fi.vincit.jmobster'
version = '0.4.0-alpha'
archivesBaseName = 'jmobster-' + archivesBaseName
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
jar {
manifest {
attributes 'Implementation-Title': archivesBaseName,
'Implementation-Version': version
}
}
dependencies {
// Needed for JSR-303 annotations
compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.3.0.Final'
runtime group: 'org.hibernate', name: 'hibernate-validator-annotation-processor', version: '4.3.0.Final'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.6.5'
// Only for logging in test programs
runtime group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.6'
runtime group: 'ch.qos.logback', name: 'logback-core', version: '1.0.6'
// Test dependencies
testCompile group: 'junit', name: 'junit', version: '4.10'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.0'
}
}
project(':core') {
configurations {
testutil
}
task testutilJar(type: Jar) {
baseName = 'testutil'
dependsOn classes
from sourceSets.test.output
include('fi/vincit/jmobster/**')
}
artifacts {
testutil testutilJar
}
}
// Languages
project(':languages:javascript') {
dependencies {
compile project(':core')
testCompile project(path: ':core', configuration: 'testutil')
}
}
// Frameworks
project(':frameworks:backbone:backbone-core') {
dependencies {
compile project(':core')
compile project(':languages:javascript')
testCompile project(path: ':core', configuration: 'testutil')
testCompile project(':validators:jsr303')
testCompile project(':validators:hibernate')
}
}
project(':frameworks:backbone:backbone-hibernate') {
dependencies {
compile project(':frameworks:backbone:backbone-core')
compile project(':validators:hibernate')
testCompile project(path: ':core', configuration: 'testutil')
}
}
project(':frameworks:backbone:backbone-jsr303') {
dependencies {
compile project(':frameworks:backbone:backbone-core')
compile project(':validators:jsr303')
testCompile project(path: ':core', configuration: 'testutil')
}
}
// Testing
project(':testing') {
jar {
manifest {
attributes 'Implementation-Title': 'JMobster Testing',
'Implementation-Version': version,
'Main-Class': 'fi.vincit.jmobster.TestMain'
}
}
dependencies {
compile project(':core')
compile project(':languages:javascript')
compile project(':validators:jsr303')
compile project(':frameworks:backbone:backbone-core')
compile project(':frameworks:backbone:backbone-jsr303')
}
}