Skip to content

Commit

Permalink
Fix dynamic publish path (#5809)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman authored Feb 24, 2025
1 parent 18b6934 commit 6a81c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class PublishOp {

// if the resolved publish path is a string, resolve it
// against the base output directory
if( resolvedPath instanceof String )
return outputDir.resolve(resolvedPath)
if( resolvedPath instanceof CharSequence )
return outputDir.resolve(resolvedPath.toString())

// if the resolved publish path is a closure, use the closure
// to transform each published file and resolve it against
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class OutputDslTest extends Specification {

when:
dsl.target('bar') {
path('barbar')
path { v -> "${'barbar'}" }
index {
path 'index.csv'
}
Expand Down

0 comments on commit 6a81c01

Please sign in to comment.