Gradle: How to include additional package to war?

I have package in root of gradle module. How can I include it in war build using gradle & gretty?

It's non-java package, named 'frontend'.

Upvotes: 0

Views: 58

Answers (1)

JB Nizet
JB Nizet

Reputation: 691745

Here's the documentation of the War task.

As you can see, it has a from() method allowing to add a source directory.

The war plugin documentation has an example showing its usage

war {
    from 'frontend'
}

Upvotes: 1

Related Questions