Skip to content

Commit

Permalink
build: change packaging from jar to war
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Apr 22, 2024
1 parent d429cbf commit 9e9174d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
<groupId>fr.recia</groupId>
<artifactId>ressources-diffusables-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Ressources Diffusables API</name>
<description>API des ressources diffusables</description>

<properties>
<check.java.version>11</check.java.version>
<java.version>11</java.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (C) 2021 GIP-RECIA, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package fr.recia.ressourcesdiffusablesapi;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

public class ServletInitializer extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(ApiMediacentreApplication.class);
}

}

0 comments on commit 9e9174d

Please sign in to comment.