-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (77 loc) · 2.26 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.junit.platform.console.options.Details
import static org.gradle.api.JavaVersion.VERSION_1_9
buildscript {
ext {
junitPlatformVersion = '1.0.2'
tasktTreeVersion = '1.3'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'org.junit.platform', name: 'junit-platform-gradle-plugin', version: junitPlatformVersion
classpath group: 'gradle.plugin.com.dorongold.plugins', name: 'task-tree', version: tasktTreeVersion
}
}
ext {
vendor = 'Dale H. Emery'
apiGuardianVersion = '1.0.0'
googleTruthVersion = '0.37'
junitJupiterVersion = '5.0.2'
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'com.dorongold.task-tree'
apply plugin: 'org.junit.platform.gradle.plugin'
group = 'com.dhemery'
description = 'Automated gibberish'
version = '1.0.0'
mainClassName = 'com.dhemery.gibberizer.application.GibberizerApplication'
targetCompatibility = sourceCompatibility = VERSION_1_9
repositories {
jcenter()
}
dependencies {
testCompileOnly group: 'org.apiguardian', name: 'apiguardian-api', version: apiGuardianVersion
testCompile group: 'com.google.truth', name: 'truth', version: googleTruthVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitJupiterVersion
testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
jar {
manifest {
attributes(
'Implementation-Title': description,
'Implementation-Version': version,
'Implementation-Vendor': vendor,
'Main-Class': mainClassName
)
}
}
javadoc {
options.links << 'https://docs.oracle.com/javase/9/docs/api/'
}
junitPlatform {
details = Details.TREE
}
test {
testLogging {
exceptionFormat = TestExceptionFormat.FULL
}
}
artifacts {
archives sourcesJar, javadocJar
}
defaultTasks clean.name, build.name