playframework icon indicating copy to clipboard operation
playframework copied to clipboard

PlayApplication lost its configurable "assets"

Open big-guy opened this issue 7 years ago • 3 comments

This behaves somewhat like a source set, so I don't know if it makes sense to make PublicAssets another source set type or just make it configurable in the PlayExtension.

This impacts the way the PlayApplication wires up the assets jar and play run

big-guy avatar Dec 07 '18 06:12 big-guy

I didn't fully understand the purpose of assets to be honest. Maybe we can briefly chat about why it is necessary.

bmuschko avatar Dec 08 '18 00:12 bmuschko

Is there currently a way to configure unconventional asset location?

tnielens avatar Oct 06 '19 22:10 tnielens

I've managed to make this work with

createPlayAssetsJar.from("src/main/assets") { into "public"}
runPlay.assetsDirs.from(files("src/main/assets"))

Indeed, a new source set or play extension config could be great :+1:.

tnielens avatar Oct 06 '19 22:10 tnielens