|
1 | 1 | // root-level build.gradle
|
2 | 2 | plugins {
|
3 |
| - id("org.jlleitschuh.gradle.ktlint") version "12.1.1" |
| 3 | + id 'org.jlleitschuh.gradle.ktlint' version "12.1.1" |
4 | 4 | id 'org.jetbrains.kotlin.jvm' version '1.9.10'
|
5 | 5 | id 'com.github.autostyle' version '3.2'
|
6 | 6 | id 'application'
|
7 | 7 | }
|
8 | 8 |
|
9 |
| -base { |
10 |
| - group 'com.lunatech' |
11 |
| - version '0.0.1' |
12 |
| - mainClassName = "io.ktor.server.netty.EngineMain" |
| 9 | +group = "com.lunatech" // A company name, for example, `org.jetbrains` |
| 10 | +version = "1.0.0" // Version to assign to the built artifact |
| 11 | + |
| 12 | +application { |
| 13 | + mainClass = "io.ktor.server.netty.EngineMain" |
13 | 14 | }
|
14 | 15 |
|
15 | 16 | sourceSets {
|
@@ -60,23 +61,25 @@ dependencies {
|
60 | 61 | testImplementation "io.ktor:ktor-server-tests-jvm:2.3.7"
|
61 | 62 | }
|
62 | 63 |
|
63 |
| -task buildAll(type: Exec, dependsOn: ['buildFrontApp']) { |
| 64 | +tasks.register('buildAll', Exec) { |
| 65 | + dependsOn['buildFrontApp'] |
64 | 66 | group "Build All App"
|
65 | 67 | description 'Build All App'
|
66 | 68 | executable "./gradlew"
|
67 | 69 | args "--no-daemon", "assemble"
|
68 | 70 | }
|
69 | 71 |
|
70 | 72 | //Build React App
|
71 |
| -task buildFrontApp(type: Exec, dependsOn: ['installReactApp']) { |
| 73 | +tasks.register('buildFrontApp', Exec) { |
| 74 | + dependsOn['installReactApp'] |
72 | 75 | group "Front App"
|
73 | 76 | description 'Build React App'
|
74 | 77 | executable "npm"
|
75 | 78 | args "run-script", "build", "--prefix", "./frontend/"
|
76 | 79 | }
|
77 | 80 |
|
78 | 81 | //Install package npm for front app (React)
|
79 |
| -task installReactApp(type: Exec) { |
| 82 | +tasks.register('installReactApp', Exec) { |
80 | 83 | group "Front App"
|
81 | 84 | description 'Build React App'
|
82 | 85 | executable "npm"
|
|
0 commit comments