File jdbi.spec of Package jdbi

#
# spec file for package jdbi
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           jdbi
Version:        3.38.2
Release:        0
Summary:        Convenient tabular data access in Java
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://jdbi.org/
Source0:        https://github.com/jdbi/jdbi/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  immutables
BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.fasterxml.jackson:jackson-bom:pom:)
BuildRequires:  mvn(com.google.code.findbugs:annotations)
BuildRequires:  mvn(com.squareup:javapoet)
BuildRequires:  mvn(io.leangen.geantyref:geantyref)
BuildRequires:  mvn(io.vavr:vavr)
BuildRequires:  mvn(javax.persistence:persistence-api)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(org.antlr:antlr4-maven-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.freemarker:freemarker)
BuildRequires:  mvn(org.immutables:value)
BuildRequires:  mvn(org.inferred:freebuilder)
BuildRequires:  mvn(org.junit:junit-bom:pom:)
BuildRequires:  mvn(org.locationtech.jts:jts-core)
BuildRequires:  mvn(org.postgresql:postgresql)
BuildArch:      noarch

%description
The Jdbi library provides convenient, idiomatic access to relational databases
in Java.

Jdbi is built on top of JDBC. If your database has a JDBC driver, you can use
Jdbi with it.

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%pom_remove_parent internal/{build,policy}

%pom_disable_module caffeine-cache cache
%pom_disable_module kotlin
%pom_disable_module kotlin-sqlobject
%pom_disable_module moshi
%pom_disable_module spring5
%pom_disable_module testing
%pom_disable_module testcontainers
%pom_disable_module benchmark
%pom_disable_module docs
%pom_disable_module examples

%pom_remove_plugin :maven-checkstyle-plugin internal/build
%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin internal/build
%pom_remove_plugin com.github.ekryd.sortpom:sortpom-maven-plugin internal/build
%pom_remove_plugin org.basepom.maven:inline-maven-plugin internal/build core
%pom_remove_plugin org.codehaus.mojo:flatten-maven-plugin bom
%pom_remove_plugin org.jetbrains.kotlin:kotlin-maven-plugin internal/build
%pom_remove_plugin org.asciidoctor:asciidoctor-maven-plugin internal/build
%pom_remove_plugin org.jetbrains.dokka:dokka-maven-plugin internal/build

%pom_remove_dep org.testcontainers:testcontainers-bom internal/build
%pom_remove_dep com.github.spotbugs:spotbugs-annotations internal/build core jackson2 postgis postgres

%pom_add_dep com.google.code.findbugs:annotations core

%build
%{mvn_build} -f -- -Dmaven.compiler.{source,target}=8

%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license LICENSE
%doc {README,CONTRIBUTORS,CONTRIBUTING,RELEASE_NOTES}.md

%files javadoc -f .mfiles-javadoc
%license LICENSE

%changelog
openSUSE Build Service is sponsored by