0

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'.

  • 1
    A package as in... a Java package, containing source code that needs to be compiled? Or something else. Don't hesitate to make your question longer than one line. – JB Nizet Oct 20 '18 at 07:28
  • probably (hopefully) he means a JAR library compiled from his own source code. – Nicholas Saunders Aug 09 '21 at 05:37

1 Answers1

1

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'
}
JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255