Skip to content
Merged
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
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/issue-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Automatically close issue after a pull request merge
autoCloseIssue: true

# Override the source branch
defaultBranch: 'development'

#Skip branch creation based on issue label 'question'
branches:
- label: question
skip: true

# Automatically open a Pull Request
openPR: true

# Copy attributes from issue
copyIssueDescriptionToPR: true
copyIssueLabelsToPR: true
copyIssueAssigneeToPR: true
copyIssueMilestoneToPR: true
16 changes: 16 additions & 0 deletions .github/workflows/branch-on-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Branch on Issue

on:
issues:
types: [ assigned ]
pull_request:
types: [ closed ]

jobs:
create_issue_branch_job:
runs-on: ubuntu-latest
steps:
- name: Create Issue Branch
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123 changes: 123 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main, development ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, development ]
schedule:
- cron: '42 9 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- uses: actions/checkout@v6
- name: Set up Python3
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Set up OpenJDK
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 21

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2
# with:
# java-version: 17

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- run: |
echo "Run, Build Application using script"
./gradlew build -DapplicationProperties="src/test/resources/test-config/application-test.properties"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:java"

review:
name: Review Dependencies and create SBOM
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- uses: actions/checkout@v6

- name: Set up Python3
uses: actions/setup-python@v6
with:
python-version: '3.14'

- name: Set up OpenJDK
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 21

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
allow-licenses: MIT, Apache-2.0, ISC, BSD-2-Clause, 0BSD
base-ref: ${{ github.event.pull_request.base.sha || 'main' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Scan the image and upload dependency results
uses: anchore/sbom-action@v0
with:
artifact-name: image.spdx.json
dependency-snapshot: true
64 changes: 64 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: build with gradle

on:
push:
branches: [ main ]
pull_request:
branches: [ main, development ]

env:
# JDK version used for building jar file
currentBuildVersion: 21
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest, windows-latest]
# Use both LTS releases and latest one for tests
jdk: [ 21, 25 ]
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Set up OpenJDK version ...
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: ${{ matrix.jdk }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
./gradlew clean build
elif [ "$RUNNER_OS" == "macOS" ]; then
./gradlew clean build
elif [ "$RUNNER_OS" == "Windows" ]; then
./gradlew.bat clean build
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Set up OpenJDK version ...
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: ${{ env.currentBuildVersion }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle (JDK ${{ env.currentBuildVersion }})
run: ./gradlew clean check jacocoTestReport
- name: Codecov
uses: codecov/codecov-action@v5
with:
files: ./build/reports/jacoco/test/jacocoTestReport.xml #optional
21 changes: 21 additions & 0 deletions .github/workflows/publish-plugin-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish mapping-plugin-core to the Maven Central Repository
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5.1.0
with:
java-version: 21
distribution: 'zulu' # openjdk
- name: Publish package
run: ./gradlew -PbuildProfile=deploy publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_SECRET }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cp .gradle
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
Expand Down Expand Up @@ -37,4 +37,4 @@ bin/
.vscode/

### Mac OS ###
.DS_Store
.DS_Store
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/copilot.data.migration.agent.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/copilot.data.migration.ask.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/copilot.data.migration.ask2agent.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/copilot.data.migration.edit.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/gradle.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

### Added

### Fixed

### Libs

### Plugins

### Github Actions

## [0.9.0] - date 2026-01-20
First release of JsonPatch library.

[Unreleased]: https://github.com/kit-data-manager/metastore2/compare/v0.9.0...HEAD
[0.9.0]: https://github.com/kit-data-manager/metastore2/releases/tag/v0.9.0
Loading