utils
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.metabit.library.misc</groupId>
<artifactId>utils</artifactId>
<version>0.1.8</version>
</dependency><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.metabit.library.misc</groupId>
<artifactId>utils</artifactId>
<packaging>jar</packaging>
<version>0.1.8</version>
<name>metabitUtils</name>
<licenses>
<license>
<name>CC-BY-ND</name>
<url>https://creativecommons.org/licenses/by-nd/4.0/</url>
</license>
</licenses>
<description>
A bunch of utility functions.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<lombok.version>1.18.24</lombok.version>
<slf4j.version>2.0.5</slf4j.version>
<junit.version>5.9.0</junit.version>
</properties>
<dependencies>
<!-- reducing java boilerplate code -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!-- logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- test support -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- compile in a way this still works on JDK8 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<inherited>true</inherited>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<!-- Generates a source code JAR during package -->
<!-- plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin -->
<!-- Generates JavaDocs during package stage -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<!-- two lines to keep JavaDoc from getting confused by the Java 9 module-info.file. -->
<detectJavaApiLink>false</detectJavaApiLink>
<source>8</source>
<!-- implementation details - permanently not for documentation -->
<excludePackageNames>
org.metabit.platform.interfacing.jjournal.NativeJournal
:org.metabit.platform.interfacing.jnrffi.JNRFFI_SD_ID128_T
</excludePackageNames>
<top>CC-BY-ND-4.0 (c) metabit - API is subject to change</top>
</configuration>
</plugin>
<!-- for deploying to Maven Central -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<!-- for header in all .java files -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<configuration>
<header>NOTICE</header>
<aggregate>true</aggregate>
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<exclude>**/package-info.java</exclude>
</excludes>
</configuration>
</plugin>
<!-- GPL'd testing tool -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.2.3</version>
<dependencies>
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
<!-- which we do, since recent versions of "spotbugs" refuse to work with e.g. Java JDK 9 -->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.0.0</version>
<!-- <version>4.2.3</version> -->
</dependency>
</dependencies>
</plugin>
<!-- Generates a source code JAR during package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- for signing releases -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
<executable>/usr/bin/gpg</executable>
<useAgent>false</useAgent>
</configuration>
</execution>
</executions>
</plugin>
<!-- optional, instead of maven deploy -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<!-- deployment according to Sonatype -->
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<name>Sonatype Nexus Snapshots</name>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<name>Nexus Release Repository</name>
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<downloadUrl>https://github.com/meta-bit/mutils</downloadUrl>
</distributionManagement>
<developers>
<developer>
<id>jw</id>
<name>J.Wilkes</name>
<organization>metabit</organization>
<organizationUrl>https://www.metabit.com/</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:svn:https://metabit.org/software/tags/utils-0.1.8</connection>
<url>https://metabit.org/software/</url>
</scm>
<url>https://metabit.org/software/</url>
</project>