Skip to content

Commit

Permalink
Manifest to contain implementation version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
robvadai authored Jan 6, 2025
1 parent 845547b commit bd9f7fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ integration-test:

.PHONY: build # Builds artifacts
build:
@./gradlew clean build
@./gradlew clean build -Pversion=$(VERSION)

.PHONY: static-analysis # Analyzes the build
static-analysis:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This connector helps with that use case.

Use the version of your choice.

e.g. `curl -O https://repo1.maven.org/maven2/com/segence/kafka/connect/kafka-connect-kafka/0.1.0-dev.4/kafka-connect-kafka-0.1.0-dev.4.jar`
e.g. `curl -O https://repo1.maven.org/maven2/com/segence/kafka/connect/kafka-connect-kafka/0.1.0-dev.6/kafka-connect-kafka-0.1.0-dev.6.jar`

2. Copy it under the CLASSPATH of the Kafka Connect installation so that the plugin can be loaded.

Expand Down
8 changes: 8 additions & 0 deletions gradle/java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}

jar {
manifest {
attributes(
'Implementation-Version': version
)
}
}

test {
useJUnitPlatform {
testLogging {
Expand Down

0 comments on commit bd9f7fe

Please sign in to comment.