| <?xml version="1.0"?> |
| <!-- |
| |
| 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. |
| |
| --> |
| <project |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar</artifactId> |
| <version>3.3.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>pulsar-broker-auth-oidc</artifactId> |
| <packaging>jar</packaging> |
| <description>Open ID Connect authentication plugin for broker</description> |
| |
| <properties> |
| <jsonwebtoken.version>0.11.5</jsonwebtoken.version> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-broker-common</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>io.grpc</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.auth0</groupId> |
| <artifactId>java-jwt</artifactId> |
| <version>4.3.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.auth0</groupId> |
| <artifactId>jwks-rsa</artifactId> |
| <version>0.22.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.ben-manes.caffeine</groupId> |
| <artifactId>caffeine</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.asynchttpclient</groupId> |
| <artifactId>async-http-client</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.kubernetes</groupId> |
| <artifactId>client-java</artifactId> |
| <version>${kubernetesclient.version}</version> |
| <exclusions> |
| <!-- exclude prometheus http server since we don't export metrics from the client --> |
| <exclusion> |
| <groupId>io.prometheus</groupId> |
| <artifactId>simpleclient_httpserver</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>bcpkix-jdk18on</artifactId> |
| <groupId>org.bouncycastle</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>bcutil-jdk18on</artifactId> |
| <groupId>org.bouncycastle</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>bcprov-jdk18on</artifactId> |
| <groupId>org.bouncycastle</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt-api</artifactId> |
| <version>${jsonwebtoken.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt-impl</artifactId> |
| <version>${jsonwebtoken.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.tomakehurst</groupId> |
| <artifactId>wiremock-jre8</artifactId> |
| <version>${wiremock.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <!-- enables builds with -Dmaven.test.skip=true --> |
| <id>test-jar-dependencies</id> |
| <activation> |
| <property> |
| <name>maven.test.skip</name> |
| <value>!true</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-broker</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.gaul</groupId> |
| <artifactId>modernizer-maven-plugin</artifactId> |
| <configuration> |
| <failOnViolations>true</failOnViolations> |
| <javaVersion>8</javaVersion> |
| </configuration> |
| <executions> |
| <execution> |
| <id>modernizer</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>modernizer</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>checkstyle</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <environmentVariables> |
| <KUBECONFIG_TEMPLATE>src/test/java/resources/fakeKubeConfig.yaml</KUBECONFIG_TEMPLATE> |
| <KUBECONFIG>${project.basedir}/target/kubeconfig.yaml</KUBECONFIG> |
| </environmentVariables> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>test-compile</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.testOutputDirectory}/certificate-authority</outputDirectory> |
| <overwrite>true</overwrite> |
| <resources> |
| <resource> |
| <directory>${project.parent.basedir}/tests/certificate-authority</directory> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |