-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
64 lines (54 loc) · 1.57 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
project.ext.set("foxweaveVersion", '0.2-SNAPSHOT')
project.ext.set("servletAPIVersion", '2.5')
project.ext.set("slf4jVersion", '1.7.5')
project.ext.set("jsonlibVersion", '20090211')
project.ext.set("httpclientVersion", '3.1')
project.ext.set("guiceVersion", '3.0')
project.ext.set("jerseyVersion", '1.16')
project.ext.set("h2databaseVersion", '1.3.172')
project.ext.set("junitVersion", '4.8.1')
apply plugin: 'eclipse'
apply plugin: 'idea'
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
project.buildDir = 'target';
project.ext.set('groupId', 'com.foxweave.sample');
project.ext.set('artifactId', project.archivesBaseName);
project.version = '1.0';
repositories {
mavenLocal()
if (project.foxweaveVersion.endsWith("-SNAPSHOT")) {
maven {
url "http://maven.foxweave.com/snapshots/"
}
} else {
maven {
url "http://maven.foxweave.com/releases/"
}
}
mavenCentral()
}
configurations {
provided {
description = "provided 'scope'"
transitive = true
}
compile.transitive = true
}
sourceSets.main.compileClasspath += configurations.provided
sourceCompatibility = 1.6
eclipse {
project {
name = archivesBaseName
}
}
idea {
// http://gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html
module {
name = archivesBaseName
scopes.PROVIDED.plus += configurations.provided
}
}
}