-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (70 loc) · 2.39 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
plugins {
id 'java'
id 'io.freefair.git-version' version '5.3.0'
id 'io.freefair.lombok' version '5.3.0'
id 'io.freefair.javadoc-utf-8' version '5.3.0'
id 'io.freefair.javadoc-links' version '5.3.0'
id 'checkstyle'
id 'jacoco'
}
group 'net.getnova.backend.module'
version version.toString().startsWith('v') ? version.toString().substring(1) : version
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven {
url "https://dl.bintray.com/getnova/maven"
}
jcenter()
}
dependencies {
implementation 'net.getnova.backend:nova-logging:1.0.6'
implementation 'net.getnova.backend:nova-service:1.0.6'
implementation 'net.getnova.backend:nova-injection:1.0.6'
implementation 'net.getnova.backend:nova-config:1.0.6'
implementation 'net.getnova.backend:nova-api:1.0.6'
implementation 'net.getnova.backend:nova-sql:1.0.6'
implementation 'net.getnova.backend:nova-json:1.0.6'
runtimeOnly 'net.getnova.backend:nova-bootstrap:1.0.6'
}
jar {
manifest {
attributes([
'Specification-Title' : project.name,
'Specification-Vendor' : 'Nova Project (https://github.com/getnova)',
'Specification-Version' : project.version,
'Implementation-Title' : project.name,
'Implementation-Version' : project.version,
'Implementation-Vendor' : 'Nova Project (https://github.com/getnova)',
'Implementation-Timestamp': new Date().format('yyyy-MM-dd\'T\'HH:mm:ssZ'),
'Module-Name' : project.name,
'Module-Version' : project.version,
'Module-Services' : 'net.getnova.backend.weather.WeatherDatabase'
])
}
from {
configurations.compile.collect { it.isDirectory() || it.getName().toLowerCase().endsWith('.pom') ? it : zipTree(it) }
}
}
lombok {
config.put('lombok.equalsandhashcode.callsuper', 'CALL')
}
def checkstyleDir = "${rootDir}/config/checkstyle"
tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
}
}
checkstyleMain {
configFile = file("${checkstyleDir}/main.xml")
}
checkstyleTest {
configFile = file("${checkstyleDir}/test.xml")
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}