Skip to content

Commit

Permalink
Kraken: add support for OHLC Streaming and publishing under own groupId
Browse files Browse the repository at this point in the history
  • Loading branch information
rvullriede committed Feb 28, 2024
1 parent 9d9b0b4 commit e317905
Show file tree
Hide file tree
Showing 121 changed files with 644 additions and 456 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/maven-publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Release Package to Github Packages
on:
release:
types: [ created ]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode -P codelabz-release clean deploy
env:
MAVEN_USERNAME: ${{ secrets.GH_MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.GH_MAVEN_PASSWORD }}
29 changes: 13 additions & 16 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
# This workflow will build a Java project with Maven
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven on Push
name: Java CI with Maven

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean deploy --no-transfer-progress --batch-mode --settings etc/settings.xml -Dfmt.skip=true;
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
23 changes: 0 additions & 23 deletions .github/workflows/maven_on_pull_request.yml

This file was deleted.

41 changes: 40 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<maven>3.0</maven>
</prerequisites>

<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
<packaging>pom</packaging>
Expand Down Expand Up @@ -480,6 +480,45 @@
</plugins>
</build>
</profile>

<profile>
<id>codelabz-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</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.6.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<doclint>none</doclint>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

<build>
Expand Down
6 changes: 3 additions & 3 deletions xchange-ascendex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -23,7 +23,7 @@

<dependencies>
<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>
Expand All @@ -36,4 +36,4 @@

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bankera/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,11 +25,11 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-binance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<parent>
<artifactId>xchange-parent</artifactId>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<version>5.1.2-SNAPSHOT</version>
</parent>

Expand All @@ -23,7 +23,7 @@

<dependencies>
<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>
Expand All @@ -35,4 +35,4 @@
</dependency>

</dependencies>
</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitbay/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,11 +25,11 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitcoinaverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,11 +25,11 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitcoincharts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,11 +25,11 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitcoincore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,10 +25,10 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitcoinde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,10 +25,10 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>
</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitfinex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2-SNAPSHOT</version>
</parent>
Expand All @@ -25,11 +25,11 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitflyer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<parent>
<artifactId>xchange-parent</artifactId>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<version>5.1.2-SNAPSHOT</version>
</parent>

Expand All @@ -22,11 +22,11 @@
<dependencies>

<dependency>
<groupId>org.knowm.xchange</groupId>
<groupId>net.osslabz</groupId>
<artifactId>xchange-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
Loading

0 comments on commit e317905

Please sign in to comment.