moby-names-generator-parent

Java Version of the famous Moby (Docker) Names Generator

License

License

GroupId

GroupId

info.schnatterer.moby-names-generator
ArtifactId

ArtifactId

moby-names-generator-parent
Last Version

Last Version

20.10.1-r0
Release Date

Release Date

Type

Type

pom
Description

Description

moby-names-generator-parent
Java Version of the famous Moby (Docker) Names Generator
Project URL

Project URL

https://github.com/schnatterer/moby-names-generator-java
Project Organization

Project Organization

github/schnatterer
Source Code Management

Source Code Management

https://github.com/schnatterer/moby-names-generator-java.git

Download moby-names-generator-parent

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • processor
  • moby-names-generator
  • example-java9
  • example-java8

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
19.03.8-r0
19.03.6-r1
19.03.6-r0