Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
20 changes: 20 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto Assign
on:
issues:
types: [opened, reopened]
pull_request:
types: [opened, reopened]
jobs:
run:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: shortthirdman
numOfAssignee: 1
allowSelfAssign: true
91 changes: 91 additions & 0 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Maven Release

on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release version'
required: true
developmentVersion:
description: 'Next development version'
required: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Configure Git user
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"

- name: Generate Changelog
run: mvn git-changelog-maven-plugin:git-changelog

- name: Commit Changelog
run: |
git add CHANGELOG.md
git commit -m "docs: update changelog for version ${{ github.event.inputs.releaseVersion }}"
git push origin main

- name: Setup Maven settings.xml
uses: s4u/[email protected]
with:
servers: |
[{
"id": "github",
"username": "${{ github.actor }}",
"password": "${{ secrets.RELEASE_TOKEN }}"
}]

- name: Prepare Release
run: |
set -e
mvn release:prepare \
-DreleaseVersion=${{ github.event.inputs.releaseVersion }} \
-DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} \
-DtagNameFormat=v@{project.version}

- name: Perform Release
run: mvn release:perform

- name: Push changes
run: |
set -e
git push origin main
git push origin --tags

- name: Get Changelog Entry
id: changelog
run: |
CHANGELOG_ENTRY=$(sed -n "/## ${GITHUB_REF#refs/tags/}/,/## /p" CHANGELOG.md | sed '$d')
echo "changelog<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG_ENTRY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ github.event.inputs.releaseVersion }}
name: Release v${{ github.event.inputs.releaseVersion }}
body: ${{ steps.changelog.outputs.changelog }}
files: |
target/*.jar
target/*.pom
draft: true
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 5 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout sources
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: |
cd primekit-essentials
mvn -B clean package -DskipTests

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
#- name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: Build with Maven
run: mvn -B clean package -DskipTests
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2025 ShortThirdMan

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# PrimeKit Essentials

[![StackShare](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](https://stackshare.io/shortthirdman-org/prime-kit)
# PrimeKit

Welcome to PrimeKit Essentials, an innovative project designed to enhance your development toolkit and streamline your workflow. Whether you're a seasoned developer or just starting out, PrimeKit Essentials offers essential functionalities that empower your development journey.

Expand Down Expand Up @@ -31,20 +29,6 @@ Your feedback and support are invaluable to us. Let's empower developers togethe
![GitHub closed issues](https://img.shields.io/github/issues-closed/shortthirdman-org/PrimeKit)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/shortthirdman-org/PrimeKit/maven.yml?branch=main)

## Tech Stack

> shortthirdman-org/PrimeKit is built on the following main stack:

- <img width='25' height='25' src='https://img.stackshare.io/service/995/K85ZWV2F.png' alt='Java'/> [Java](https://www.java.com) � Languages
- <img width='25' height='25' src='https://img.stackshare.io/service/2006/spring-framework-project-logo.png' alt='Spring Framework'/> [Spring Framework](https://spring.io/projects/spring-framework) � Frameworks (Full Stack)
- <img width='25' height='25' src='https://img.stackshare.io/service/1028/ASOhU5xJ.png' alt='PostgreSQL'/> [PostgreSQL](http://www.postgresql.org/) � Databases
- <img width='25' height='25' src='https://img.stackshare.io/service/7624/IG6D4Ro2_400x400.png' alt='Spring Data'/> [Spring Data](https://spring.io/projects/spring-data) � Database Tools
- <img width='25' height='25' src='https://img.stackshare.io/service/11563/actions.png' alt='GitHub Actions'/> [GitHub Actions](https://github.com/features/actions) � Continuous Integration
- <img width='25' height='25' src='https://img.stackshare.io/service/2020/874086.png' alt='JUnit'/> [JUnit](http://junit.org/) � Testing Frameworks

Full tech stack [here](/techstack.md)


## Community Resources

* [Release a Java Module with JReleaser to Maven Central with GitHub Actions](https://foojay.io/today/how-to-release-a-java-module-with-jreleaser-to-maven-central-with-github-actions/)
Expand All @@ -60,3 +44,4 @@ For further reference, please consider the following sections:
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.2.6/maven-plugin/reference/html/#build-image)
* [Spring Shell](https://spring.io/projects/spring-shell)

[Master Java Releases with GitHub Actions and Maven Release Plugin](https://vrnsky.medium.com/master-java-releases-with-github-actions-and-maven-release-plugin-0a6fce46a2d7)
12 changes: 12 additions & 0 deletions changelog.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

{{#tags}}
## {{name}}
{{#commits}}
* {{{messageTitle}}}
{{#messageBodyItems}}
* {{.}}
{{/messageBodyItems}}
{{/commits}}

{{/tags}}
Loading