Skip to content

Commit 5fbef15

Browse files
authored
Add publishing for hoptimator-k8s (#81)
1 parent 70132fb commit 5fbef15

File tree

2 files changed

+52
-12
lines changed

2 files changed

+52
-12
lines changed

bin/hoptimator

-3
This file was deleted.

hoptimator-k8s/build.gradle

+52-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'java-test-fixtures'
3+
id 'maven-publish'
44
}
55

66
dependencies {
@@ -12,23 +12,21 @@ dependencies {
1212

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

1816
testImplementation(testFixtures(project(':hoptimator-jdbc')))
19-
testImplementation(platform('org.junit:junit-bom:5.11.3'))
20-
testImplementation 'org.junit.jupiter:junit-jupiter'
17+
testImplementation(platform('org.junit:junit-bom:5.11.3'))
18+
testImplementation 'org.junit.jupiter:junit-jupiter'
2119
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2220
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
2321
}
2422

2523
test {
26-
useJUnitPlatform {
24+
useJUnitPlatform {
2725
excludeTags 'integration'
2826
}
29-
testLogging {
30-
events "passed", "skipped", "failed"
31-
}
27+
testLogging {
28+
events "passed", "skipped", "failed"
29+
}
3230
}
3331

3432
tasks.register('intTest', Test) {
@@ -45,3 +43,48 @@ tasks.register('intTest', Test) {
4543
events "passed", "skipped", "failed"
4644
}
4745
}
46+
47+
publishing {
48+
repositories {
49+
maven {
50+
name 'GitHubPackages'
51+
url = 'https://maven.pkg.github.com/linkedin/Hoptimator'
52+
credentials {
53+
username = System.getenv('GITHUB_ACTOR')
54+
password = System.getenv('GITHUB_TOKEN')
55+
}
56+
}
57+
maven {
58+
name 'LinkedInJFrog'
59+
url 'https://linkedin.jfrog.io/artifactory/hoptimator'
60+
credentials {
61+
username = System.getenv('JFROG_USERNAME')
62+
password = System.getenv('JFROG_API_KEY')
63+
}
64+
}
65+
}
66+
publications {
67+
maven(MavenPublication) {
68+
groupId = 'com.linkedin.hoptimator'
69+
artifactId = 'hoptimator-k8s'
70+
version = System.getenv('VERSION')
71+
from components.java
72+
pom {
73+
name = 'LinkedIn Hoptimator'
74+
description = 'Multi-hop declarative data pipelines'
75+
url = 'https://github.com/linkedin/Hoptimator'
76+
licenses {
77+
license {
78+
name = 'BSD 2-Clause'
79+
url = 'https://raw.githubusercontent.com/linkedin/Hoptimator/main/LICENSE'
80+
}
81+
}
82+
scm {
83+
connection = 'scm:git:git://github.com:linkedin/Hoptimator.git'
84+
developerConnection = 'scm:git:ssh://github.com:linkedin/Hoptimator.git'
85+
url = 'https://github.com/linkedin/Hoptimator'
86+
}
87+
}
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)