chore(quarkus-327): drop parent-pom.xml (all modules autonomous), clean publish-api scripts
This commit is contained in:
@@ -1,95 +0,0 @@
|
|||||||
<?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">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>dev.lions.unionflow</groupId>
|
|
||||||
<artifactId>unionflow-parent</artifactId>
|
|
||||||
<version>1.0.6</version>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
|
|
||||||
<name>UnionFlow - Parent</name>
|
|
||||||
<description>Plateforme complète de gestion d'union — POM parent partagé</description>
|
|
||||||
|
|
||||||
<distributionManagement>
|
|
||||||
<repository>
|
|
||||||
<id>gitea-lionsdev</id>
|
|
||||||
<url>https://git.lions.dev/api/packages/lionsdev/maven</url>
|
|
||||||
</repository>
|
|
||||||
<snapshotRepository>
|
|
||||||
<id>gitea-lionsdev</id>
|
|
||||||
<url>https://git.lions.dev/api/packages/lionsdev/maven</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>gitea-lionsdev</id>
|
|
||||||
<url>https://git.lions.dev/api/packages/lionsdev/maven</url>
|
|
||||||
<releases><enabled>true</enabled></releases>
|
|
||||||
<snapshots><enabled>true</enabled></snapshots>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.release>21</maven.compiler.release>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
||||||
<quarkus.platform.version>3.20.0</quarkus.platform.version>
|
|
||||||
<lombok.version>1.18.36</lombok.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>jakarta.annotation</groupId>
|
|
||||||
<artifactId>jakarta.annotation-api</artifactId>
|
|
||||||
<version>3.0.0</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<version>1.18.34</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>dev.lions.unionflow</groupId>
|
|
||||||
<artifactId>unionflow-server-api</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.13.0</version>
|
|
||||||
<configuration>
|
|
||||||
<release>21</release>
|
|
||||||
<encoding>UTF-8</encoding>
|
|
||||||
<parameters>true</parameters>
|
|
||||||
<annotationProcessorPaths>
|
|
||||||
<path>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<version>${lombok.version}</version>
|
|
||||||
</path>
|
|
||||||
</annotationProcessorPaths>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
@@ -1,30 +1,17 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM Publie le parent pom + server-api sur le Gitea Package Registry
|
REM Publie unionflow-server-api sur le Gitea Package Registry
|
||||||
REM Usage : script\publish-api.bat
|
REM Usage : script\publish-api.bat
|
||||||
REM Depuis : n'importe où dans le repo server-api
|
REM Depuis : n'importe ou dans le repo server-api
|
||||||
REM Prérequis: credentials dans %USERPROFILE%\.m2\settings.xml (server id: gitea-lionsdev)
|
REM Prerequis: credentials dans %USERPROFILE%\.m2\settings.xml (server id: gitea-lionsdev)
|
||||||
|
REM
|
||||||
set REGISTRY_URL=https://git.lions.dev/api/packages/lionsdev/maven
|
REM Note : unionflow-parent n'existe plus (modules autonomes depuis Quarkus 3.27.3).
|
||||||
set REGISTRY_ID=gitea-lionsdev
|
|
||||||
|
cd /d "%~dp0\.."
|
||||||
cd /d "%~dp0\.."
|
|
||||||
|
echo.
|
||||||
echo.
|
echo Publication du server-api...
|
||||||
echo [1/2] Publication du parent pom...
|
call mvn deploy -DskipTests
|
||||||
call mvn deploy:deploy-file ^
|
if errorlevel 409 echo [WARN] Server-api deja publie - incrementer la version pour republier.
|
||||||
-DgroupId=dev.lions.unionflow ^
|
|
||||||
-DartifactId=unionflow-parent ^
|
echo.
|
||||||
-Dversion=1.0.0 ^
|
echo Done -- https://git.lions.dev/lionsdev/-/packages
|
||||||
-Dpackaging=pom ^
|
|
||||||
-Dfile=parent-pom.xml ^
|
|
||||||
-DrepositoryId=%REGISTRY_ID% ^
|
|
||||||
-Durl=%REGISTRY_URL%
|
|
||||||
if errorlevel 409 echo [WARN] Parent pom deja publie pour cette version, on continue.
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo [2/2] Publication du server-api...
|
|
||||||
call mvn deploy -DskipTests
|
|
||||||
if errorlevel 409 echo [WARN] Server-api deja publie - incrementer la version pour republier.
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo Done -- https://git.lions.dev/lionsdev/-/packages
|
|
||||||
|
|||||||
@@ -1,30 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Publie le parent pom + server-api sur le Gitea Package Registry
|
# Publie unionflow-server-api sur le Gitea Package Registry
|
||||||
# Usage : ./script/publish-api.sh
|
# Usage : ./script/publish-api.sh
|
||||||
# Depuis : n'importe où dans le repo server-api
|
# Depuis : n'importe où dans le repo server-api
|
||||||
# Prérequis: credentials dans ~/.m2/settings.xml (server id: gitea-lionsdev)
|
# Prérequis: credentials dans ~/.m2/settings.xml (server id: gitea-lionsdev)
|
||||||
|
#
|
||||||
|
# Note : unionflow-parent n'existe plus (les 3 modules sont autonomes
|
||||||
|
# depuis la migration Quarkus 3.27.3). Ne publier que le module server-api.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
REGISTRY_URL="https://git.lions.dev/api/packages/lionsdev/maven"
|
|
||||||
REGISTRY_ID="gitea-lionsdev"
|
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "[1/2] Publication du parent pom..."
|
echo "Publication du server-api..."
|
||||||
mvn deploy:deploy-file \
|
|
||||||
-DgroupId=dev.lions.unionflow \
|
|
||||||
-DartifactId=unionflow-parent \
|
|
||||||
-Dversion=1.0.5 \
|
|
||||||
-Dpackaging=pom \
|
|
||||||
-Dfile=parent-pom.xml \
|
|
||||||
-DrepositoryId="${REGISTRY_ID}" \
|
|
||||||
-Durl="${REGISTRY_URL}" \
|
|
||||||
|| echo "[WARN] Parent pom déjà publié pour cette version (409), on continue."
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "[2/2] Publication du server-api..."
|
|
||||||
mvn deploy -DskipTests \
|
mvn deploy -DskipTests \
|
||||||
|| echo "[WARN] Server-api déjà publié pour cette version (409) - incrémenter la version pour republier."
|
|| echo "[WARN] Server-api déjà publié pour cette version (409) - incrémenter la version pour republier."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user