/* * 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. */ apply plugin: 'java-library' description = 'JWT / OpenID Connect / OAuth2 authentication plugin' // This is a hacky way to use permitTestUnusedDeclared with bom declared dependencies. // See https://github.com/gradle-dependency-analyze/gradle-dependency-analyze/issues/108 configurations { constraintsOnly permitTestUnusedDeclared.extendsFrom constraintsOnly implementation.extendsFrom constraintsOnly } dependencies { constraintsOnly(platform("com.fasterxml.jackson:jackson-bom")) implementation project(':solr:core') implementation project(':solr:solrj') implementation 'org.bitbucket.b_c:jose4j' implementation 'io.dropwizard.metrics:metrics-core' implementation 'org.apache.httpcomponents:httpclient' implementation 'org.apache.httpcomponents:httpcore' implementation 'org.eclipse.jetty:jetty-client' implementation 'org.eclipse.jetty:jetty-http' implementation 'org.eclipse.jetty.toolchain:jetty-servlet-api' implementation 'com.google.guava:guava' implementation 'org.slf4j:slf4j-api' testImplementation project(':solr:test-framework') testImplementation 'org.apache.lucene:lucene-test-framework' testImplementation 'junit:junit' testImplementation('org.mockito:mockito-core', { exclude group: "net.bytebuddy", module: "byte-buddy-agent" }) testRuntimeOnly('org.mockito:mockito-subclass', { exclude group: "net.bytebuddy", module: "byte-buddy-agent" }) testImplementation('no.nav.security:mock-oauth2-server', { exclude group: "io.netty", module: "netty-all" }) // required by mock-oauth2-server testImplementation 'com.fasterxml.jackson.core:jackson-databind' permitTestUnusedDeclared 'com.fasterxml.jackson.core:jackson-databind' testImplementation 'org.bouncycastle:bcpkix-jdk18on' testImplementation 'org.bouncycastle:bcprov-jdk18on' testImplementation 'com.nimbusds:nimbus-jose-jwt' testImplementation 'com.squareup.okhttp3:mockwebserver' testImplementation 'com.squareup.okhttp3:okhttp' testRuntimeOnly 'io.netty:netty-codec-http' }