-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
127 lines (106 loc) · 3.86 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
buildscript {
ext {
kotlin_version = '1.9.21'
vertx_version = '4.5.0'
arrow_version = "0.8.1"
}
repositories {
mavenCentral()
}
}
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
id "application"
id "java"
id "org.jetbrains.kotlin.jvm" version "${kotlin_version}"
id "org.jetbrains.kotlin.kapt" version "${kotlin_version}"
}
apply plugin: 'kotlin'
def mainVerticleName = 'fr.maif.automate.MainVerticle'
def launcherClassName = 'io.vertx.core.Launcher'
application {
mainClass.set(launcherClassName)
}
allprojects {
repositories {
mavenCentral()
}
}
kotlin {
jvmToolchain (21)
}
dependencies {
implementation "io.vertx:vertx-core:$vertx_version"
implementation "io.vertx:vertx-web:$vertx_version"
implementation "io.vertx:vertx-web-client:$vertx_version"
implementation "io.vertx:vertx-rx-java2:$vertx_version"
implementation "io.vertx:vertx-lang-kotlin:$vertx_version"
implementation "io.vertx:vertx-pg-client:$vertx_version"
implementation "io.vertx:vertx-jdbc-client:$vertx_version"
implementation "io.vertx:vertx-sql-client:$vertx_version"
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3'
implementation 'org.postgresql:postgresql:42.3.6'
implementation 'de.svenkubiak:jBCrypt:0.4.3'
implementation 'com.auth0:java-jwt:3.19.2'
implementation 'org.liquibase:liquibase-core:4.20.0'
implementation 'com.typesafe:config:1.4.2'
implementation 'org.shredzone.acme4j:acme4j-client:2.13'
implementation 'org.shredzone.acme4j:acme4j-utils:2.13'
implementation 'ch.qos.logback:logback-classic:1.2.11'
implementation "io.arrow-kt:arrow-core:$arrow_version"
implementation "io.arrow-kt:arrow-syntax:$arrow_version"
implementation "io.arrow-kt:arrow-typeclasses:$arrow_version"
implementation "io.arrow-kt:arrow-data:$arrow_version"
implementation "io.arrow-kt:arrow-instances-core:$arrow_version"
implementation "io.arrow-kt:arrow-instances-data:$arrow_version"
implementation "io.arrow-kt:arrow-mtl:$arrow_version"
implementation "io.arrow-kt:arrow-effects:$arrow_version"
implementation "io.arrow-kt:arrow-effects-instances:$arrow_version"
implementation "io.arrow-kt:arrow-effects-rx2:$arrow_version"
implementation "io.arrow-kt:arrow-effects-rx2-instances:$arrow_version"
implementation "io.arrow-kt:arrow-effects-kotlinx-coroutines:$arrow_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib"
testImplementation 'io.kotlintest:kotlintest-runner-junit5:3.4.2'
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
}
// Redeploy watcher.
run {
if ((project.hasProperty('env') && project['env'] == 'dev') ||
(System.getenv('ENV') == 'dev')) {
args = ['run', mainVerticleName,
"--launcher-class=$launcherClassName",
"--redeploy=src/**/*.*",
"--on-redeploy=./gradlew classes"]
} else {
args = ['run', mainVerticleName,
"--launcher-class=$launcherClassName"]
}
systemProperties = System.properties
}
// Naming and packaging settings for the "shadow jar".
shadowJar {
archiveBaseName = "letsautomate"
archiveClassifier = 'shadow'
manifest {
attributes 'Main-Verticle': mainVerticleName
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
//task wrapper(type: Wrapper) {
// gradleVersion = '4.2.1'
//}
// Heroku relies on the 'stage' task to deploy.
task stage {
dependsOn shadowJar
}
test {
useJUnitPlatform()
testLogging {
outputs.upToDateWhen { false }
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}