Skip to content

Commit

Permalink
Publish adapters (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannedolan authored Jun 7, 2023
1 parent 69014ae commit dfa86ed
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
30 changes: 30 additions & 0 deletions hoptimator-flink-adapter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java-library'
id 'idea'
id 'maven-publish'
}

dependencies {
Expand All @@ -14,6 +15,35 @@ dependencies {
testImplementation libs.assertj
}

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-flink-adapter'
version = System.getenv('VERSION')
from components.java
}
}
}

idea {
module {
downloadJavadoc = true
Expand Down
30 changes: 30 additions & 0 deletions hoptimator-kafka-adapter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java-library'
id 'idea'
id 'maven-publish'
}

dependencies {
Expand All @@ -16,6 +17,35 @@ dependencies {
testImplementation libs.assertj
}

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-kafka-adapter'
version = System.getenv('VERSION')
from components.java
}
}
}

idea {
module {
downloadJavadoc = true
Expand Down
30 changes: 30 additions & 0 deletions hoptimator-mysql-adapter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java-library-distribution'
id 'idea'
id 'maven-publish'
}

dependencies {
Expand All @@ -16,6 +17,35 @@ dependencies {
testImplementation libs.assertj
}

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-mysql-adapter'
version = System.getenv('VERSION')
from components.java
}
}
}

idea {
module {
downloadJavadoc = true
Expand Down

0 comments on commit dfa86ed

Please sign in to comment.