Skip to content

Commit d945aed

Browse files
phillip-krugerSanne
authored andcommitted
Introduce Dev only module for Hibernate Search Standalone Elasticsearch extension
Signed-off-by: Phillip Kruger <[email protected]>
1 parent 9687e8e commit d945aed

File tree

10 files changed

+46
-2
lines changed

10 files changed

+46
-2
lines changed

bom/application/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,11 @@
15641564
<artifactId>quarkus-hibernate-search-standalone-elasticsearch</artifactId>
15651565
<version>${project.version}</version>
15661566
</dependency>
1567+
<dependency>
1568+
<groupId>io.quarkus</groupId>
1569+
<artifactId>quarkus-hibernate-search-standalone-elasticsearch-dev</artifactId>
1570+
<version>${project.version}</version>
1571+
</dependency>
15671572
<dependency>
15681573
<groupId>io.quarkus</groupId>
15691574
<artifactId>quarkus-hibernate-search-standalone-elasticsearch-deployment</artifactId>

extensions/hibernate-search-standalone-elasticsearch/deployment/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
<groupId>io.quarkus</groupId>
3030
<artifactId>quarkus-hibernate-search-standalone-elasticsearch</artifactId>
3131
</dependency>
32+
<dependency>
33+
<groupId>io.quarkus</groupId>
34+
<artifactId>quarkus-hibernate-search-standalone-elasticsearch-dev</artifactId>
35+
</dependency>
3236
<dependency>
3337
<groupId>io.quarkus</groupId>
3438
<artifactId>quarkus-devui-deployment-spi</artifactId>

extensions/hibernate-search-standalone-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/standalone/elasticsearch/deployment/dev/HibernateSearchStandaloneDevUIProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
88
import io.quarkus.arc.processor.DotNames;
9-
import io.quarkus.deployment.IsDevelopment;
9+
import io.quarkus.deployment.IsLocalDevelopment;
1010
import io.quarkus.deployment.annotations.BuildStep;
1111
import io.quarkus.deployment.annotations.BuildSteps;
1212
import io.quarkus.deployment.annotations.Record;
@@ -18,7 +18,7 @@
1818
import io.quarkus.hibernate.search.standalone.elasticsearch.runtime.dev.HibernateSearchStandaloneDevJsonRpcService;
1919
import io.quarkus.hibernate.search.standalone.elasticsearch.runtime.dev.HibernateSearchStandaloneDevRecorder;
2020

21-
@BuildSteps(onlyIf = { HibernateSearchStandaloneEnabled.class, IsDevelopment.class })
21+
@BuildSteps(onlyIf = { HibernateSearchStandaloneEnabled.class, IsLocalDevelopment.class })
2222
public class HibernateSearchStandaloneDevUIProcessor {
2323

2424
@BuildStep

extensions/hibernate-search-standalone-elasticsearch/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
<modules>
1717
<module>deployment</module>
1818
<module>runtime</module>
19+
<module>runtime-dev</module>
1920
</modules>
2021
</project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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-search-standalone-elasticsearch-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-search-standalone-elasticsearch-dev</artifactId>
13+
<name>Quarkus - Hibernate Search - Standalone + Elasticsearch - Runtime Dev mode</name>
14+
<description>Explicitly index/search entities in Elasticsearch - Dev mode only</description>
15+
<dependencies>
16+
<dependency>
17+
<groupId>io.quarkus</groupId>
18+
<artifactId>quarkus-hibernate-search-standalone-elasticsearch</artifactId>
19+
</dependency>
20+
</dependencies>
21+
</project>

extensions/hibernate-search-standalone-elasticsearch/runtime/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@
5151
<plugin>
5252
<groupId>io.quarkus</groupId>
5353
<artifactId>quarkus-extension-maven-plugin</artifactId>
54+
<executions>
55+
<execution>
56+
<phase>process-resources</phase>
57+
<goals>
58+
<goal>extension-descriptor</goal>
59+
</goals>
60+
<configuration>
61+
<conditionalDevDependencies>
62+
<artifact>${project.groupId}:${project.artifactId}-dev:${project.version}</artifact>
63+
</conditionalDevDependencies>
64+
</configuration>
65+
</execution>
66+
</executions>
5467
</plugin>
5568
<plugin>
5669
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)