Skip to content

tcdl/msb-java

Repository files navigation

MSB-Java Project status Coverage Status

Microservice bus - Java API. See developer guide for motivation, architecture and usage.

Required tools:

  • JDK (8 or higher)
  • Maven (version 3), main build tool

Bintray support release configuration:

If you're part of the tcdl bintray organization (https://bintray.com/tcdl) and have sufficient rights you can publish releases to bintray (https://bintray.com/tcdl/releases/msb-java/view).

For this you'll need to add a server to the servers section of your settings.xml:

<server>
  <id>bintray-msb-java</id>
  <username>[YOUR_USERNAME]</username>
  <password>[YOUR_API_TOKEN]</password>
</server>

Bintray / jcenter SNAPSHOT publishing configuration:

If you're part of the tcdl bintray organization (https://bintray.com/tcdl) and have sufficient rights you can publish snapshots to jfrog / jcenter (http://oss.jfrog.org/artifactory/simple/oss-snapshot-local/io/github/tcdl/).

For this you'll need to add a server to the servers section of your settings.xml:

<server>
  <id>oss-jfrog-msb-java</id>
  <username>[YOUR_BINTRAY_USERNAME]</username>
  <password>[YOUR_BINTRAY_API_TOKEN]</password>
</server>

Java code style

Downloadable formatting:

Eclipse: codeFormatting.xml -> Window -> Preferences -> Java -> Code Style -> Formatter -> Import

IntelliJ IDEA: Use the same formatting XML as for Eclipse and use IntelliJ IDEA 13: Importing Code Formatter Settings from Eclipse.

Additionally disable folding of imports (via '*') in Intellij IDEA. Navigate to Settings -> Editor -> Code Style -> Java -> Imports, set "Class count to use import with '*'" and "Names count to use static import with '*'" both to 1000.

How codeFormatting.xml was created:

In Eclipse: As base, use "Java Conventions [built-in]", after that apply the following:

  • Indentation / Tab policy = Spaces only
  • Indentation / Indentation size = 4
  • Indentation / Tab size = 4
  • Indentation / Indent -> all sub checkboxes checked, except for "Empty lines"
  • Line Wrapping / Maximum line width = 160
  • Line Wrapping / Never join already wrapped lines: true
  • Comments / Maximum line width for comments = 160
  • Comments / Enable block comment formatting = OFF
  • Comments / Enable line comment formatting = OFF
  • Comments / New line after @param tags = OFF
  • Comments / Never indent block comments on first column: OFF
  • Comments / Never indent line comments on first column: OFF
  • Braces / Brace positions: all "Same line"
  • White space: no changes
  • Blank lines: no changes