Skip to content

Commit c813157

Browse files
authored
Merge pull request #49399 from mbellade/hibernate-orm-dev
Split Hibernate ORM and Search dev-only modules
2 parents 9624895 + 280a186 commit c813157

File tree

35 files changed

+211
-87
lines changed

35 files changed

+211
-87
lines changed

bom/application/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,11 @@
13191319
<artifactId>quarkus-hibernate-orm</artifactId>
13201320
<version>${project.version}</version>
13211321
</dependency>
1322+
<dependency>
1323+
<groupId>io.quarkus</groupId>
1324+
<artifactId>quarkus-hibernate-orm-dev</artifactId>
1325+
<version>${project.version}</version>
1326+
</dependency>
13221327
<dependency>
13231328
<groupId>io.quarkus</groupId>
13241329
<artifactId>quarkus-hibernate-orm-deployment-spi</artifactId>
@@ -1534,6 +1539,11 @@
15341539
<artifactId>quarkus-hibernate-search-orm-elasticsearch</artifactId>
15351540
<version>${project.version}</version>
15361541
</dependency>
1542+
<dependency>
1543+
<groupId>io.quarkus</groupId>
1544+
<artifactId>quarkus-hibernate-search-orm-elasticsearch-dev</artifactId>
1545+
<version>${project.version}</version>
1546+
</dependency>
15371547
<dependency>
15381548
<groupId>io.quarkus</groupId>
15391549
<artifactId>quarkus-hibernate-search-orm-elasticsearch-deployment</artifactId>
@@ -1554,6 +1564,11 @@
15541564
<artifactId>quarkus-hibernate-search-standalone-elasticsearch</artifactId>
15551565
<version>${project.version}</version>
15561566
</dependency>
1567+
<dependency>
1568+
<groupId>io.quarkus</groupId>
1569+
<artifactId>quarkus-hibernate-search-standalone-elasticsearch-dev</artifactId>
1570+
<version>${project.version}</version>
1571+
</dependency>
15571572
<dependency>
15581573
<groupId>io.quarkus</groupId>
15591574
<artifactId>quarkus-hibernate-search-standalone-elasticsearch-deployment</artifactId>

extensions/hibernate-orm/deployment/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
<groupId>io.quarkus</groupId>
2222
<artifactId>quarkus-hibernate-orm</artifactId>
2323
</dependency>
24+
<dependency>
25+
<groupId>io.quarkus</groupId>
26+
<artifactId>quarkus-hibernate-orm-dev</artifactId>
27+
</dependency>
2428
<dependency>
2529
<groupId>io.quarkus</groupId>
2630
<artifactId>quarkus-hibernate-orm-deployment-spi</artifactId>

extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
import io.quarkus.hibernate.orm.deployment.integration.HibernateOrmIntegrationStaticConfiguredBuildItem;
114114
import io.quarkus.hibernate.orm.deployment.spi.AdditionalJpaModelBuildItem;
115115
import io.quarkus.hibernate.orm.deployment.spi.DatabaseKindDialectBuildItem;
116+
import io.quarkus.hibernate.orm.dev.HibernateOrmDevIntegrator;
116117
import io.quarkus.hibernate.orm.runtime.HibernateOrmRecorder;
117118
import io.quarkus.hibernate.orm.runtime.HibernateOrmRuntimeConfig;
118119
import io.quarkus.hibernate.orm.runtime.PersistenceUnitUtil;
@@ -125,7 +126,6 @@
125126
import io.quarkus.hibernate.orm.runtime.config.DialectVersions;
126127
import io.quarkus.hibernate.orm.runtime.customized.FormatMapperKind;
127128
import io.quarkus.hibernate.orm.runtime.customized.JsonFormatterCustomizationCheck;
128-
import io.quarkus.hibernate.orm.runtime.dev.HibernateOrmDevIntegrator;
129129
import io.quarkus.hibernate.orm.runtime.graal.RegisterServicesForReflectionFeature;
130130
import io.quarkus.hibernate.orm.runtime.integration.HibernateOrmIntegrationStaticDescriptor;
131131
import io.quarkus.hibernate.orm.runtime.migration.MultiTenancyStrategy;

extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/dev/HibernateOrmDevUIProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import io.quarkus.agroal.spi.JdbcInitialSQLGeneratorBuildItem;
66
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
77
import io.quarkus.arc.processor.DotNames;
8-
import io.quarkus.deployment.IsDevelopment;
8+
import io.quarkus.deployment.IsLocalDevelopment;
99
import io.quarkus.deployment.annotations.BuildProducer;
1010
import io.quarkus.deployment.annotations.BuildStep;
1111
import io.quarkus.deployment.annotations.BuildSteps;
@@ -15,11 +15,11 @@
1515
import io.quarkus.hibernate.orm.deployment.HibernateOrmConfig;
1616
import io.quarkus.hibernate.orm.deployment.HibernateOrmEnabled;
1717
import io.quarkus.hibernate.orm.deployment.PersistenceUnitDescriptorBuildItem;
18+
import io.quarkus.hibernate.orm.dev.HibernateOrmDevInfoCreateDDLSupplier;
19+
import io.quarkus.hibernate.orm.dev.ui.HibernateOrmDevJsonRpcService;
1820
import io.quarkus.hibernate.orm.runtime.PersistenceUnitUtil;
19-
import io.quarkus.hibernate.orm.runtime.dev.HibernateOrmDevInfoCreateDDLSupplier;
20-
import io.quarkus.hibernate.orm.runtime.dev.HibernateOrmDevJsonRpcService;
2121

22-
@BuildSteps(onlyIf = { HibernateOrmEnabled.class, IsDevelopment.class })
22+
@BuildSteps(onlyIf = { HibernateOrmEnabled.class, IsLocalDevelopment.class })
2323
public class HibernateOrmDevUIProcessor {
2424

2525
@BuildStep

extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/dev/HibernateOrmDevInfoServiceTestResource.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
import jakarta.ws.rs.core.MediaType;
1111

1212
import io.quarkus.hibernate.orm.runtime.PersistenceUnitUtil;
13-
import io.quarkus.hibernate.orm.runtime.dev.HibernateOrmDevController;
14-
import io.quarkus.hibernate.orm.runtime.dev.HibernateOrmDevInfo;
1513

1614
@Path("/dev-info")
1715
public class HibernateOrmDevInfoServiceTestResource {

extensions/hibernate-orm/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<module>deployment-spi</module>
1818
<module>deployment</module>
1919
<module>runtime</module>
20+
<module>runtime-dev</module>
2021
</modules>
2122

2223
<build>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>quarkus-hibernate-orm-parent</artifactId>
7+
<groupId>io.quarkus</groupId>
8+
<version>999-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>quarkus-hibernate-orm-dev</artifactId>
13+
<name>Quarkus - Hibernate ORM - Runtime - Dev mode</name>
14+
<description>Define your persistent model with Hibernate ORM and Jakarta Persistence - Dev Mode only</description>
15+
<dependencies>
16+
<dependency>
17+
<groupId>io.quarkus</groupId>
18+
<artifactId>quarkus-hibernate-orm</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>io.quarkus</groupId>
22+
<artifactId>quarkus-devui</artifactId>
23+
<optional>true</optional>
24+
</dependency>
25+
<dependency>
26+
<groupId>com.fasterxml.jackson.core</groupId>
27+
<artifactId>jackson-annotations</artifactId>
28+
</dependency>
29+
</dependencies>
30+
</project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.quarkus.hibernate.orm.runtime.dev;
1+
package io.quarkus.hibernate.orm.dev;
22

33
import java.io.PrintWriter;
44
import java.io.StringWriter;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.quarkus.hibernate.orm.runtime.dev;
1+
package io.quarkus.hibernate.orm.dev;
22

33
import java.util.ArrayList;
44
import java.util.Collection;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.quarkus.hibernate.orm.runtime.dev;
1+
package io.quarkus.hibernate.orm.dev;
22

33
import java.util.Collection;
44
import java.util.Objects;

0 commit comments

Comments
 (0)