Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 45 additions & 44 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
---
name: Publish Snapshot
on:
push:
branches:
- master
- '[0-9].x'
- 'gkorland-patch-1'
workflow_dispatch:

name: Publish Snapshot

on:
push:
branches:
- master
- '[0-9].x'
workflow_dispatch:

jobs:

snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up publishing to maven central
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
jobs:
snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up publishing to maven central
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: central
server-username: CENTRAL_USERNAME
server-password: CENTRAL_TOKEN
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private ke

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
/var/cache/apt
key: jfalkordb-${{hashFiles('**/pom.xml')}}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
/var/cache/apt
key: jfalkordb-${{hashFiles('**/pom.xml')}}

- name: mvn offline
run: |
mvn -q dependency:go-offline

- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_TOKEN: ${{ secrets.CENTRAL_TOKEN }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: mvn offline
run: |
mvn -q dependency:go-offline

- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
env:
MAVEN_USERNAME: ${{secrets.OSSRH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSRH_PASSWORD}}

170 changes: 74 additions & 96 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,59 +1,75 @@
<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>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<groupId>com.falkordb</groupId>
<artifactId>jfalkordb</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.5.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>JFalkorDB</name>
<description>Official client for falkordb</description>
<description>Official client for FalkorDB</description>
<url>https://www.falkordb.com</url>

<organization>
<name>FalkorBD</name>
<url>www.falkordb.com</url>
<name>FalkorDB</name>
<url>https://www.falkordb.com</url>
</organization>

<ciManagement>
<system>CircleCI</system>
<url>https://circleci.com/gh/FalkorDB/JFalkorDB</url>
</ciManagement>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/FalkorDB/JFalkorDB/issues</url>
<system>Github</system>
</issueManagement>

<scm>
<url>https://github.com/FalkorDB/JFalkorDB</url>
<connection>scm:git:git://github.com/FalkorDB/JFalkorDB.git</connection>
<developerConnection>scm:git:git@github.com:FalkorDB/JFalkorDB.git</developerConnection>
</scm>
<distributionManagement>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://central.sonatype.dev/maven2</url>
</repository>
</distributionManagement>

<licenses>
<license>
<name>BSD 3 Clause</name>
<name>BSD 3-Clause</name>
<url>https://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>gkorland</id>
<name>Guy Korland</name>
<email>gkorland@gmail.com</email>
</developer>
</developers>

<developers>
<developer>
<id>gkorland</id>
<name>Guy Korland</name>
<email>gkorland@gmail.com</email>
</developer>
</developers>
<distributionManagement>
<repository>
<id>central</id>
<url>https://central.sonatype.com/api/v1/publisher/upload/</url>
</repository>
<snapshotRepository>
<id>central</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>redis.clients</groupId>
Expand Down Expand Up @@ -84,14 +100,15 @@
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.test.source>8</maven.test.source>
<maven.test.target>8</maven.test.target>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand All @@ -111,6 +128,35 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.2</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
Expand All @@ -122,74 +168,6 @@
<waitUntil>published</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!--Include sources and docs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.2</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!--Sign the components - this is required by maven central for releases -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.26.0</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading