This repository was archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (54 loc) · 1.39 KB
/
build.gradle
File metadata and controls
64 lines (54 loc) · 1.39 KB
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
// Apply Gradle plugins
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'com.github.hierynomus.license' version '0.11.0'
}
defaultTasks 'clean', 'licenseFormat', 'build'
// Project information
group = 'blue.lapis'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = 1.6
targetCompatibility = 1.6
// Read source files using UTF-8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.deprecation = true
}
// Project repositories
repositories {
mavenCentral()
maven {
name 'sonatype-nexus'
url 'https://oss.sonatype.org/content/groups/public'
}
maven { url 'http://repo.spongepowered.org/maven' }
}
// Project dependencies
dependencies {
compile 'org.spongepowered:spongeapi:1.1-SNAPSHOT'
testCompile 'junit:junit:4.11'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'org.mockito:mockito-core:1.10.8'
}
javadoc {
// Don't create Javadocs for implementation packages
exclude '**/impl'
options.linksOffline 'http://docs.oracle.com/javase/8/docs/api/',
'http://docs.oracle.com/javase/8/docs/api/'
options.noTimestamp = true
}
// License header formatting
license {
header file('LICENSE')
sourceSets = project.sourceSets
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}