|
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 |
| -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" |
| 9 | +base { |
| 10 | + group 'com.lunatech' |
| 11 | + version '0.0.1' |
| 12 | + mainClassName = "io.ktor.server.netty.EngineMain" |
14 | 13 | }
|
15 | 14 |
|
16 | 15 | sourceSets {
|
@@ -61,25 +60,23 @@ dependencies {
|
61 | 60 | testImplementation "io.ktor:ktor-server-tests-jvm:2.3.7"
|
62 | 61 | }
|
63 | 62 |
|
64 |
| -tasks.register('buildAll', Exec) { |
65 |
| - dependsOn['buildFrontApp'] |
| 63 | +task buildAll(type: Exec, dependsOn: ['buildFrontApp']) { |
66 | 64 | group "Build All App"
|
67 | 65 | description 'Build All App'
|
68 | 66 | executable "./gradlew"
|
69 | 67 | args "--no-daemon", "assemble"
|
70 | 68 | }
|
71 | 69 |
|
72 | 70 | //Build React App
|
73 |
| -tasks.register('buildFrontApp', Exec) { |
74 |
| - dependsOn['installReactApp'] |
| 71 | +task buildFrontApp(type: Exec, dependsOn: ['installReactApp']) { |
75 | 72 | group "Front App"
|
76 | 73 | description 'Build React App'
|
77 | 74 | executable "npm"
|
78 | 75 | args "run-script", "build", "--prefix", "./frontend/"
|
79 | 76 | }
|
80 | 77 |
|
81 | 78 | //Install package npm for front app (React)
|
82 |
| -tasks.register('installReactApp', Exec) { |
| 79 | +task installReactApp(type: Exec) { |
83 | 80 | group "Front App"
|
84 | 81 | description 'Build React App'
|
85 | 82 | executable "npm"
|
|
0 commit comments