Skip to content

Commit

Permalink
Merge pull request #182 from ktorio/bjhham/chat-js-output-fix
Browse files Browse the repository at this point in the history
Updated run target so chat.js is built before execution
  • Loading branch information
bjhham authored Nov 17, 2023
2 parents 1137852 + 235d932 commit eab1c04
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 eab1c04

Please sign in to comment.