Add info in readme. Update global parent. Add plugin management for spring boot maven-plugin.

This commit is contained in:
Konstantinos Triantafyllou 2024-09-12 17:30:35 +03:00
parent 6e72794fd2
commit 868c9f5e06
2 changed files with 32 additions and 6 deletions

View File

@ -1,11 +1,20 @@
# uoa-spring-boot-parent # uoa-spring-boot-parent
This parent contains the dependency management for spring boot applications. This parent contains the global configuration for:
- Parent [uoa-global-parent](https://code-repo.d4science.org/MaDgIK/uoa-global-parent)
- Dependency Management for Spring boot.
- Spring boot basic dependencies
- [Google Gson Dependency](https://mvnrepository.com/artifact/com.google.code.gson/gson)
- Build Configuration:
- Plugin Management for spring maven plugin.
- Resources directory
- Global properties for spring-boot, google-gson and spring-doc (Swagger)
## Usage ## Usage
<parent> <parent>
<groupId>eu.dnetlib</groupId> <groupId>eu.dnetlib</groupId>
<artifactId>uoa-spring-boot-parent</artifactId> <artifactId>uoa-spring-boot-parent</artifactId>
<version>2.0.2</version> <version>2.0.3</version>
</parent> </parent>

25
pom.xml
View File

@ -1,16 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>eu.dnetlib</groupId> <groupId>eu.dnetlib</groupId>
<artifactId>uoa-global-parent</artifactId> <artifactId>uoa-global-parent</artifactId>
<version>2.0.2</version> <version>2.0.3</version>
</parent> </parent>
<artifactId>uoa-spring-boot-parent</artifactId> <artifactId>uoa-spring-boot-parent</artifactId>
<version>2.0.3-SNAPSHOT</version> <version>2.0.3-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<scm> <scm>
<developerConnection>scm:git:gitea@code-repo.d4science.org:MaDgIK/uoa-spring-boot-parent.git</developerConnection> <developerConnection>scm:git:gitea@code-repo.d4science.org:MaDgIK/uoa-spring-boot-parent.git
</developerConnection>
<tag>HEAD</tag> <tag>HEAD</tag>
</scm> </scm>
<dependencyManagement> <dependencyManagement>
@ -61,6 +63,22 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
@ -69,7 +87,6 @@
</resources> </resources>
</build> </build>
<properties> <properties>
<java.version>17</java.version>
<spring-boot-version>3.3.1</spring-boot-version> <spring-boot-version>3.3.1</spring-boot-version>
<gson-version>2.9.0</gson-version> <gson-version>2.9.0</gson-version>
<spring-doc-version>2.6.0</spring-doc-version> <spring-doc-version>2.6.0</spring-doc-version>