Skip to content

Commit

Permalink
Bump to Tomcat 10
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Mikusa <[email protected]>
  • Loading branch information
dmikusa committed Jul 26, 2024
1 parent c51d0e4 commit bbc2ad5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/war/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See [prerequisites](https://paketo.io/docs/howto/java/#prerequisites) of this sa
## Building

```bash
pack build applications/war --env BP_JVM_VERSION=17
pack build applications/war --env BP_JVM_VERSION=17 --env BP_TOMCAT_VERSION=10
```

## Running
Expand Down
16 changes: 16 additions & 0 deletions java/war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,20 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<env>
<BP_TOMCAT_VERSION>10</BP_TOMCAT_VERSION>
</env>
</image>
</configuration>
</plugin>
</plugins>
</build>

</project>
4 changes: 3 additions & 1 deletion java/war/smoke_test/war_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package war_test
import (
"flag"
"fmt"
"github.com/paketo-buildpacks/samples/tests"
"os"
"path/filepath"
"testing"
"time"

"github.com/paketo-buildpacks/samples/tests"

"github.com/paketo-buildpacks/occam"
"github.com/sclevine/spec"
"github.com/sclevine/spec/report"
Expand Down Expand Up @@ -96,6 +97,7 @@ func testWARWithBuilder(builder string) func(*testing.T, spec.G, spec.S) {
image, logs, err = pack.Build.
WithPullPolicy("never").
WithBuilder(builder).
WithEnv(map[string]string{"BP_TOMCAT_VERSION": "10"}).
Execute(name, source)
Expect(err).ToNot(HaveOccurred(), logs.String)

Expand Down

0 comments on commit bbc2ad5

Please sign in to comment.