Skip to content

GrayRaccoon/Web-Utils

Repository files navigation

Web-Utils

A Simple Spring Web Utils Maven Project for building Spring Cloud based MicroServices.

Build Status Release

Artifacts

  • Web-Utils: Spring Web Commons Configuration library.
  • Web-Utils-Test: Spring Web Commons Test Utilities library.
  • Cloud-Svc-Parent-No-Persistence: Spring Cloud Pom Project Parent With Common Dependencies.
  • Cloud-Svc-Parent: Spring Cloud Pom Project Parent With Common Dependencies including Jpa.

Build Library

mvn compile

Test Code and Generate JUnit+Jacoco reports.

mvn compile verify

Importing into your project

You can directly import Web-Utils as dependency or use Cloud-Svc-Parent or Cloud-Svc-Parent-No-Persistence as parent project (that already include web-utils and web-utils-test).

Importing Web-Utils as dependency in pom.xml

<project>
    <properties>
        <web-utils.version>0.2.16-SNAPSHOT</web-utils.version>
    </properties>
    
    <dependencies>
        <dependency>
            <groupId>com.grayraccoon.Web-Utils</groupId>
            <artifactId>web-utils</artifactId>
            <version>${web-utils.version}</version>
        </dependency>

        <dependency>
            <groupId>com.grayraccoon.Web-Utils</groupId>
            <artifactId>web-utils-test</artifactId>
            <version>${web-utils.version}</version>
        </dependency>
    </dependencies>
    
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <name>JitPack</name>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
</project>

Use Cloud-Svc-Parent-No-Persistence as parent project in pom.xml

<project>

    <parent>
        <groupId>com.grayraccoon.Web-Utils</groupId>
        <artifactId>cloud-svc-parent-no-persistence</artifactId>
        <version>0.2.16-SNAPSHOT</version>
        <relativePath/>
    </parent>
    
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <name>JitPack</name>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
</project>

Use Cloud-Svc-Parent as parent project in pom.xml

<project>

    <parent>
        <groupId>com.grayraccoon.Web-Utils</groupId>
        <artifactId>cloud-svc-parent</artifactId>
        <version>0.2.16-SNAPSHOT</version>
        <relativePath/>
    </parent>
    
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <name>JitPack</name>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
</project>

Adding Cloud-Svc-Parent-No-Persistence as parent project will add Web-Utils and Web-Utils-test dependencies to your project but also will add some common dependencies for Spring Cloud projects. Cloud-Svc-Parent does the same but also imports jpa, flyway, h2.

It works for me since I use those dependencies in my cloud service projects. Use it if you don't have any problem on having those dependencies in your classpath, otherwise import only web-utils dependency.

About

A Simple Spring Web Utils Maven Project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •