-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maven Central publishing configuration (#2)
* Publishing configuration * Removed comments
- Loading branch information
Showing
6 changed files
with
34 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,7 @@ plugins { | |
id 'com.github.maiflai.scalatest' version '0.32' apply false | ||
id 'org.scoverage' version '8.1' apply false | ||
id 'com.github.kt3k.coveralls' version '2.12.2' | ||
id 'maven-publish' | ||
id 'signing' | ||
id "com.vanniktech.maven.publish" version '0.30.0' | ||
} | ||
|
||
apply plugin: 'maven-publish' | ||
|
@@ -45,52 +44,35 @@ if (project.gradle.startParameter.taskNames.contains('integrationTest')) { | |
apply from: 'gradle/scala.gradle' | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
pom { | ||
name = 'Kafka Connect Kafka connector' | ||
description = 'A connector with a Kafka sink.' | ||
url = 'https://github.com/Segence/kafka-connect-kafka' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'robvadai' | ||
name = 'Rob Vadai' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
url = 'https://github.com/Segence/kafka-connect-kafka' | ||
} | ||
mavenPublishing { | ||
coordinates(project.group, project.name, version) | ||
|
||
pom { | ||
name = 'Kafka Connect Kafka connector' | ||
description = 'A connector with a Kafka sink.' | ||
inceptionYear = "2024" | ||
url = 'https://github.com/Segence/kafka-connect-kafka' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url = project.hasProperty('publishRepository') && publishRepository == 'release' ? publishReleaseRepositoryUrl : publishSnapshotRepositoryUrl | ||
credentials { | ||
username System.getenv("OSSRH_USER") | ||
password System.getenv("OSSRH_PASSWORD") | ||
developers { | ||
developer { | ||
id = 'robvadai' | ||
name = 'Rob Vadai' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
url = 'https://github.com/Segence/kafka-connect-kafka' | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
def signingKey = findProperty("signingKey") | ||
def signingPassword = findProperty("signingPassword") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.mavenJava | ||
} | ||
|
||
dependencies { | ||
compileOnly ( | ||
api ( | ||
"org.apache.kafka:connect-runtime:${kafkaVersion}", | ||
"io.confluent:kafka-schema-registry-client:${confluentVersion}", | ||
"io.confluent:kafka-avro-serializer:${confluentVersion}", | ||
|
@@ -102,7 +84,6 @@ dependencies { | |
"io.confluent:kafka-avro-serializer:${confluentVersion}", | ||
"org.slf4j:slf4j-api:${slf4jVersion}", | ||
"org.slf4j:slf4j-reload4j:${slf4jVersion}", | ||
|
||
"org.junit.jupiter:junit-jupiter-api:${junitVersion}", | ||
"org.junit.jupiter:junit-jupiter:${junitVersion}", | ||
"org.junit.platform:junit-platform-runner:${junitPlatformVersion}", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters