info.schnatterer.moby-names-generator:moby-names-generator

Java Version of the famous Moby (Docker) Names Generator

License

License

GroupId

GroupId

info.schnatterer.moby-names-generator
ArtifactId

ArtifactId

moby-names-generator
Last Version

Last Version

20.10.1-r0
Release Date

Release Date

Type

Type

jar
Description

Description

Java Version of the famous Moby (Docker) Names Generator
Project Organization

Project Organization

github/schnatterer

Download moby-names-generator

How to add to project

<!-- https://jarcasting.com/artifacts/info.schnatterer.moby-names-generator/moby-names-generator/ -->
<dependency>
    <groupId>info.schnatterer.moby-names-generator</groupId>
    <artifactId>moby-names-generator</artifactId>
    <version>20.10.1-r0</version>
</dependency>
// https://jarcasting.com/artifacts/info.schnatterer.moby-names-generator/moby-names-generator/
implementation 'info.schnatterer.moby-names-generator:moby-names-generator:20.10.1-r0'
// https://jarcasting.com/artifacts/info.schnatterer.moby-names-generator/moby-names-generator/
implementation ("info.schnatterer.moby-names-generator:moby-names-generator:20.10.1-r0")
'info.schnatterer.moby-names-generator:moby-names-generator:jar:20.10.1-r0'
<dependency org="info.schnatterer.moby-names-generator" name="moby-names-generator" rev="20.10.1-r0">
  <artifact name="moby-names-generator" type="jar" />
</dependency>
@Grapes(
@Grab(group='info.schnatterer.moby-names-generator', module='moby-names-generator', version='20.10.1-r0')
)
libraryDependencies += "info.schnatterer.moby-names-generator" % "moby-names-generator" % "20.10.1-r0"
[info.schnatterer.moby-names-generator/moby-names-generator "20.10.1-r0"]

Dependencies

provided (1)

Group / Artifact Type Version
info.schnatterer.moby-names-generator : moby-names-generator-processor jar 20.10.1-r0

test (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.5.1
org.assertj : assertj-core jar 3.15.0

Project Modules

There are no modules declared in this project.

moby-names-generator-java

Build Status Quality Gate Status Coverage Technical Debt

Java Version of the famous Moby (Docker) Names Generator.

import info.schnatterer.mobynamesgenerator.MobyNamesGenerator;

class GenerateMobyName {
    public static void main(String[] args) {
        System.out.println(MobyNamesGenerator.getRandomName());
    }
}

Also available as CLI. Screencast showcasing Docker Image

Usage

Add the latest stable version of moby-names-generator to the dependency management tool of your choice.

<dependency>
  <groupId>info.schnatterer.moby-names-generator</groupId>
  <artifactId>moby-names-generator</artifactId>
  <version>20.10.0-r0</version>
</dependency>

Maven Central

You can also get snapshot versions from our snapshot repository (for the most recent commit). To do so, add the following repo to your pom.xml or settings.xml:

<repository>
    <id>snapshots-repo</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <releases><enabled>false</enabled></releases>
    <snapshots><enabled>true</enabled></snapshots>
</repository>

Demo/CLI

There are examples for Java 8 and Java9+ (using Jigsaw/JPMS). Both implement simple command line interfaces that return a random name.

The Java 9+ example is also available as compact Docker image, built using GraalVM.

moby-names-generator on DockerHub

$ docker run --rm schnatterer/moby-names-generator
nifty_noether

Releasing

The version name looks like so, for example: 20.10.0-r0-SNAPSHOT The first part (before -r0) corresponds to the moby version. The second part r0 is zero-based and can be increase when the moby version does not change. When updating the moby version, use a snapshot first, to see if the builds still succeeds.

  • Set the version using: mvn versions:set
  • When the builds succeed, release either via
    • ./mvnw release:prepare -Darguments=pgp.skip=true Sets versions in pom.xml, commits, tags and pushes to SCM. Travis builds tag and pushes to Maven Central.
    • Or manually using mvn versions:set to set version without SNAPSHOT, then increase r and add SNAPSHOT again. Don't forget to tag. Either locally or via GitHub (signed tag!)

Versions

Version
20.10.1-r0
20.10.0-r0
19.03.12-r0
19.03.8-r0
19.03.6-r1
19.03.6-r0