-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
112 lines (89 loc) · 2.96 KB
/
build.gradle.kts
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 {
java
kotlin("jvm") version "1.4.32"
kotlin("kapt") version "1.4.32"
id("io.vertx.vertx-plugin") version "1.2.0"
}
group = "com.parnote"
version = "1.0"
val vertxVersionVariable = "3.9.6"
repositories {
jcenter()
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/iovertx-3720/")
maven("https://jitpack.io")
}
vertx {
mainVerticle = "com.parnote.Main"
vertxVersion = vertxVersionVariable
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation(group = "junit", name = "junit", version = "4.12")
testImplementation("io.vertx:vertx-unit:$vertxVersionVariable")
implementation("io.vertx:vertx-web:$vertxVersionVariable")
implementation("io.vertx:vertx-mysql-postgresql-client:$vertxVersionVariable")
implementation("io.vertx:vertx-sql-common:$vertxVersionVariable")
implementation("io.vertx:vertx-mail-client:$vertxVersionVariable")
implementation("io.vertx:vertx-lang-kotlin:$vertxVersionVariable")
implementation("io.vertx:vertx-config:$vertxVersionVariable")
implementation("io.vertx:vertx-lang-kotlin-coroutines:$vertxVersionVariable")
implementation("io.vertx:vertx-web-templ-handlebars:$vertxVersionVariable")
implementation("com.beust:klaxon:5.4")
implementation("org.slf4j:slf4j-simple:1.7.30")
// dagger 2x
implementation("com.google.dagger:dagger:2.34")
kapt("com.google.dagger:dagger-compiler:2.34")
// recaptcha v2 1.0.4
implementation("com.github.triologygmbh:reCAPTCHA-V2-java:1.0.4")
// https://mvnrepository.com/artifact/commons-codec/commons-codec
implementation(group = "commons-codec", name = "commons-codec", version = "1.15")
implementation("io.jsonwebtoken:jjwt-api:0.11.2")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.2")
// Uncomment the next line if you want to use RSASSA-PSS (PS256, PS384, PS512) algorithms:
//runtimeOnly("org.bouncycastle:bcprov-jdk15on:1.60")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.2")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
register("copyJar") {
doLast {
copy {
from(shadowJar.get().archiveFile.get().asFile.absolutePath)
into("./")
}
}
dependsOn(shadowJar)
}
vertxDebug {
environment("EnvironmentType", "DEVELOPMENT")
}
vertxRun {
environment("EnvironmentType", "DEVELOPMENT")
}
build {
dependsOn("copyJar")
}
register("buildDev") {
dependsOn("build")
}
shadowJar {
manifest {
if (project.gradle.startParameter.taskNames.contains("buildDev"))
attributes(mapOf("MODE" to "DEVELOPMENT"))
}
}
jar {
include("src/main/resources")
}
register("stage") {
}
}