-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
114 lines (99 loc) · 4.28 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.micronaut.application") version "4.2.1"
id("io.micronaut.aot") version "4.2.1"
id "org.flywaydb.flyway" version "9.8.1"
id 'checkstyle'
}
version = "0.1"
group = "com.lulugyda"
repositories {
mavenCentral()
}
project.checkstyle {
toolVersion '8.40'
configFile project.file("${project.rootDir}/config/checkstyle/checkstyle.xml")
}
dependencies {
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("io.micronaut:micronaut-http-validation")
annotationProcessor("io.micronaut.serde:micronaut-serde-processor")
annotationProcessor("io.micronaut.openapi:micronaut-openapi:4.5.2")
implementation("io.micronaut.rxjava3:micronaut-rxjava3")
implementation("io.micronaut.rxjava3:micronaut-rxjava3-http-client")
implementation "io.swagger.core.v3:swagger-annotations:2.2.2"
implementation("io.micronaut:micronaut-http-client")
implementation("io.micronaut.serde:micronaut-serde-jackson")
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
implementation("io.micronaut.flyway:micronaut-flyway")
implementation("org.flywaydb:flyway-database-postgresql:10.0.1")
implementation("io.micronaut.data:micronaut-data-jdbc")
implementation 'org.postgresql:postgresql:x.y.z'
implementation 'javax.persistence:javax.persistence-api:2.2'
annotationProcessor "org.mapstruct:mapstruct-processor:1.5.3.Final"
compileOnly "org.mapstruct:mapstruct:1.5.3.Final"
compileOnly("org.projectlombok:lombok")
runtimeOnly("ch.qos.logback:logback-classic")
runtimeOnly("org.yaml:snakeyaml")
runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("io.micronaut.sql:micronaut-jdbc-tomcat")
testImplementation 'org.mockito:mockito-inline:3.12.4'
//mail
implementation 'javax.mail:javax.mail-api:1.6.2'
implementation 'com.sun.mail:javax.mail:1.6.2'
implementation 'com.sun.mail:smtp:1.6.2'
implementation("io.micronaut.redis:micronaut-redis-lettuce")
annotationProcessor("io.micronaut:micronaut-http-validation")
annotationProcessor("io.micronaut.serde:micronaut-serde-processor")
annotationProcessor("io.micronaut.validation:micronaut-validation-processor")
implementation("io.micronaut.serde:micronaut-serde-jackson")
implementation("io.micronaut.validation:micronaut-validation")
implementation("jakarta.validation:jakarta.validation-api")
implementation("io.micronaut.data:micronaut-data-hibernate-reactive")
implementation("io.vertx:vertx-mysql-client")
compileOnly("io.micronaut:micronaut-http-client")
runtimeOnly("ch.qos.logback:logback-classic")
testImplementation("io.micronaut:micronaut-http-client")
testImplementation 'com.h2database:h2'
compileOnly "io.micronaut.security:micronaut-security-annotations"
implementation "io.micronaut.security:micronaut-security-jwt"
implementation 'org.springframework:spring-jcl:5.3.25'
implementation "org.springframework.security:spring-security-crypto:5.7.5"
runtimeOnly("io.netty:netty-resolver-dns-native-macos:XXX:osx-x86_64")
implementation 'commons-net:commons-net:3.9.0'
implementation "com.twilio.sdk:twilio:10.1.3"
}
application {
mainClass.set("com.lulugyda.Application")
}
java {
sourceCompatibility = JavaVersion.toVersion("17")
targetCompatibility = JavaVersion.toVersion("17")
}
graalvmNative.toolchainDetection = false
micronaut {
runtime("netty")
testRuntime("junit5")
processing {
incremental(true)
annotations("com.lulugyda.*")
}
aot {
// Please review carefully the optimizations enabled below
// Check https://micronaut-projects.github.io/micronaut-aot/latest/guide/ for more details
optimizeServiceLoading = false
convertYamlToJava = false
precomputeOperations = true
cacheEnvironment = true
optimizeClassLoading = true
deduceEnvironment = true
optimizeNetty = true
}
}
project.tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs.addAll(['--release', '17'])
options.compilerArgs.add('-parameters')
options.fork = true
options.forkOptions.jvmArgs << '-Dmicronaut.openapi.views.spec=rapidoc.enabled=true,swagger-ui.enabled=true,swagger-ui.theme=flattop'
}