tooling/enforcer-rules/camel-quarkus-banned-dependencies.xml (40 lines of code) (raw):

<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <enforcer> <rules> <!-- Camel Quarkus specific dependency bans --> <bannedDependencies> <excludes> <exclude>com.azure:azure-core-http-netty</exclude><!-- Azure extensions should use org.apache.camel.quarkus:camel-quarkus-support-azure-core-http-client-vertx --> <exclude>com.github.fge:*</exclude><!-- Use com.github.java-json-tools:* instead --> <exclude>com.github.spotbugs:spotbugs-annotations</exclude><!-- Similar to findbugs. Not needed for compilation or at runtime --> <exclude>com.github.stephenc.jcip:jcip-annotations</exclude><!-- Should not be needed for compilation nor at runtime --> <exclude>com.google.code.findbugs:jsr305</exclude> <exclude>com.google.auto.value:auto-value-annotations</exclude> <exclude>com.sun.activation:javax.activation</exclude><!-- use jakarta.activation:jakarta.activation-api and angus-activation instead --> <exclude>com.sun.activation:jakarta.activation</exclude><!-- use jakarta.activation:jakarta.activation-api and angus-activation instead --> <exclude>com.sun.xml.bind:jaxb-core</exclude><!-- use org.glassfish.jaxb:jaxb-core instead --> <exclude>com.sun.xml.bind:jaxb-impl</exclude><!-- use org.glassfish.jaxb:jaxb-runtime instead --> <exclude>com.sun.mail:javax.mail</exclude><!-- use angus-mail and jakarta.mail:jakarta.mail-api instead --> <exclude>com.sun.mail:jakarta.mail</exclude><!-- use angus-mail and jakarta.mail:jakarta.mail-api instead --> <exclude>org.eclipse.angus:jakarta.mail</exclude><!-- org.eclipse.angus:jakarta.mail aggregates classes from angus-mail and jakarta.mail:jakarta.mail-api which we prefer to use instead --> <exclude>io.swagger.core.v3:swagger-annotations</exclude><!-- use io.swagger:swagger-annotations-jakarta instead --> <exclude>io.swagger.core.v3:swagger-core</exclude><!-- use io.swagger:swagger-core-jakarta instead --> <exclude>io.swagger.core.v3:swagger-models</exclude><!-- use io.swagger:swagger-models-jakarta instead --> <exclude>io.swagger.parser.v3:swagger-parser-v2-converter</exclude><!-- Camel does not support OpenAPI V2 --> <exclude>javax.el:el-api</exclude><!-- use jakarta.el:jakarta.el-api instead --> <exclude>javax.xml.bind:jaxb-api</exclude><!-- Use jakarta.xml.bind:jakarta.xml.bind-api instead --> <!--<exclude>javax.annotation:javax.annotation-api</exclude> has to be allowed because of Maven deps pulled through various quarkus-test-* deps --> <!--<exclude>javax.inject:javax.inject</exclude> has to be allowed because of Maven deps pulled through various quarkus-test-* deps --> <exclude>junit:junit</exclude><!-- should not be needed at all. In the worst case, use io.quarkus:quarkus-junit4-mock instead --> <exclude>org.apache.camel:camel-avro-rpc-jetty</exclude><!-- We generally avoid Spring dependencies --> <exclude>org.apache.camel:camel-directvm</exclude><!-- dismiss; the functionality is provided by JBoss Log Manager provided via quarkus-core --> <exclude>org.apache.camel:camel-spring</exclude><!-- We generally avoid Jetty dependencies --> <exclude>org.apache.geronimo.javamail:geronimo-javamail_1.4_mail</exclude><!-- use com.sun.mail:jakarta.mail instead --> <exclude>org.apache.geronimo.specs:geronimo-jms_1.1_spec</exclude><!-- use jakarta.jms:jakarta.jms-api instead --> <exclude>org.apache.geronimo.specs:geronimo-jms_2.0_spec</exclude><!-- use jakarta.jms:jakarta.jms-api instead --> <exclude>org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec</exclude><!-- use jakarta.transaction:jakarta.transaction-api instead --> <exclude>org.apache.geronimo.specs:geronimo-jta_1.1_spec</exclude><!-- use jakarta.transaction:jakarta.transaction-api instead --> <exclude>org.apache.geronimo.specs:geronimo-jta_1.2_spec</exclude><!-- use jakarta.transaction:jakarta.transaction-api instead --> <exclude>org.glassfish.main.transaction:javax.transaction</exclude><!-- use jakarta.transaction:jakarta.transaction-api instead --> <exclude>org.jetbrains.kotlin:kotlin-stdlib-common</exclude><!-- Deprecated and since Kotlin 2.1.x no JAR artifact exists and replace kotlin-stdlib compatibility is unknown --> <exclude>xml-apis:xml-apis</exclude><!-- Rely on JAXP APIs available in the JDK --> </excludes> </bannedDependencies> </rules> </enforcer>