-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.gradle
81 lines (66 loc) · 1.7 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
plugins {
id("com.github.johnrengelman.shadow") version "6.1.0"
id("io.micronaut.application") version "1.3.4"
id 'checkstyle'
}
version = "0.1"
group = "ru.mirea"
repositories {
mavenCentral()
}
micronaut {
runtime("undertow")
testRuntime("junit5")
processing {
incremental(true)
annotations("ru.mirea.*")
}
}
dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.18'
compileOnly 'org.projectlombok:lombok:1.18.18'
implementation("io.micronaut:micronaut-runtime")
implementation("io.micronaut:micronaut-validation")
implementation("io.micronaut:micronaut-http-client")
implementation("javax.annotation:javax.annotation-api")
implementation("org.apache.logging.log4j:log4j-core:2.12.1")
runtimeOnly("org.apache.logging.log4j:log4j-api:2.12.1")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.12.1")
}
application {
mainClass.set("ru.mirea.Application")
}
java {
sourceCompatibility = JavaVersion.toVersion("11")
targetCompatibility = JavaVersion.toVersion("11")
}
compileJava {
options.warnings = true
options.deprecation = true
options.compilerArgs += ["-Xlint:all"]
options.encoding = 'UTF-8'
}
compileTestJava {
options.warnings = true
options.deprecation = true
options.compilerArgs += ["-Xlint:all"]
options.encoding = 'UTF-8'
}
javadoc {
options.encoding = 'UTF-8'
}
shadowJar {
archivesBaseName = "${project.name}"
libsDirName = "${project.name}"
classifier('')
}
checkstyle {
toolVersion '7.8.1'
configFile file("config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}