Mar 7, 2017

v0.3.0 Released

Hello!

POML v0.3.0 was out.

From this version, it becomes easy to use the definition of Spring Boot.
To develop the Spring Boot Web App, we can use simple poml file like this.

pkg=com.example:demo:0.0.1
parent=org.springframework.boot:spring-boot-starter-parent:1.5.1.RELEASE
depends=
  org.springframework.boot:spring-boot-starter-web
property=
  java.version: 1.8,
  project.build.sourceEncoding: UTF-8
sbp=_default

Above file is converted to following pom.xml.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1</version>

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.1.RELEASE</version>
  </parent>

  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
  </dependencies>

  <properties>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>

2 converters were added to the POML.

  1. parent: for parent tag.
  2. sbp: for spring-boot-maven-plugin.

mamorum

No comments:

Post a Comment