Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish to GitHub Packages
on:
push:
tags: [ "v*" ]
workflow_dispatch: {}

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '8'
- name: Publish
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publish --no-daemon
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ delombok/
*.ipr

# dumps #
dumps/*.ec*
dumps/*.ec*

#build
build

#gradle
.gradle

#DS
.DS_Store
83 changes: 83 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
plugins {
id "java"
id "maven-publish"
}

group = "com.dashdevs.exchange"
version = "0.5.4"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}

repositories {
mavenCentral()
maven { url = uri("https://repo1.maven.org/maven2") }
}

dependencies {
implementation "exchange.core2:collections:0.5.1"

implementation "com.lmax:disruptor:3.4.4"

// LZ4
implementation "org.lz4:lz4-java:1.8.0"

// Chronicle
implementation "net.openhft:chronicle-core:2.17.10"
implementation "net.openhft:chronicle-bytes:2.17.10"
implementation "net.openhft:chronicle-wire:2.17.10"

implementation "org.eclipse.collections:eclipse-collections:10.4.0"
implementation "org.agrona:agrona:1.13.0"

// Lombok + JetBrains annotations
compileOnly "org.projectlombok:lombok:1.18.30"
annotationProcessor "org.projectlombok:lombok:1.18.30"
compileOnly "org.jetbrains:annotations:24.1.0"

// Logging
implementation "ch.qos.logback:logback-classic:1.3.15"
}

tasks.withType(Javadoc).configureEach {
enabled = false
}

sourceSets {
test {
java.setSrcDirs([])
resources.setSrcDirs([])
}
}
tasks.withType(JavaCompile).configureEach {
if (name == "compileTestJava") enabled = false
}
tasks.withType(Test).configureEach {
enabled = false
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = "exchange-core"
pom {
name = "exchange-core (dashdevs fork)"
description = "Fork of exchange-core with vendored collections; Javadoc & tests disabled for publish"
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/dashdevs/exchange-core")
credentials {
username = System.getenv("GITHUB_ACTOR") ?: project.findProperty("gpr.user")
password = System.getenv("GITHUB_TOKEN") ?: project.findProperty("gpr.key")
}
}
}
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading