How to compile jsp files using wsjspc(websphere compiler) in gradle?

There is the plugin Gradle - Plugin: com.liferay.jasper.jspc which might help to compile JSP files.
If it must be the specific WebSphere JSPC tool, you could either run it through some Exec task, or you can also use the actual Ant task.
Ant is first-class citizen in Gradle, so you can basically use all Ant tasks out there, it is just not as nice and convenient as it is when a dedicated Gradle task implementation exists.
The documentation shows how to run Ant tasks at Using Ant from Gradle

1 Like