handcraftedbits-commons

Common code for HandcraftedBits projects

License

License

GroupId

GroupId

com.handcraftedbits
ArtifactId

ArtifactId

handcraftedbits-commons
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

handcraftedbits-commons
Common code for HandcraftedBits projects
Project URL

Project URL

https://github.com/handcraftedbits/handcraftedbits-commons
Project Organization

Project Organization

HandcraftedBits
Source Code Management

Source Code Management

https://github.com/handcraftedbits/handcraftedbits-commons

Download handcraftedbits-commons

How to add to project

<!-- https://jarcasting.com/artifacts/com.handcraftedbits/handcraftedbits-commons/ -->
<dependency>
    <groupId>com.handcraftedbits</groupId>
    <artifactId>handcraftedbits-commons</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.handcraftedbits/handcraftedbits-commons/
implementation 'com.handcraftedbits:handcraftedbits-commons:1.0.0'
// https://jarcasting.com/artifacts/com.handcraftedbits/handcraftedbits-commons/
implementation ("com.handcraftedbits:handcraftedbits-commons:1.0.0")
'com.handcraftedbits:handcraftedbits-commons:jar:1.0.0'
<dependency org="com.handcraftedbits" name="handcraftedbits-commons" rev="1.0.0">
  <artifact name="handcraftedbits-commons" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.handcraftedbits', module='handcraftedbits-commons', version='1.0.0')
)
libraryDependencies += "com.handcraftedbits" % "handcraftedbits-commons" % "1.0.0"
[com.handcraftedbits/handcraftedbits-commons "1.0.0"]

Dependencies

compile (4)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.3.0-alpha5
net.logstash.logback : logstash-logback-encoder jar 6.4
org.slf4j : jul-to-slf4j jar 2.0.0-alpha1
org.slf4j : slf4j-api jar 2.0.0-alpha1

runtime (2)

Group / Artifact Type Version
org.slf4j : jcl-over-slf4j jar 2.0.0-alpha1
org.slf4j : log4j-over-slf4j jar 2.0.0-alpha1

test (2)

Group / Artifact Type Version
commons-io : commons-io jar 2.8.0
org.junit.jupiter : junit-jupiter-params jar 5.7.0

Project Modules

There are no modules declared in this project.

HandcraftedBits Common Code

Common code used by HandcraftedBits projects.

Usage

Add the following dependency to your pom.xml file:

<dependency>
  <groupId>com.handcraftedbits</groupId>
  <artifactId>handcraftedbits-commons</artifactId>
  <version>1.0.1-SNAPSHOT</version>
</dependency>

To route all logging through the included Slf4j appenders, make sure to exclude the following dependencies:

<exclusion>
  <groupId>commons-logging</groupId>
  <artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-api</artifactId>
</exclusion>
<exclusion>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-core</artifactId>
</exclusion>
<exclusion>
  <groupId>log4j</groupId>
  <artifactId>log4j</artifactId>
</exclusion>

To route java.util.logging, make sure to call LogInitializer.initialize().

Versions

Version
1.0.0