You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd "$(/stackable/patchable --images-repo-root=src checkout kafka ${PRODUCT})"
23
24
25
+
ORIGINAL_VERSION="${PRODUCT}"
26
+
NEW_VERSION="${PRODUCT}-stackable${RELEASE}"
27
+
28
+
# The comment in gradle.properties mentions to update the version in all of these files
29
+
sed -i "s/version=${ORIGINAL_VERSION}/version=${NEW_VERSION}/g" gradle.properties
30
+
sed -i "s/__version__ = '${ORIGINAL_VERSION}'/__version__ = '${NEW_VERSION}'/g" tests/kafkatest/__init__.py
31
+
sed -i 's/DEV_VERSION = KafkaVersion("'${ORIGINAL_VERSION}'/DEV_VERSION = KafkaVersion("'${NEW_VERSION}'/g' tests/kafkatest/version.py
32
+
sed -i 's/DEFAULT_FIX_VERSION = os.environ.get("DEFAULT_FIX_VERSION", "'${ORIGINAL_VERSION}'")/DEFAULT_FIX_VERSION = os.environ.get("DEFAULT_FIX_VERSION", "'${NEW_VERSION}'")/g' kafka-merge-pr.py
33
+
sed -i "s/<kafka.version>${ORIGINAL_VERSION}<\/kafka.version>/<kafka.version>${NEW_VERSION}<\/kafka.version>/g" streams/quickstart/java/src/main/resources/archetype-resources/pom.xml
34
+
sed -i "s/<version>${ORIGINAL_VERSION}<\/version>/<version>${NEW_VERSION}<\/version>/g" streams/quickstart/pom.xml
35
+
sed -i "s/<version>${ORIGINAL_VERSION}<\/version>/<version>${NEW_VERSION}<\/version>/g" streams/quickstart/java/pom.xml
36
+
24
37
# Create snapshot of the source code including custom patches
25
-
tar -czf /stackable/kafka-${PRODUCT}-src.tar.gz .
38
+
tar -czf /stackable/kafka-${NEW_VERSION}-src.tar.gz .
26
39
27
40
# TODO: Try to install gradle via package manager (if possible) instead of fetching it from the internet
28
41
# We don't specify "-x test" to skip the tests, as we might bump some Kafka internal dependencies in the future and
29
42
# it's a good idea to run the tests in this case.
30
43
./gradlew clean releaseTarGz
31
44
./gradlew cyclonedxBom
32
-
tar -xf core/build/distributions/kafka_${SCALA}-${PRODUCT}.tgz -C /stackable
0 commit comments