Skip to content

Commit 161d68e

Browse files
authored
Merge pull request #4 from mercyblitz/dev-1.x
Adapt Hibernate APIs, update CI workflows, and enhance README
2 parents f40f186 + e591b83 commit 161d68e

24 files changed

Lines changed: 246 additions & 1687 deletions

File tree

.github/scripts/generate-wiki-docs.py

Lines changed: 0 additions & 831 deletions
This file was deleted.

.github/workflows/maven-build.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,25 @@ permissions:
1313

1414
on:
1515
push:
16-
branches: [ 'main' , 'dev' ]
16+
branches: [ 'dev-1.x' ]
1717
pull_request:
18-
branches: [ 'main', 'dev' , 'release' ]
18+
branches: [ 'dev-1.x' , 'release-1.x' ]
1919

2020
jobs:
2121
build:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
java: [ '17' , '21' , '25' ]
26-
maven-profile-spring-cloud: [ 'spring-cloud-2022' , 'spring-cloud-2023' , 'spring-cloud-2024' ,
27-
'spring-cloud-2025' ]
28-
maven-hibernate: [ 'hibernate-7.3' , 'hibernate-7.2' , 'hibernate-7.1' , 'hibernate-7.0' ,
29-
'hibernate-6.6' , 'hibernate-6.5' , 'hibernate-6.4' , 'hibernate-6.3' ,
30-
'hibernate-6.2'
31-
]
25+
java: [ '8', '11' , '17' , '21' , '25' ]
26+
maven-profile-spring-cloud: [ 'spring-cloud-hoxton' , 'spring-cloud-2020' , 'spring-cloud-2021' ]
27+
maven-hibernate: [ 'hibernate-5.6' , 'hibernate-5.5' , 'hibernate-5.4' , 'hibernate-5.3' ,
28+
'hibernate-5.2' , 'hibernate-5.1' , 'hibernate-5.0' ]
3229

3330
steps:
3431
- name: Checkout Source
3532
uses: actions/checkout@v5
3633

37-
- name: Setup JDK ${{ matrix.Java }}
34+
- name: Setup Java ${{ matrix.java }}
3835
uses: actions/setup-java@v5
3936
with:
4037
distribution: 'temurin'

.github/workflows/maven-publish.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ name: Maven Publish
1010

1111
on:
1212
push:
13-
branches: [ 'release' ]
13+
branches: [ 'release-1.x' ]
1414
workflow_dispatch:
1515
inputs:
1616
revision:
17-
description: 'The version to publish for Spring Cloud 2022+ and JDK 17+'
17+
description: 'The version to publish for Spring Cloud Hoxton to 2021'
1818
required: true
1919
default: '${major}.${minor}.${patch}'
2020

@@ -47,7 +47,6 @@ jobs:
4747
--update-snapshots
4848
--file pom.xml
4949
-Drevision=${{ inputs.revision }}
50-
-Dsurefire.useSystemClassLoader=false
5150
-Dgpg.skip=true
5251
deploy
5352
--activate-profiles publish,ci
@@ -195,16 +194,16 @@ jobs:
195194
git diff --cached --quiet && echo "No changes to commit" || \
196195
git commit -m "chore: bump version to next patch after publishing ${{ inputs.revision }}" && git push
197196
198-
- name: Merge release into main
197+
- name: Merge release-1.x into dev-1.x
199198
run: |
200199
git config user.name "github-actions[bot]"
201200
git config user.email "github-actions[bot]@users.noreply.github.com"
202-
if ! git checkout main; then
203-
echo "::error::Branch 'main' does not exist. Skipping merge."
201+
if ! git checkout dev-1.x; then
202+
echo "::error::Branch 'dev-1.x' does not exist. Skipping merge."
204203
exit 1
205204
fi
206-
if ! git merge --no-ff origin/release -m "chore: merge release into main [skip ci]"; then
207-
echo "::error::Merge conflict detected when merging release into main. Manual intervention required."
205+
if ! git merge --no-ff origin/release-1.x -m "chore: merge release-1.x into dev-1.x [skip ci]"; then
206+
echo "::error::Merge conflict detected when merging release-1.x into dev-1.x. Manual intervention required."
208207
exit 1
209208
fi
210-
git push origin main
209+
git push origin dev-1.x

.github/workflows/merge-main-to-branches.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/wiki-publish.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/microsphere-projects/microsphere-hibernate)
66
[![Maven Build](https://github.com/microsphere-projects/microsphere-hibernate/actions/workflows/maven-build.yml/badge.svg)](https://github.com/microsphere-projects/microsphere-hibernate/actions/workflows/maven-build.yml)
7-
[![Codecov](https://codecov.io/gh/microsphere-projects/microsphere-hibernate/branch/main/graph/badge.svg)](https://app.codecov.io/gh/microsphere-projects/microsphere-hibernate)
7+
[![Codecov](https://codecov.io/gh/microsphere-projects/microsphere-hibernate/branch/dev-1.x/graph/badge.svg)](https://app.codecov.io/gh/microsphere-projects/microsphere-hibernate)
88
![Maven](https://img.shields.io/maven-central/v/io.github.microsphere-projects/microsphere-hibernate.svg)
99
![License](https://img.shields.io/github/license/microsphere-projects/microsphere-hibernate.svg)
1010

@@ -47,6 +47,20 @@ pom.xml:
4747
| **0.2.x** | Compatible with Spring Cloud 2022.0.x - 2025.0.x | 0.2.0 |
4848
| **0.1.x** | Compatible with Spring Cloud Hoxton - 2021.0.x | 0.1.0 |
4949

50+
### Compatibility
51+
52+
| **Branch 0.2.x** | **Min Version** | **Max Version** |
53+
|--------------------|-----------------|-----------------|
54+
| **JDK** | 17 | 25 |
55+
| **Spring Cloud** | 2022.0.x | 2025.0.x |
56+
| **Hibernate Core** | 6.2.x | 7.3.x |
57+
58+
| **Branch 0.1.x** | **Min Version** | **Max Version** |
59+
|--------------------|-----------------|-----------------|
60+
| **JDK** | 8 | 25 |
61+
| **Spring Cloud** | Hoxton | 2021.0.x |
62+
| **Hibernate Core** | 5.0.x | 5.6.x |
63+
5064
## Building from Source
5165

5266
You don't need to build from source unless you want to try out the latest code or contribute to the project.

microsphere-hibernate-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
<!-- Hibernate -->
3737
<dependency>
38-
<groupId>org.hibernate.orm</groupId>
38+
<groupId>org.hibernate</groupId>
3939
<artifactId>hibernate-core</artifactId>
4040
<optional>true</optional>
4141
</dependency>

0 commit comments

Comments
 (0)