Skip to content

CASSSIDECAR-194: Deprecate Java 8 support for Sidecar Server#181

Merged
frankgh merged 5 commits intoapache:trunkfrom
frankgh:CASSSIDECAR-194
Feb 2, 2025
Merged

CASSSIDECAR-194: Deprecate Java 8 support for Sidecar Server#181
frankgh merged 5 commits intoapache:trunkfrom
frankgh:CASSSIDECAR-194

Conversation

@frankgh
Copy link
Contributor

@frankgh frankgh commented Feb 1, 2025

Patch by Francisco Guerrero; reviewed by TBD for CASSSIDECAR-194

Patch by Francisco Guerrero; reviewed by TBD for CASSSIDECAR-194
build.gradle Outdated
}

group 'org.apache.cassandra'
group 'org.apache.cassandra.sidecar'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to avoid having to declare the group whenever a new subproject is added. Avoiding the issues encountered in CASSSIDECAR-190

id 'com.github.spotbugs'
}

group 'org.apache.cassandra.sidecar'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already declared in the parent

*/

project.ext.JDK11_OPTIONS = ['-XX:-MaxFDLimit',
'-Djdk.attach.allowAttachSelf=true',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this I believe is unnecessary, but I understand this is unrelated to the PR , so I can revert if there are reservations

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think bytebuddy and mockito need the option. Let's not change it in this patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah agreed

at: dtest-jars
- run: ./scripts/install-shaded-dtest-jar-local.sh
- run: ./gradlew --no-daemon -PdtestVersion=4.1.8 -Dcassandra.sidecar.versions_to_test="4.1" integrationTestHeavyWeight --stacktrace
- run: ./gradlew build --stacktrace
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no integration test support for client so not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of java8 pipelines go away because we no longer support the Sidecar server


sourceCompatibility = 1.8
sourceCompatibility = 11
group 'org.apache.cassandra'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the server group differs from the subprojects. This doesn't change existing behavior. We declare the common group in the parent gradle (it used to be 'org.apache.cassandra') and now we explicitly declare it in the server's build.gradle file

.dataDirs(Arrays.asList(dataDirectories))
.storageDir(storageDir)
.dataDirs(List.of(dataDirectories))
.cdcDir(config.getString("cdc_raw_directory"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this cdcDir change related to dropping java8??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is to address a spotbugs issue that was missed in CASSSIDECAR-179 and is causing the build to fail


group 'org.apache.cassandra.sidecar'
version project.version
sourceCompatibility = 11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using JavaVersion.VERSION_11 like in other gradles?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I can change it

Copy link
Contributor

@yifan-c yifan-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

jobs:
# Runs java 8 tests on a docker image
# We only produce client artifacts for java 8 builds
unit_java8:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: rename to client_only_unit_java8?

@frankgh frankgh merged commit 00309bd into apache:trunk Feb 2, 2025
@frankgh frankgh deleted the CASSSIDECAR-194 branch February 2, 2025 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants