fix webUI not being copied

This commit is contained in:
Aria Moradi 2021-05-20 19:51:32 +04:30
parent 4147f2e368
commit 733b017936
2 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@ repositories {
dependencies {
// okhttp
val okhttpVersion = "4.9.1" // version is locked by extensions
val okhttpVersion = "4.9.1" // version is locked by Tachiyomi extensions
implementation("com.squareup.okhttp3:okhttp:$okhttpVersion")
implementation("com.squareup.okhttp3:logging-interceptor:$okhttpVersion")
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps:$okhttpVersion")

View File

@ -2,13 +2,14 @@ plugins {
id("com.github.node-gradle.node") version "3.0.1"
}
val nodeRoot = "${project.projectDir}/react"
node {
nodeProjectDir.set(file("${project.projectDir}/react/"))
nodeProjectDir.set(file(nodeRoot))
}
tasks {
register<Copy>("copyBuild") {
from(file("${node.nodeProjectDir}/build"))
from(file("$nodeRoot/build"))
into(file("$rootDir/server/src/main/resources/react"))
dependsOn("yarn_build")