This repository has been archived by the owner on Jul 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
88 lines (71 loc) · 1.56 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
// Apply Gradle plugins
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'net.minecrell.licenser' version '0.1.5'
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
defaultTasks 'clean', 'licenseFormat', 'build'
// Project information
group = 'net.minecrell'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
// Project repositories
repositories {
mavenCentral()
maven {
name = 'minecrell'
url = 'http://repo.minecrell.net/snapshots'
}
}
// Project dependencies
dependencies {
compile 'com.google.guava:guava:19.0'
compile 'net.minecrell:fernflower:2.1-SNAPSHOT'
compile 'org.fxmisc.richtext:richtextfx:0.6.10'
testCompile 'junit:junit:4.12'
}
// Read source files using UTF-8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
}
processResources {
from 'LICENSE'
}
jar {
classifier = 'base'
manifest {
attributes(
'Implementation-Title': project.projectName,
'Implementation-Version': version,
'Main-Class': 'net.minecrell.dandelion.Dandelion'
)
}
}
shadowJar {
classifier = ''
}
// License header formatting
license {
header = file('LICENSE')
include '**/*.java'
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives shadowJar
archives sourceJar
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}