-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (48 loc) · 1.48 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
plugins {
id 'java-library'
}
ext {
majorVersion = 5
minorVersion = 0
dateVersion = new Date().format('yyMMdd')
specVersion = "${majorVersion}.${minorVersion}"
jarVersion = "${majorVersion}.${minorVersion}.${dateVersion}"
vendor = 'Rafał Kaleta'
mainPackage = 'yadic'
}
version = project.jarVersion
archivesBaseName = project.mainPackage
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.+'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.+'
testImplementation 'org.junit.platform:junit-platform-commons:1.+'
testImplementation 'org.junit.platform:junit-platform-engine:1.+'
testImplementation 'org.junit.platform:junit-platform-launcher:1.+'
testImplementation 'org.assertj:assertj-core:3.+'
}
tasks.jar {
manifest {
attributes(
'Built-By': project.vendor,
'Specification-Title': 'Yet Another Dependency Injection Container',
'Specification-Version': project.specVersion,
'Specification-Vendor': project.vendor,
'Implementation-Title': project.mainPackage,
'Implementation-Version': project.jarVersion,
'Implementation-Vendor': project.vendor
)
}
}
tasks.test {
useJUnitPlatform()
}
tasks.register('rebuild') {
group 'build'
description 'Deletes the build directory, assembles and tests this project.'
dependsOn 'clean', 'build'
tasks.named('build').get().mustRunAfter('clean')
}
javadoc.options.addStringOption('Xdoclint:none')