Skip to content

Commit

Permalink
Profile for Maven central repository publication (#41)
Browse files Browse the repository at this point in the history
* refactoring regarding repositories dependency

* migration of github action plugins to next version

* refactoring for conformity with maven repository requirements

* Update of github workflows

* refactoring

* Update pom.xml

* Official maven central repository profile added
  • Loading branch information
olivierlemee authored Jun 19, 2024
1 parent 705dbd9 commit cc8bd18
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 39 deletions.
72 changes: 41 additions & 31 deletions demonstrators-line/demonstrator-v0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.cybnity</groupId>
<artifactId>techstack</artifactId>
<version>0.30.61</version>
<version>0.31.0</version>
<packaging>pom</packaging>
<name>CYBNITY Official Standard Techstack</name>

Expand Down Expand Up @@ -52,9 +52,6 @@
<!-- Activate warning about java deprecations (deprecation) or without (unchecked) -->
<lint.activation>deprecation</lint.activation>

<!-- Artefacts signature key name dedicated to CYBNITY components and available from https://keys.openpgpg.org-->
<gpg.keyname>33105BFD367D25B3</gpg.keyname>

<!-- TECHSTACK STANDARD TECHNOLOGIES -->
<vertx.version>4.4.8</vertx.version> <!-- [4.3.2,) -->
<janusgraph.driver>[1.1.0,)</janusgraph.driver>
Expand All @@ -70,6 +67,9 @@

<!-- The stable Zookeeper (3.7.1) base image (see https://hub.docker.com/_/zookeeper), based on Temurin JVM -->
<docker.zookeeper.image.name>zookeeper:3.7.1-temurin</docker.zookeeper.image.name>

<!-- Public signature key name dedicated to CYBNITY components signing, and available from https://keys.openpgpg.org-->
<gpg.keyname>33105BFD367D25B3</gpg.keyname>
</properties>

<organization>
Expand Down Expand Up @@ -637,28 +637,24 @@
</profile>

<profile>
<!-- Test environment -->
<id>qa-environment</id>
<!-- Maven Central Repository promotion stage -->
<id>central-deploy-environment</id>
<activation>
<property>
<!-- Activation based on -D system property (e.g command line with -Denvironment=qa) -->
<!-- Activation based on -D system property (e.g command line with -Denvironment=central-deploy) -->
<name>environment</name>
<value>qa</value>
</property>
</activation>
</profile>

<profile>
<!-- Build phase regarding a software version development -->
<id>commit-stage</id>
<activation>
<property>
<!-- Activation based on -D system property (e.g command line with -Dstage=commit) -->
<name>stage</name>
<value>commit</value>
<value>central-deploy</value>
</property>
</activation>

<distributionManagement>
<repository>
<!-- Sonatype official maven central repository target for deployment of artefacts -->
<id>central</id>
<name>Central Maven repository</name>
<uniqueVersion>true</uniqueVersion>
<url>https://central.sonatype.com</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
Expand All @@ -680,6 +676,30 @@
</build>
</profile>

<profile>
<!-- Test environment -->
<id>qa-environment</id>
<activation>
<property>
<!-- Activation based on -D system property (e.g command line with -Denvironment=qa) -->
<name>environment</name>
<value>qa</value>
</property>
</activation>
</profile>

<profile>
<!-- Build phase regarding a software version development -->
<id>commit-stage</id>
<activation>
<property>
<!-- Activation based on -D system property (e.g command line with -Dstage=commit) -->
<name>stage</name>
<value>commit</value>
</property>
</activation>
</profile>

<profile>
<!-- Phase of technical quality validation of a software version -->
<id>technical-quality-stage</id>
Expand Down Expand Up @@ -733,16 +753,6 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- Allow signature of components before to publish them in Maven repository -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<!-- Add javasource in packaged jar -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<!-- Generate and include javadoc files in packaged deliverable -->
<groupId>org.apache.maven.plugins</groupId>
Expand Down
2 changes: 1 addition & 1 deletion demonstrators-line/demonstrator-v0/sample-project-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.cybnity</groupId>
<artifactId>techstack</artifactId>
<version>0.30.10</version>
<version>0.31.0</version>
</parent>

<groupId>org.cybnity.techstack.quality</groupId>
Expand Down
6 changes: 3 additions & 3 deletions demonstrators-line/demonstrator-v0/v0-technologies-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Should allow definition and test of basic software factory implementation allowi
None supervision requirements required regarding the step of the CYBNITY Foundation project.

# CURRENT MPP OFFICIAL VERSION
- Version: 0.30.61
- Released at: June, 18, 2024
- Version: 0.31.0
- Released at: June, 19, 2024
- Status: `RELEASED`
- Documentation: [technologies-stack-analysis](technologies-stack-analysis.md)
- Deliverables:
Expand All @@ -80,7 +80,7 @@ None supervision requirements required regarding the step of the CYBNITY Foundat
<parent>
<groupId>org.cybnity</groupId>
<artifactId>techstack</artifactId>
<version>0.30.61</version>
<version>0.31.0</version>
</parent>

<repositories>
Expand Down
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,17 +327,18 @@
</build>
</profile>
<profile>
<!-- Maven central promotion stage -->
<id>central-deploy</id>
<!-- Maven Central Repository promotion stage -->
<id>central-deploy-environment</id>
<activation>
<property>
<!-- Activation based on -D system property (e.g command line with -Dstage=central-deploy) -->
<name>stage</name>
<!-- Activation based on -D system property (e.g command line with -Denvironment=central-deploy) -->
<name>environment</name>
<value>central-deploy</value>
</property>
</activation>
<distributionManagement>
<repository>
<!-- Sonatype official maven central repository target for deployment of artefacts -->
<id>central</id>
<name>Central Maven repository</name>
<uniqueVersion>true</uniqueVersion>
Expand Down

0 comments on commit cc8bd18

Please sign in to comment.