Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #78 from pkliczewski/main
Browse files Browse the repository at this point in the history
FLPATH-36 publish mvn modules
  • Loading branch information
anludke committed Mar 10, 2023
2 parents 88ba946 + 6abe23d commit 48ade40
Show file tree
Hide file tree
Showing 12 changed files with 590 additions and 404 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ clean: ## Clean all modules
all: clean ## Build all modules
$(MAVEN) $(ARGS) install

deploy: clean ## push snapshot modules to maven central
$(MAVEN) deploy

release: clean ## release and push modules to maven central
$(MAVEN) deploy -P release

fast-build: ARGS = $(FAST_BUILD_ARGS) ## Build all modules without running the tests and generate javadoc
fast-build: all

Expand Down
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,43 @@ This will build the dependencies and install them into your local mvn directory.
Parodos 'workflow-engine' is not in Maven Central. If you wish to use it in a project like the workflow-examples, you
will need to build it locally first.

## Releasing the Code

In the root of this folder we can execute:

to push module snapshots to sonatype repository:

```shell

mvn deploy

```

to release and push modules to sonatype repository which is later synchronized to maven central:

```shell

mvn deploy -P release

```

In order to push modules or snapshots to sonatype repository following changes needs to be configured:
* [Jira](https://issues.sonatype.org) user details provided in settings file with permissions to push

```xml
<settings>
<servers>
<server>
<id>ossrh</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
</servers>
</settings>
```
* [GPG client](http://www.gnupg.org/) installed and on your command line path as required by the
[Maven GPG plugin](http://maven.apache.org/plugins/maven-gpg-plugin/)

## Is Parodos an Application?

Parodos provides an API and object model that can be used as a backing service for an IDP. If Backstage is in use, the
Expand Down
131 changes: 56 additions & 75 deletions coverage/pom.xml
Original file line number Diff line number Diff line change
@@ -1,83 +1,64 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.redhat.parodos</groupId>
<artifactId>parados-parent</artifactId>
<groupId>dev.parodos</groupId>
<artifactId>parados-parent</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>coverage</artifactId>
<name>coverage</name>
<description>Compute aggregated test code coverage</description>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<revision>1.0.0-SNAPSHOT</revision>
</properties>

<artifactId>coverage</artifactId>
<name>coverage</name>
<description>Compute aggregated test code coverage</description>

<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<revision>1.0.0-SNAPSHOT</revision>
</properties>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-engine</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-service</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-examples</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>notification-service</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>pattern-detection-library</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-examples</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<configuration>
<excludes>
<exclude>**/*Configuration.*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-engine</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>workflow-examples</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>notification-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>pattern-detection-library</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
16 changes: 14 additions & 2 deletions notification-service/.flattened-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,27 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.redhat.parodos</groupId>
<groupId>dev.parodos</groupId>
<artifactId>parados-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>com.redhat.parodos</groupId>
<groupId>dev.parodos</groupId>
<artifactId>notification-service</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>notification-service</name>
<description>Notification Service to sent out notification messages</description>
<url>https://github.com/redhat-developer/parodos</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/redhat-developer/parodos.git</connection>
<developerConnection>scm:git:ssh://github.com/redhat-developer/parodos.git</developerConnection>
<url>http://github.com/redhat-developer/parodos/tree/master</url>
</scm>
<properties>
<springdoc-openapi-ui.version>1.6.4</springdoc-openapi-ui.version>
<maven.compiler.target>11</maven.compiler.target>
Expand Down
Loading

0 comments on commit 48ade40

Please sign in to comment.