Coder Social home page Coder Social logo

murodin / spring-hateoas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spring-projects/spring-hateoas

0.0 0.0 0.0 6.89 MB

Spring HATEOAS - Library to support implementing representations for hyper-text driven REST web services.

Home Page: https://spring.io/projects/spring-hateoas

License: Apache License 2.0

Java 98.27% Shell 0.43% Kotlin 1.29% Dockerfile 0.01%

spring-hateoas's Introduction

ga snapshot spring hateoas

icon?job=spring hateoas%2Fmain&subject=main icon?job=spring hateoas%2F1.2.x&subject=1.2 icon?job=spring hateoas%2F1.1.x&subject=1.1 icon?job=spring hateoas%2F1.0.x&subject=1.0 icon?job=spring hateoas%2F0.25.x&subject=0.25

Spring HATEOAS

This project provides some APIs to ease creating REST representations that follow the HATEOAS principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.

Working with Spring HATEOAS

Since all commits are headlined with its github issue, git will treat it as a comment. To get around this, apply the following configuration to your clone:

git config core.commentchar "/"

Making a release

  1. Create a new release (on the main branch).

    % ci/create-release.sh <release ticket without hash> <release version> <next snapshot version>
  2. With the release tagged, push the tagged version to the release branch.

    % git checkout -b release
    % git reset --hard <tag>
    % git push -f origin release
Note
You can chain the previous set of commands together using &&.

The pipeline will build and release the "release" branch. It will also build a new snapshot and stage it on artifactory. And if it’s a .RELEASE, the pipeline will push it out to Maven Central. To complete a release on Maven Central, you must login to the server shown in pom.xml, close, and release. This is a stop gap to guard against bad releases accidentally getting pushed out to Maven Central.

Running CI tasks locally

Since the pipeline uses Docker, it’s easy to:

  • Debug what went wrong on your local machine.

  • Test out a a tweak to your test.sh script before sending it out.

  • Experiment against a new image before submitting your pull request.

All of these use cases are great reasons to essentially run what Jenkins does on your local machine.

Important
To do this you must have Docker installed on your machine.
  1. docker run -it --mount type=bind,source="$(pwd)",target=/spring-hateoas-github adoptopenjdk/openjdk8:latest /bin/bash

    This will launch the Docker image and mount your source code at spring-hateoas-github.

  2. cd spring-hateoas-github

    Next, run the test.sh script from inside the container:

  3. PROFILE=none ci/test.sh

Since the container is binding to your source, you can make edits from your IDE and continue to run build jobs.

If you need to test the build.sh script, then do this:

  1. docker run -it --mount type=bind,source="$(pwd)",target=/spring-hateoas-github --mount type=bind,source="/tmp/spring-hateoas-artifactory",target=/spring-hateoas-artifactory adoptopenjdk/openjdk8:latest /bin/bash

    This will launch the Docker image and mount your source code at spring-hateoas-github and the temporary artifactory output directory at spring-hateoas-artifactory.

    Next, run the build.sh script from inside the container:

  2. ci/build.sh

Important
build.sh will attempt to push to Artifactory. If you don’t supply credentials, it will fail.
Note
Docker containers can eat up disk space fast! From time to time, run docker system prune to clean out old images.

spring-hateoas's People

Contributors

odrotbohm avatar gregturn avatar spring-builds avatar schauder avatar rolandkulcsar avatar izeye avatar dschulten avatar vpavic avatar reda-alaoui avatar luvarqpp avatar spring-operator avatar rgladwell avatar mp911de avatar laures avatar alza-bitz avatar martinotten avatar hibaymj avatar michael-wirth avatar lyca avatar patouche avatar pnowy avatar raysinnema avatar rolandkrueger avatar ronnie76er avatar sylvain-maillard avatar darklynx avatar yanwenkun avatar ericbottard avatar fiddlerpianist avatar koehnj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.