apache / apache/grails-core

Grails 4: embedded tomcat jars in both WEB-INF/lib and WEB-INF/lib-provided with providedRuntime scope

Open
#11,407 1 comment 0 reactions 1 assignee Claimed by @puneetbehl View on GitHub
relates-to: v4
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

### Steps to Reproduce

1. create fresh grails 4.0.0 app
2. change scope of `spring-boot-starter-tomcat` to `providedRuntime`
3. execute `grailsw war`

### Expected Behaviour

Tomcat embedded server jars (e.g. `tomcat-embed-core-9.0.21.jar`) should be placed in and only in `WEB-INF/lib-provided` folder within created war archive.

### Actual Behaviour

Tomcat embedded server jars are placed in both `WEB-INF/lib-provided` and `WEB-INF/lib` folders within created war archive.

### Environment Information

- **Operating System**: Win 10 x64
- **Grails Version:** 4.0.0
- **JDK Version:** 8

### Further notes

This table describes the presence of embedded server jars according to `spring-boot-starter-tomcat` scope and grails version:

`spring-boot-starter-tomcat` scope | grails version | `WEB-INF/lib` | `WEB-INF/lib-provided`
--- | --- | --- | ---
compile | 3.3.9 / 4.0.0 | ✓ | ✗
provided | 3.3.9 | ✗ | ✓
provided | 4.0.0 | ✗ | ✗
providedRuntime | 4.0.0 | ✓ | ✓

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.