From 8fb4a2948e198d64c0da04ae28f3a2b6b2781b94 Mon Sep 17 00:00:00 2001 From: hurelhuyag Date: Thu, 12 Jan 2023 18:00:52 +0800 Subject: [PATCH 1/3] enhanced profile for maven enhanced tests --- hibernate5/pom.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/hibernate5/pom.xml b/hibernate5/pom.xml index dc2382e8..5e4ea6bc 100644 --- a/hibernate5/pom.xml +++ b/hibernate5/pom.xml @@ -117,4 +117,37 @@ Hibernate (https://hibernate.org) version 5.x data types. + + + + enhanced + + + + org.hibernate.orm.tooling + hibernate-enhance-maven-plugin + 5.3.20.Final + + + enhance + test-compile + + enhance + + + ${build.testOutputDirectory} + ${build.testOutputDirectory} + true + true + true + true + false + + + + + + + + From 302a7bb48899c1ba51594cd46cde92568bcee7a1 Mon Sep 17 00:00:00 2001 From: hurelhuyag Date: Thu, 12 Jan 2023 18:25:19 +0800 Subject: [PATCH 2/3] enhanced profile for maven hibernate 6 enhanced tests --- hibernate6/pom.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/hibernate6/pom.xml b/hibernate6/pom.xml index b418024f..c79a0212 100644 --- a/hibernate6/pom.xml +++ b/hibernate6/pom.xml @@ -94,4 +94,37 @@ Hibernate (https://hibernate.org/) version 6.x with Jakarta data types. + + + + enhanced + + + + org.hibernate.orm.tooling + hibernate-enhance-maven-plugin + ${hibernate.version} + + + enhance + test-compile + + enhance + + + ${build.testOutputDirectory} + ${build.testOutputDirectory} + true + true + true + true + false + + + + + + + + From 069931f3c774b74dab00afff787eb7dc337c865c Mon Sep 17 00:00:00 2001 From: hurelhuyag Date: Thu, 12 Jan 2023 18:38:41 +0800 Subject: [PATCH 3/3] verify with enhanced profile --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 56469897..f06a2598 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,6 +44,8 @@ jobs: # gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: Build run: ./mvnw -B -q -ff -ntp verify + - name: Build With Enhancement + run: ./mvnw -Penhanced -B -q -ff -ntp verify - name: Extract project Maven version id: projectVersion run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT