diff --git a/README.md b/README.md index d578a41..0517dfc 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ In this case the IP address is one of the nodes running the distributed mode wor { "class": "com.solace.connector.kafka.connect.source.SolaceSourceConnector", "type": "source", - "version": "3.0.0" + "version": "3.0.1" }, ``` diff --git a/build.gradle b/build.gradle index 43bfff8..1f4c7ad 100644 --- a/build.gradle +++ b/build.gradle @@ -218,6 +218,16 @@ java { withSourcesJar() } +// Generate manifest.json file to be compliant with Confluent Hub client +tasks.register('generateConfluentConnectManifest', Copy) { + def templateContext = [ + "project": project.properties + ] + from 'src/template/manifest' + into "${buildDir}/generated/manifest" + expand templateContext +} + distributions { main { contents { @@ -226,6 +236,7 @@ distributions { from('doc/distribution-readme.md') { into 'doc' } from('LICENSE') { into 'doc' } from('THIRD-PARTY-LICENSES') { into 'doc' } + from(generateConfluentConnectManifest) {into ''} into('lib') { from jar from(project.configurations.runtimeClasspath) diff --git a/doc/distribution-readme.md b/doc/distribution-readme.md index 97b7754..a5fc103 100644 --- a/doc/distribution-readme.md +++ b/doc/distribution-readme.md @@ -9,3 +9,4 @@ Package directory contents: - doc: this readme and license information - lib: Source Connector jar file and dependencies - etc: sample configuration properties and JSON file +- manifest.json: manifest file for kafka-connect to be installable via confluent-hub client diff --git a/gradle.properties b/gradle.properties index f4bdd6f..67e1778 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ group=com.solace.connector.kafka.connect -version=3.0.0 \ No newline at end of file +version=3.0.1 \ No newline at end of file diff --git a/src/template/manifest/manifest.json b/src/template/manifest/manifest.json new file mode 100644 index 0000000..c44a9f4 --- /dev/null +++ b/src/template/manifest/manifest.json @@ -0,0 +1,43 @@ +{ + "component_types": [ + "source" + ], + "description": "The PubSub+ Kafka Source Connector consumes PubSub+ event broker real-time queue or topic data events and streams them to a Kafka topic as Source Records.", + "documentation_url": "https://github.com/SolaceProducts/pubsubplus-connector-kafka-source", + "features": { + "confluent_control_center_integration": false, + "kafka_connect_api": true, + "single_message_transforms": true, + "supported_encodings": [ + "any" + ] + }, + "license": [ + { + "name": "Apache License, Version 2.0", + "url": "https://github.com/SolaceProducts/pubsubplus-connector-kafka-source/blob/master/LICENSE" + } + ], + "name": "${project.name}", + "owner": { + "name": "Solace", + "type": "organization", + "url": "https://solace.community", + "username": "solace" + }, + "release_date": "${new Date().format('yyyy-MM-dd')}", + "source_url": "https://github.com/SolaceProducts/pubsubplus-connector-kafka-source", + "support": { + "provider_name": "Solace", + "summary": "", + "url": "https://github.com/SolaceProducts/pubsubplus-connector-kafka-source/issues" + }, + "tags": [ + "solace", + "kafka", + "source", + "connector" + ], + "title": "Solace PubSub+ Connector for Kafka: Source", + "version": "${project.version}" +} \ No newline at end of file