1
1
plugins {
2
2
id ' java'
3
- id ' java-test-fixtures '
3
+ id ' maven-publish '
4
4
}
5
5
6
6
dependencies {
@@ -12,23 +12,21 @@ dependencies {
12
12
13
13
// These are included in case the demo databases are deployed.
14
14
testRuntimeOnly project(' :hoptimator-demodb' )
15
- testRuntimeOnly project(' :hoptimator-kafka' )
16
- testRuntimeOnly project(' :hoptimator-venice' )
17
15
18
16
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'
21
19
testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
22
20
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
23
21
}
24
22
25
23
test {
26
- useJUnitPlatform {
24
+ useJUnitPlatform {
27
25
excludeTags ' integration'
28
26
}
29
- testLogging {
30
- events " passed" , " skipped" , " failed"
31
- }
27
+ testLogging {
28
+ events " passed" , " skipped" , " failed"
29
+ }
32
30
}
33
31
34
32
tasks. register(' intTest' , Test ) {
@@ -45,3 +43,48 @@ tasks.register('intTest', Test) {
45
43
events " passed" , " skipped" , " failed"
46
44
}
47
45
}
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