You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Timothee Maret (Jira)" <ji...@apache.org> on 2022/04/29 11:47:00 UTC

[jira] [Created] (SLING-11290) Content Distribution Journal Kafka module should build Java 8 module

Timothee Maret created SLING-11290:
--------------------------------------

             Summary: Content Distribution Journal Kafka module should build Java 8 module 
                 Key: SLING-11290
                 URL: https://issues.apache.org/jira/browse/SLING-11290
             Project: Sling
          Issue Type: Task
            Reporter: Timothee Maret


The module compiles to a Java 11 target since this [commit|https://github.com/apache/sling-org-apache-sling-distribution-journal-kafka/commit/2f9ae2bcdaeeda69acd62621e2991962f018412e] part of SLING-11037. Java 11 classes are not compatible with the journal.it module and break the tests with 

{code}
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.16:check (default) on project org.apache.sling.distribution.journal.it: Failed to check signatures:  failed to process jar /Users/tmaret/.m2/repository/org/apache/sling/org.apache.sling.distribution.journal.kafka/0.3.0/org.apache.sling.distribution.journal.kafka-0.3.0.jar : Bad class file /Users/tmaret/.m2/repository/org/apache/sling/org.apache.sling.distribution.journal.kafka/0.3.0/org.apache.sling.distribution.journal.kafka-0.3.0.jar:org/apache/sling/distribution/journal/kafka/CLSwitch.class: IllegalArgumentException -> [Help 1]
{code}

We should either migrate all the Content Distribution bundles to Java 11 or none. Migrating is a larger effort that should be tracked independently. At this point, there's no need to use Java 11, so this issue is about compiling to the default Java version. This will also unblock the effort to update the journal.it bundle to the latest Sling parent tracked in SLING-11289.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)