diff --git a/hoptimator-flink-adapter/build.gradle b/hoptimator-flink-adapter/build.gradle index 0ea6e81..86d0dc8 100644 --- a/hoptimator-flink-adapter/build.gradle +++ b/hoptimator-flink-adapter/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java-library' id 'idea' + id 'maven-publish' } dependencies { @@ -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 diff --git a/hoptimator-kafka-adapter/build.gradle b/hoptimator-kafka-adapter/build.gradle index 9401bad..5b5ac17 100644 --- a/hoptimator-kafka-adapter/build.gradle +++ b/hoptimator-kafka-adapter/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java-library' id 'idea' + id 'maven-publish' } dependencies { @@ -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 diff --git a/hoptimator-mysql-adapter/build.gradle b/hoptimator-mysql-adapter/build.gradle index 229db98..0d5d308 100644 --- a/hoptimator-mysql-adapter/build.gradle +++ b/hoptimator-mysql-adapter/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java-library-distribution' id 'idea' + id 'maven-publish' } dependencies { @@ -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