Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Revert "Fix: Copy the API Viewer resources into the built plugin"
Browse files Browse the repository at this point in the history
This reverts commit 6b3e9f1.
  • Loading branch information
sghill committed Oct 27, 2021
1 parent a5d78b1 commit 285cbf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ generated
.bundle

node_modules

!job-dsl-plugin/src/main/webapp/api-viewer/config.json
job-dsl-plugin/src/main/webapp/api-viewer
21 changes: 8 additions & 13 deletions job-dsl-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ buildscript {

plugins {
id 'org.jenkins-ci.jpi' version '0.43.0'
id 'war'
}

java {
Expand Down Expand Up @@ -90,22 +91,16 @@ test {
systemProperty 'jenkins.test.noSpaceInTmpDirs', 'true'
}

task copyApiViewer {
copy {
from(project(':job-dsl-api-viewer').projectDir)
include 'index.html'
into 'src/main/webapp/api-viewer'
}
copy {
from(project(':job-dsl-api-viewer').buildDir)
include 'dist/**'
into 'src/main/webapp/api-viewer/build'
war {
into('api-viewer') {
from(project(':job-dsl-api-viewer').projectDir) {
include 'index.html'
include 'build/dist/**'
}
}
dependsOn tasks.getByPath(':job-dsl-api-viewer:build')
}

copyApiViewer.dependsOn ':job-dsl-api-viewer:build'
jpi.dependsOn 'copyApiViewer'

dependencies {
annotationProcessor 'net.java.sezpoz:sezpoz:1.13'
annotationProcessor 'org.jenkins-ci:annotation-indexer:1.12'
Expand Down

0 comments on commit 285cbf6

Please sign in to comment.