GithubHelp home page GithubHelp logo

isabella232 / shipkit-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shipkit/shipkit-demo

0.0 0.0 0.0 378 KB

Example project that uses Shipkit and can be used as reference and for testing

Home Page: http://shipkit.org

License: MIT License

Java 100.00%

shipkit-demo's Introduction

CI Maven Central


Shipkit Plugins

Shipkit demo

This is a demo project that showcases release automation with Shipkit plugins. Use it as a reference to automate your project!

Overview

This project represents a development model where every change on the main development branch will produce a new release via the CI system. The release is a Maven publication (jars, poms) that get uploaded to a free public repository (Maven Central) via a free CI system (Travis). We chose Maven Central and Travis CI as examples - you can use any system of your choice (for example: JFrog Artifactory + GH Actions). The Gradle plugins we chose for this use case represent the minimum set of Gradle plugins to conveniently automate the releases.

  • the Maven publication (jars, poms) is configured using Gradle's built-in maven-publish plugin.
  • the publication to a public repository (Maven Central) is configured using gradle-nexus/publish-plugin plugin. Published versions and artifacts can be viewed in Maven Central. If you want to publish to a different repository than Maven Central, you would use a different plugin for that. For example, if you want to publish to JFrog Artifactory, you can use com.jfrog.artifactory plugin.
  • the next version for the release is deducted automatically by shipkit-auto-version plugin. This plugin is minimalistic, written for sole purpose of automated deduction of version before the release.
  • the GitHub release is performed via GH REST API by shipkit-auto-version plugin. This plugin is minimalistic, written for sole purpose of generating changelog (release notes) and performing a GH release. The releases and changelog can be viewed on GH releases page.

Implementation reference

  • Java publication (javadoc/sources jar, pom customization, signing): gradle/java-publication.gradle. Note that PGP_KEY and PGP_PWD environment variables are required for successful publications.
  • Release automation (deducting version, generating changelog, creating GitHub release via GH REST API, Sonatype/Maven Central settings): gradle/release.gradle. Note that GITHUB_TOKEN env variable is required to perform GitHub release. SONATYPE_USER and SONATYPE_PWD are required for publications to Sonatype Nexus (Maven Central).
  • CI/CD configuration: .github/workflows/ci.yml. Note that you can use any CI system.

shipkit-demo's People

Contributors

epeee avatar koral-- avatar mockitoguy avatar mstachniuk avatar nagrock avatar shestee avatar shipkit-org avatar wwilk 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.