Skip to content

Commit

Permalink
Updated run target so chat.js is built before execution
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhham committed Nov 16, 2023
1 parent 1137852 commit 235d932
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions chat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ kotlin {
distribution {
directory = file("$projectDir/src/backendMain/resources/web")
}
binaries.executable()
}
}
jvm('backend') {
compilations.main {
tasks.named(processResourcesTaskName) {
dependsOn(frontendProcessResources)
}
}
}
jvm('backend')
}

sourceSets.each {
Expand Down Expand Up @@ -74,7 +69,8 @@ repositories {
}

tasks.register("run", JavaExec) {
dependsOn(backendJar)
dependsOn(frontendBrowserDistribution)
dependsOn(backendMainClasses)
mainClass.set("io.ktor.samples.chat.backend.ChatApplicationKt")
classpath(configurations.backendRuntimeClasspath, backendJar)
args = []
Expand Down

0 comments on commit 235d932

Please sign in to comment.