Skip to content

Commit

Permalink
Merge pull request #267 from mobidata-bw/issues/266_devtools_exclusion
Browse files Browse the repository at this point in the history
Exclude spring-boot-devtools from jib-built docker image
  • Loading branch information
testower authored Sep 20, 2023
2 parents 3fc5ef1 + 9de8cae commit dbd5229
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,14 @@
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.3.2</version>
<dependencies>
<!-- Include jib-spring-boot-extension-maven to prevent spring-boot-devtools from being packaged.-->
<dependency>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-spring-boot-extension-maven</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
<configuration>
<from>
<image>eclipse-temurin:17.0.6_10-jdk-alpine</image>
Expand All @@ -274,6 +282,11 @@
<port>8080</port>
</ports>
</container>
<pluginExtensions>
<pluginExtension>
<implementation>com.google.cloud.tools.jib.maven.extension.springboot.JibSpringBootExtension</implementation>
</pluginExtension>
</pluginExtensions>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit dbd5229

Please sign in to comment.