Skip to content

Commit

Permalink
chore: initial commit (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-steinfeld authored Aug 23, 2023
1 parent 39a8ad0 commit c44cabc
Show file tree
Hide file tree
Showing 17 changed files with 706 additions and 201 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Each line is a file pattern followed by one or more owners.

# global
* @hypertrace/platform-util-owners
29 changes: 29 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Validate
on:
schedule:
- cron: 16 10 * * 3
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-22.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build with Gradle
uses: hypertrace/github-actions/gradle@main
with:
args: assemble

dependency-check:
runs-on: ubuntu-22.04
steps:
- name: Dependency Check
uses: hypertrace/github-actions/dependency-check@main
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish artifacts
on:
push:
branches:
- main

jobs:
create-release:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Determine version
id: version
run: echo version=$(./gradlew -q -Prelease :printVersion) >> $GITHUB_OUTPUT

- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.version }}
name: Release ${{ steps.version.outputs.version }}
publish-artifacts:
runs-on: ubuntu-22.04
needs: [ create-release ]
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Publish java artifacts
uses: hypertrace/github-actions/gradle@main
with:
args: publish
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

.idea
*.log
314 changes: 113 additions & 201 deletions LICENSE

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import org.hypertrace.gradle.publishing.HypertracePublishExtension
import org.hypertrace.gradle.publishing.License

plugins {
id("org.hypertrace.repository-plugin") version "0.4.2"
id("org.hypertrace.ci-utils-plugin") version "0.3.2"
id("org.hypertrace.publish-plugin") version "1.0.5" apply false
id("org.hypertrace.code-style-plugin") version "1.2.0" apply false
id("org.owasp.dependencycheck") version "8.4.0"
}

subprojects {
group = "org.hypertrace.bom"
apply(plugin = "org.hypertrace.code-style-plugin")

pluginManager.withPlugin("org.hypertrace.publish-plugin") {
configure<HypertracePublishExtension> {
license.set(License.TRACEABLE_COMMUNITY)
}
}
}

dependencyCheck {
format = org.owasp.dependencycheck.reporting.ReportGenerator.Format.ALL.toString()
suppressionFile = "owasp-suppressions.xml"
scanConfigurations.add("runtimeClasspath")
failBuildOnCVSS = 3.0F
}
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.caching=true
org.gradle.configureondemand=true

30 changes: 30 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[versions]
protoc = "3.24.1"
grpc = "1.57.2"
hypertrace-framework = "0.1.58"
hypertrace-grpcutils = "0.12.2"
hypertrace-kafka = "0.3.2"

[libraries]
guava = { module = "com.google.guava:guava", version = "32.1.2-jre" }
typesafe-config = { module = "com.typesafe:config", version = "1.4.2" }
lombok = { module = "org.projectlombok:lombok", version = "1.18.28" }
grpc-bom = { module = "io.grpc:grpc-bom", version.ref = "grpc" }
grpc-core = { module = "io.grpc:grpc-core"}
jackson-bom = { module = "com.fasterxml.jackson:jackson-bom", version = "2.15.2" }
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind"}
protobuf-java = { module = "com.google.protobuf:protobuf-java", version.ref = "protoc" }
protobuf-javautil = { module = "com.google.protobuf:protobuf-java-util", version.ref = "protoc" }

hypertrace-grpcutils-context = { module = "org.hypertrace.core.grpcutils:grpc-context-utils", version.ref = "hypertrace-grpcutils" }
hypertrace-grpcutils-client = { module = "org.hypertrace.core.grpcutils:grpc-client-utils", version.ref = "hypertrace-grpcutils" }
hypertrace-grpcutils-rx-client = { module = "org.hypertrace.core.grpcutils:grpc-client-rx-utils", version.ref = "hypertrace-grpcutils" }
hypertrace-framework-grpc = { module = "org.hypertrace.core.serviceframework:platform-grpc-service-framework", version.ref = "hypertrace-framework" }
hypertrace-framework-http = { module = "org.hypertrace.core.serviceframework:platform-http-service-framework", version.ref = "hypertrace-framework" }
hypertrace-framework-spi = { module = "org.hypertrace.core.serviceframework:service-framework-spi", version.ref = "hypertrace-framework" }
hypertrace-integrationtest-framework = { module = "org.hypertrace.core.serviceframework:integrationtest-service-framework", version.ref = "hypertrace-framework" }
hypertrace-documentstore = { module = "org.hypertrace.core.documentstore:document-store", version = "0.7.37" }
hypertrace-eventstore = { module = "org.hypertrace.core.eventstore:event-store", version = "0.1.3" }
hypertrace-kafka-bom = { module = "org.hypertrace.core.kafkastreams.framework:kafka-bom", version.ref = "hypertrace-kafka" }
hypertrace-kafka-framework = { module = "org.hypertrace.core.kafkastreams.framework:kafka-streams-framework", version.ref = "hypertrace-kafka"}

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-8.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit c44cabc

Please sign in to comment.