Skip to content

Commit

Permalink
Cleanup misk web-actions build
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0f580e51a08812953d19382c5de93fd33c15f334
  • Loading branch information
aerb authored and svc-squareup-copybara committed Jan 8, 2025
1 parent d78df69 commit fdd3f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions misk-admin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ if (isCi || System.getProperty("misk.admin.buildMiskWeb") == "true") {

tasks.register<Copy>("buildAndCopyWebActions") {
from({
project(":misk-admin:web-actions").tasks.named("build").get().outputs.files
project(":misk-admin:web-actions").tasks.named("buildWebActionsTab").get().outputs.files
})
into(project.layout.buildDirectory.dir("resources/main/web/_tab/web-actions-v4"))
dependsOn(":misk-admin:web-actions:build")
dependsOn(":misk-admin:web-actions:buildWebActionsTab")
}

sourceSets {
Expand Down
14 changes: 3 additions & 11 deletions misk-admin/web-actions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import java.io.InputStream

plugins {

}

dependencies {

}

tasks.register<MiskConsoleBuildTask>("build") {
tasks.register<WebActionsTabBuildTask>("buildWebActionsTab") {
group = "build"
description = "Run webpack build for misk console"
description = "Run webpack build for misk web actions"

miskConsoleRootDir.set(projectDir)

Expand All @@ -31,7 +23,7 @@ tasks.register<MiskConsoleBuildTask>("build") {
}

@CacheableTask
abstract class MiskConsoleBuildTask : DefaultTask() {
abstract class WebActionsTabBuildTask : DefaultTask() {

@get:Internal
abstract val miskConsoleRootDir: RegularFileProperty
Expand Down

0 comments on commit fdd3f9e

Please sign in to comment.