Beangle Code Style Maven Plugin

Beangle provides agile development scaffold and toolkits.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.beangle.style
ArtifactId

ArtifactId

style-maven-plugin
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Beangle Code Style Maven Plugin
Beangle provides agile development scaffold and toolkits.
Project URL

Project URL

http://beangle.github.io
Project Organization

Project Organization

The Beangle Software

Download style-maven-plugin

How to add to project

<plugin>
    <groupId>org.beangle.style</groupId>
    <artifactId>style-maven-plugin</artifactId>
    <version>0.0.2</version>
</plugin>

Dependencies

compile (6)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.0
org.apache.maven : maven-artifact jar 3.6.0
org.apache.maven : maven-core jar 3.6.0
org.scala-lang : scala-library jar 2.12.13
org.scala-lang : scala-reflect jar 2.12.13
org.beangle.style : beangle-style-core_2.12 jar 0.0.2

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3

Project Modules

There are no modules declared in this project.

style

检查和格式化源代码中的空白元素,使之符合如下要求:

  1. 使用空格代替tab缩进
  2. 每行源代码不能使用空格结尾
  3. 每个源文件需要使用空行结尾
  4. 源文件需要在头部声明许可证

1. maven

使用maven时,声明在pom.xml中的plugins元素中,用以在打包环节进行检查,格式是否符合要求。

<plugin>
  <groupId>org.beangle</groupId>
  <artifactId>style-maven-plugin</artifactId>
  <version>0.0.1</version>
  <executions>
    <execution>
      <goals>
        <goal>ws-check</goal>
      </goals>
    </execution>
  </executions>
</plugin>

2. sbt

使用sbt构建时,在project/plugins.sbt中添加

addSbtPlugin("org.beangle.style" % "sbt-beangle-style" % "0.0.1")
org.beangle.style

Beangle

Versions

Version
0.0.2
0.0.1