File tree Expand file tree Collapse file tree 6 files changed +34
-11
lines changed
src/main/java/com/josephrodriguez/springboot/starterkit/config Expand file tree Collapse file tree 6 files changed +34
-11
lines changed Original file line number Diff line number Diff line change 1616 IMG_NAME : ${{ github.repository }}
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v3.1.0
19+ uses : actions/checkout@v3.5.3
2020
2121 - name : Info
2222 run : echo "Parameters. ${{ github.event.base_ref }}, ${{ github.ref_type }}, ${{ github.ref }}"
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v3.1.0
14+ uses : actions/checkout@v3.5.3
1515
1616 - id : vars
1717 name : Setup job variables
Original file line number Diff line number Diff line change 1010 name : Build
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v3.1.0
13+ - uses : actions/checkout@v3.5.3
1414 with :
1515 fetch-depth : 0
1616
Original file line number Diff line number Diff line change 1- FROM eclipse-temurin:17 -jdk-alpine as build
1+ FROM eclipse-temurin:20 -jdk-alpine as build
22COPY . /usr/app
33WORKDIR /usr/app
44RUN chmod +x mvnw && ./mvnw clean package
55
6- FROM eclipse-temurin:17 -jre-alpine
6+ FROM eclipse-temurin:20 -jre-alpine
77RUN apk update && apk upgrade && mkdir /app
88COPY --from=build /usr/app/target/*.jar /app/com.springboot.starterkit.jar
99EXPOSE 8080
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >org.springframework.boot</groupId >
88 <artifactId >spring-boot-starter-parent</artifactId >
9- <version >3.0.6 </version >
9+ <version >3.1.2 </version >
1010 <relativePath /> <!-- lookup parent from repository -->
1111 </parent >
1212
4949 <dependency >
5050 <groupId >org.springdoc</groupId >
5151 <artifactId >springdoc-openapi-starter-webmvc-ui</artifactId >
52- <version >2.0.4 </version >
52+ <version >2.2.0 </version >
5353 </dependency >
5454 <dependency >
5555 <groupId >org.projectlombok</groupId >
5656 <artifactId >lombok</artifactId >
57- <version >1.18.26 </version >
57+ <version >1.18.28 </version >
5858 <optional >true</optional >
5959 </dependency >
6060 <dependency >
6161 <groupId >org.yaml</groupId >
6262 <artifactId >snakeyaml</artifactId >
63- <version >2.0 </version >
63+ <version >2.1 </version >
6464 </dependency >
6565 </dependencies >
6666
7373 <plugin >
7474 <groupId >org.apache.maven.plugins</groupId >
7575 <artifactId >maven-compiler-plugin</artifactId >
76- <version >3.10.1 </version >
76+ <version >3.11.0 </version >
7777 </plugin >
7878 <plugin >
7979 <groupId >org.jacoco</groupId >
8080 <artifactId >jacoco-maven-plugin</artifactId >
81- <version >0.8.9 </version >
81+ <version >0.8.10 </version >
8282 <executions >
8383 <execution >
8484 <id >default-prepare-agent</id >
Original file line number Diff line number Diff line change 1+ package com .josephrodriguez .springboot .starterkit .config ;
2+
3+ import io .swagger .v3 .oas .models .Components ;
4+ import io .swagger .v3 .oas .models .OpenAPI ;
5+ import io .swagger .v3 .oas .models .info .Info ;
6+ import io .swagger .v3 .oas .models .info .License ;
7+ import org .springframework .beans .factory .annotation .Value ;
8+ import org .springframework .context .annotation .Bean ;
9+ import org .springframework .context .annotation .Configuration ;
10+
11+ @ Configuration
12+ public class SwaggerConfig {
13+
14+ @ Bean
15+ public OpenAPI generateOpenAPI (@ Value ("${springdoc.version}" ) String appVersion ) {
16+ return new OpenAPI ()
17+ .components (new Components ())
18+ .info (new Info ()
19+ .title ("Spring Boot StarterKit OpenAPI" )
20+ .version (appVersion )
21+ .license (new License ().name ("MIT" ).url ("http://springdoc.org" )));
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments