Skip to content

Commit

Permalink
Merge pull request #73 from SolaceProducts/stage-3.0.1
Browse files Browse the repository at this point in the history
3.0.1 Release
  • Loading branch information
Nephery authored Dec 13, 2023
2 parents 7531236 + e43473a commit 75e8f18
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ In this case the IP address is one of the nodes running the distributed mode wor
{
"class": "com.solace.connector.kafka.connect.sink.SolaceSinkConnector",
"type": "sink",
"version": "3.0.0"
"version": "3.0.1"
},
```

Expand Down
29 changes: 20 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ spotbugs {
reportLevel 'high' // Decrease to medium once medium errors are fixed
}

// 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
}

spotbugsIntegrationTest {
enabled = false
}
Expand Down Expand Up @@ -116,13 +126,13 @@ project.integrationTest {
maxRetries = 3
}
afterSuite { desc, result ->
if (!desc.parent)
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
if (!desc.parent)
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
}

project.test {
Expand Down Expand Up @@ -167,7 +177,7 @@ task('pmdMainSarif') {
}

Provider<RegularFile> reportsDir = project.getLayout()
.file(project.getProviders().provider({a -> extension.getReportsDir()}) as Provider<File>)
.file(project.getProviders().provider({ a -> extension.getReportsDir() }) as Provider<File>)
formatter(type: 'sarif', toFile: new File(reportsDir.get().getAsFile(), 'main.sarif'))
formatter(type: 'html', toFile: new File(reportsDir.get().getAsFile(), 'main.html'))

Expand Down Expand Up @@ -230,6 +240,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)
Expand Down Expand Up @@ -310,7 +321,7 @@ signing {

tasks.withType(Sign) {
onlyIf {
gradle.taskGraph.allTasks.any {task ->
gradle.taskGraph.allTasks.any { task ->
task.name.startsWith("publish") && task.name.contains('Sonatype')
}
}
Expand Down
3 changes: 2 additions & 1 deletion doc/distribution-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Package directory contents:

- doc: this readme and license information
- lib: Sink Connector jar file and dependencies
- etc: sample configuration properties and JSON file
- etc: sample configuration properties and JSON file
- manifest.json: manifest file for kafka-connect to be installable via confluent-hub client
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=com.solace.connector.kafka.connect
version=3.0.0
version=3.0.1
43 changes: 43 additions & 0 deletions src/template/manifest/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"component_types": [
"sink"
],
"description": "The PubSub+ Kafka Sink Connector consumes Kafka topic records and streams them to the PubSub+ Event Mesh as topic and/or queue data events.",
"documentation_url": "https://github.com/SolaceProducts/pubsubplus-connector-kafka-sink",
"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-sink/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-sink",
"support": {
"provider_name": "Solace",
"summary": "",
"url": "https://github.com/SolaceProducts/pubsubplus-connector-kafka-sink/issues"
},
"tags": [
"solace",
"kafka",
"sink",
"connector"
],
"title": "Solace PubSub+ Connector for Kafka: Sink",
"version": "${project.version}"
}

0 comments on commit 75e8f18

Please sign in to comment.