An open API service indexing awesome lists of open source software.

https://github.com/mrgraversen/trunk

Trunk is an opinionated Java library consisting of classes I find useful for general purpose development.
https://github.com/mrgraversen/trunk

Last synced: 12 months ago
JSON representation

Trunk is an opinionated Java library consisting of classes I find useful for general purpose development.

Awesome Lists containing this project

README

          

# Trunk
[![](https://jitpack.io/v/MrGraversen/Trunk.svg)](https://jitpack.io/#MrGraversen/Trunk)
[![Codeship Status for MrGraversen/Trunk](https://app.codeship.com/projects/8b089450-0ba0-0136-744c-56d424be27fe/status?branch=master)](https://app.codeship.com/projects/281908)

A growing collection of classes I've written and found useful in any degree. I'm (going to be) using this as a base toolbox for most projects; perhaps you may find it of use as well.

## Installation

You may use JitPack to install this from the GitHub releases.
Add the following to your `pom.xml` if using Maven (click the little JitPack badge for other build systems):

```


jitpack.io
https://jitpack.io

```

```

com.github.MrGraversen
Trunk
LATEST

```

## Packages

### `console`
Utilities related to console in- and output.

### `fx`
Helps mending some JavaFX pain.

### `hardware`
Handles aggregation of hardware-related information, using the [OSHI project](https://github.com/oshi/oshi).

### `hashing`
Some wrappers of the `java.security` functionality.

### `instrumentation`
Measure code execution with simple instrumentation.

### `io`
Anything related to IO; also serialisation. Wrapping of `java.nio` to allow for more ease-of-use.

#### `serialization`
Exposing JSON, XML, and YAML serialization using Google GSON and Jackson.

### `mapper`
Opinionated packaging of `org.modelmapper`, with additional util.

### `network`
Utilities for aiding web frameworks etc.

### `objects`
Additional helpers for working with common types.

### `os`
*"Write once, run anywhere"* - but provide no easy way of determining the underlying operating system. That's fixed now.

### `password`
Password generator utils, also exposes password strength estimation using [Dropbox' Low-Budget Password Strength Estimation algorithms](https://github.com/dropbox/zxcvbn).

Also has BCrypt functionality, including an check-and-update method, for all your Moore's law scalability needs!

### `random`
Generate random stuff, even using `/dev/urandom` if you're on \*nix systems!

### `reflection`
Tools related to Java reflection techniques.

### `sql`
Lessening the pain of working with connection strings etc.

## Dependencies

This module also serves as a easy way of bundling together commonly-used dependencies, such as:

* org.mindrot.jbcrypt
* com.google.code.gson.gson
* org.apache.commons.commons-lang3
* commons-codec.commons-codec
* com.google.guava
* org.modelmapper

Uses JUnit 5.