Skip to content

Commit 3bc8918

Browse files
committed
HBX-3096: Add execution to 'exec-maven-plugin' to perform clean for the Gradle plugin subproject
- Restore '-Dmaven.repo.local' argument for the 'gradle-package' execution - Remove the unneeded dependencies section in the 'gradle/pom.xml' - Correct typo in Jenkinsfile Signed-off-by: Koen Aers <[email protected]>
1 parent db9b7fe commit 3bc8918

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

ci/release/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pipeline {
3838
)
3939
string(
4040
name: 'DEVELOPMENT_VERSION',
41-
defaultValue: '7.1.1-SNAPSHOT',
41+
defaultValue: '7.1.2-SNAPSHOT',
4242
description: 'The next version to be used after the release, e.g. 7.1.2-SNAPSHOT.',
4343
trim: true
4444
)

gradle/pom.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@
4444
<gradle.executable>./gradlew</gradle.executable>
4545
</properties>
4646

47-
<dependencies>
48-
<dependency>
49-
<groupId>org.hibernate.tool</groupId>
50-
<artifactId>hibernate-tools-orm</artifactId>
51-
</dependency>
52-
</dependencies>
53-
5447
<build>
5548
<plugins>
5649
<!-- Maven deploy is skipped on purpose as Gradle build will stage the artifact itself. -->
@@ -67,7 +60,7 @@
6760
<artifactId>exec-maven-plugin</artifactId>
6861
<executions>
6962
<execution>
70-
<id>gradle</id>
63+
<id>gradle-package</id>
7164
<phase>prepare-package</phase>
7265
<configuration>
7366
<executable>${gradle.executable}</executable>
@@ -76,6 +69,22 @@
7669
<argument>build</argument>
7770
<argument>-PprojectVersion=${project.version}</argument>
7871
<argument>-Ph2Version=${h2.version}</argument>
72+
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
73+
</arguments>
74+
</configuration>
75+
<goals>
76+
<goal>exec</goal>
77+
</goals>
78+
</execution>
79+
<execution>
80+
<id>gradle-clean</id>
81+
<phase>clean</phase>
82+
<configuration>
83+
<executable>${gradle.executable}</executable>
84+
<arguments>
85+
<argument>clean</argument>
86+
<argument>-PprojectVersion=${project.version}</argument>
87+
<argument>-Ph2Version=${h2.version}</argument>
7988
</arguments>
8089
</configuration>
8190
<goals>
@@ -112,6 +121,7 @@
112121
<argument>publishPluginMavenPublicationToStagingRepository</argument>
113122
<argument>-PprojectVersion=${project.version}</argument>
114123
<argument>-Ph2Version=${h2.version}</argument>
124+
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
115125
<argument>-PmavenStagingDirectory=${local.staging.releases.repo.url}</argument>
116126
</arguments>
117127
</configuration>

0 commit comments

Comments
 (0)