mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
Adding build spec
This commit is contained in:
parent
3f9b3aa215
commit
51ffdffd3e
1 changed files with 23 additions and 0 deletions
23
buildspec.yml
Normal file
23
buildspec.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
version: 0.2
|
||||||
|
|
||||||
|
phases:
|
||||||
|
install:
|
||||||
|
runtime-versions:
|
||||||
|
java: corretto17
|
||||||
|
pre_build:
|
||||||
|
commands:
|
||||||
|
- echo "Installing dependencies..."
|
||||||
|
- mvn clean install -DskipTests
|
||||||
|
build:
|
||||||
|
commands:
|
||||||
|
- echo "Building the project..."
|
||||||
|
- mvn package -DskipTests
|
||||||
|
post_build:
|
||||||
|
commands:
|
||||||
|
- echo "Build completed successfully"
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
files:
|
||||||
|
- target/*.jar
|
||||||
|
discard-paths: yes
|
||||||
|
|
Loading…
Reference in a new issue