Skip to content

Instantly share code, notes, and snippets.

@NargiT
Last active April 8, 2019 21:17
Show Gist options
  • Save NargiT/38e8f33d17995e2e242499eead6cbb5b to your computer and use it in GitHub Desktop.
Save NargiT/38e8f33d17995e2e242499eead6cbb5b to your computer and use it in GitHub Desktop.
Microprofile

Microprofile

Sets of api for Java Enterprise Server Application, drivent by the community (wikis, gitter, google group, mailing list, blog, site...)

Relese cycle

Microprofile 1.4

released end of June 2018 needs: JEE 7

  • Config 1.3
  • Fault Tolerance 1.1
  • JWT Authentication 1.1
  • OpenTracing 1.1
  • Rest Client 1.1

Microprofile 2.0

released end of June 2018 needs: JEE8

  • Config 1.3
  • Fault Tolerance 1.1
  • JWT Authentication 1.1
  • OpenTracing 1.1
  • Rest Client 1.1

Added

  • Health Check 1.0
  • Metrics 1.1
  • OpenAPI 1.0
  • CDI 2.0
  • Common Annotations 1.3
  • JAX-RS 2.1
  • JSON-B 1.0
  • JSON-P 1.1

Microprofile 2.1

released oct 2018

  • OpenTracing 1.2 (1.1)

Microprofile 2.2

released February 2019

  • Fault Tolerance 2.0 (1.1)
  • Rest Client 1.2 (1.1)
  • OpenAPI 1.1 (1.0)
  • OpenTracing 1.3 (1.2)

Server application

  • Thorntail V2 (used to be Wildfly Swarm) -> RED HAT
  • Open Liberty -> IBM
  • WebSphere Liberty -> IBM
  • Payara -> Payara Foundation
  • TomEE -> Apache
  • Launcher -> Fujitsu
  • Hammock -> don't know

How it works

  • needs a JAVA EE Application Server
  • maven project
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.eclipse.microprofile</groupId>
            <artifactId>microprofile</artifactId>
            <version>2.2</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>org.eclipse.microprofile.health</groupId>
        <artifactId>microprofile-health-api</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>org.eclipse.microprofile.metrics</groupId>
        <artifactId>microprofile-metrics-api</artifactId>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>javax.ws.rs-api</artifactId>
        <scope>provided</scope>
    </dependency>
</dependencies>

Example git clone ssh://[email protected]/OpenLiberty/guide-microprofile-fallback.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment