Skip to content

Commit

Permalink
Add publishing for hoptimator-k8s (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
jogrogan authored Jan 7, 2025
1 parent 70132fb commit 5fbef15
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 12 deletions.
3 changes: 0 additions & 3 deletions bin/hoptimator

This file was deleted.

61 changes: 52 additions & 9 deletions hoptimator-k8s/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'java-test-fixtures'
id 'maven-publish'
}

dependencies {
Expand All @@ -12,23 +12,21 @@ dependencies {

// These are included in case the demo databases are deployed.
testRuntimeOnly project(':hoptimator-demodb')
testRuntimeOnly project(':hoptimator-kafka')
testRuntimeOnly project(':hoptimator-venice')

testImplementation(testFixtures(project(':hoptimator-jdbc')))
testImplementation(platform('org.junit:junit-bom:5.11.3'))
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation(platform('org.junit:junit-bom:5.11.3'))
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}

test {
useJUnitPlatform {
useJUnitPlatform {
excludeTags 'integration'
}
testLogging {
events "passed", "skipped", "failed"
}
testLogging {
events "passed", "skipped", "failed"
}
}

tasks.register('intTest', Test) {
Expand All @@ -45,3 +43,48 @@ tasks.register('intTest', Test) {
events "passed", "skipped", "failed"
}
}

publishing {
repositories {
maven {
name 'GitHubPackages'
url = 'https://maven.pkg.github.com/linkedin/Hoptimator'
credentials {
username = System.getenv('GITHUB_ACTOR')
password = System.getenv('GITHUB_TOKEN')
}
}
maven {
name 'LinkedInJFrog'
url 'https://linkedin.jfrog.io/artifactory/hoptimator'
credentials {
username = System.getenv('JFROG_USERNAME')
password = System.getenv('JFROG_API_KEY')
}
}
}
publications {
maven(MavenPublication) {
groupId = 'com.linkedin.hoptimator'
artifactId = 'hoptimator-k8s'
version = System.getenv('VERSION')
from components.java
pom {
name = 'LinkedIn Hoptimator'
description = 'Multi-hop declarative data pipelines'
url = 'https://github.com/linkedin/Hoptimator'
licenses {
license {
name = 'BSD 2-Clause'
url = 'https://raw.githubusercontent.com/linkedin/Hoptimator/main/LICENSE'
}
}
scm {
connection = 'scm:git:git://github.com:linkedin/Hoptimator.git'
developerConnection = 'scm:git:ssh://github.com:linkedin/Hoptimator.git'
url = 'https://github.com/linkedin/Hoptimator'
}
}
}
}
}

0 comments on commit 5fbef15

Please sign in to comment.