-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (73 loc) · 2.92 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
// root-level build.gradle
plugins {
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
id 'org.jetbrains.kotlin.jvm' version '1.9.10'
id 'com.github.autostyle' version '4.0'
id 'application'
}
base {
group 'com.lunatech'
version '0.0.1'
mainClassName = "io.ktor.server.netty.EngineMain"
}
sourceSets {
main.kotlin.srcDirs = main.java.srcDirs = ['src/main']
test.kotlin.srcDirs = test.java.srcDirs = ['src/test']
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "io.github.microutils:kotlin-logging-jvm:3.0.5"
implementation "ch.qos.logback:logback-classic:1.4.7"
implementation "com.newrelic.logging:logback:3.1.0"
implementation "org.apache.logging.log4j:log4j-core:2.23.1"
implementation "com.google.api-client:google-api-client:2.7.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2"
implementation "io.github.config4k:config4k:0.7.0"
implementation "org.flywaydb:flyway-core:10.18.0"
implementation "org.flywaydb:flyway-database-postgresql:10.18.0"
implementation "org.ktorm:ktorm-core:4.1.1"
implementation "com.zaxxer:HikariCP:5.1.0"
implementation "org.postgresql:postgresql:42.7.4"
implementation "org.quartz-scheduler:quartz:2.3.2"
implementation "io.ktor:ktor-server-status-pages:2.3.12"
implementation "io.ktor:ktor-server-default-headers:2.3.9"
implementation "io.ktor:ktor-server-cors:2.3.10"
implementation "io.ktor:ktor-server-content-negotiation-jvm:2.3.12"
implementation "io.ktor:ktor-server-netty-jvm:2.3.12"
implementation "io.ktor:ktor-server-core-jvm:2.3.12"
implementation "io.ktor:ktor-server-host-common-jvm:2.3.12"
implementation "io.ktor:ktor-server-auth:2.3.12"
implementation "io.ktor:ktor-server-auth-jwt:2.3.11"
implementation "io.ktor:ktor-server-sessions-jvm:2.3.5"
implementation "io.ktor:ktor-serialization-jackson:2.3.12"
implementation "io.ktor:ktor-client-apache-jvm:2.3.12"
implementation "org.apache.poi:poi-ooxml:5.3.0"
implementation "io.ktor:ktor-client-core-jvm:2.3.12"
implementation "io.ktor:ktor-client-core-jvm:2.3.12"
implementation "io.ktor:ktor-client-logging-jvm:2.3.12"
implementation "org.simplejavamail:simple-java-mail:8.11.1"
testImplementation "io.ktor:ktor-server-tests-jvm:2.3.12"
}
task buildAll(type: Exec, dependsOn: ['buildFrontApp']) {
group "Build All App"
description 'Build All App'
executable "./gradlew"
args "--no-daemon", "assemble"
}
//Build React App
task buildFrontApp(type: Exec, dependsOn: ['installReactApp']) {
group "Front App"
description 'Build React App'
executable "npm"
args "run-script", "build", "--prefix", "./frontend/"
}
//Install package npm for front app (React)
task installReactApp(type: Exec) {
group "Front App"
description 'Build React App'
executable "npm"
args "install", "--prefix", "./frontend/"
}