Skip to content

Commit 62b4210

Browse files
author
Tomáš Kraus
committed
Moved snippets from POM to .adoc
Signed-off-by: Tomáš Kraus <[email protected]>
1 parent cb88923 commit 62b4210

File tree

2 files changed

+40
-66
lines changed

2 files changed

+40
-66
lines changed

docs/pom.xml

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -106,33 +106,6 @@
106106
<artifactId>helidon-microprofile-testing-testng</artifactId>
107107
<optional>true</optional>
108108
</dependency>
109-
<!-- tag::data_dependencies[] -->
110-
<dependency>
111-
<groupId>io.helidon.data</groupId>
112-
<artifactId>helidon-data</artifactId>
113-
</dependency>
114-
<dependency>
115-
<groupId>io.helidon.data.jakarta.persistence</groupId>
116-
<artifactId>helidon-data-jakarta-persistence</artifactId>
117-
</dependency>
118-
<!-- end::data_dependencies[] -->
119-
<!-- tag::data_eclipselink_dependencies[] -->
120-
<dependency>
121-
<groupId>org.eclipse.persistence</groupId>
122-
<artifactId>org.eclipse.persistence.jpa</artifactId>
123-
<scope>runtime</scope>
124-
</dependency>
125-
<dependency>
126-
<groupId>org.eclipse.persistence</groupId>
127-
<artifactId>org.eclipse.persistence.core</artifactId>
128-
<scope>runtime</scope>
129-
</dependency>
130-
<dependency>
131-
<groupId>com.mysql</groupId>
132-
<artifactId>mysql-connector-j</artifactId>
133-
<scope>runtime</scope>
134-
</dependency>
135-
<!-- end::data_eclipselink_dependencies[] -->
136109
<dependency>
137110
<groupId>org.testng</groupId>
138111
<artifactId>testng</artifactId>
@@ -202,43 +175,7 @@
202175
<compilerArgs>
203176
<arg>-Xlint:-removal</arg>
204177
</compilerArgs>
205-
<!-- tag::data_annotationProcessorPaths[] -->
206-
<annotationProcessorPaths>
207-
<path>
208-
<groupId>io.helidon.bundles</groupId>
209-
<artifactId>helidon-bundles-apt</artifactId>
210-
<version>${helidon.version}</version>
211-
</path>
212-
<path>
213-
<groupId>io.helidon.data.codegen</groupId>
214-
<artifactId>helidon-data-codegen</artifactId>
215-
<version>${helidon.version}</version>
216-
</path>
217-
<path>
218-
<groupId>io.helidon.data.jakarta.persistence</groupId>
219-
<artifactId>helidon-data-jakarta-persistence-codegen</artifactId>
220-
<version>${helidon.version}</version>
221-
</path>
222-
</annotationProcessorPaths>
223-
<!-- end::data_annotationProcessorPaths[] -->
224178
</configuration>
225-
<dependencies>
226-
<dependency>
227-
<groupId>io.helidon.bundles</groupId>
228-
<artifactId>helidon-bundles-apt</artifactId>
229-
<version>${helidon.version}</version>
230-
</dependency>
231-
<dependency>
232-
<groupId>io.helidon.data.codegen</groupId>
233-
<artifactId>helidon-data-codegen</artifactId>
234-
<version>${helidon.version}</version>
235-
</dependency>
236-
<dependency>
237-
<groupId>io.helidon.data.jakarta.persistence</groupId>
238-
<artifactId>helidon-data-jakarta-persistence-codegen</artifactId>
239-
<version>${helidon.version}</version>
240-
</dependency>
241-
</dependencies>
242179
<executions>
243180
<execution>
244181
<id>compile-snippets</id>

docs/src/main/asciidoc/includes/data.adoc

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,35 @@ include::{rootdir}/includes/dependencies.adoc[]
2929
3030
[source,xml]
3131
----
32-
include::{rootdir}/../../../pom.xml[tag=data_dependencies, indent=0]
32+
<dependency>
33+
<groupId>io.helidon.data</groupId>
34+
<artifactId>helidon-data</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>io.helidon.data.jakarta.persistence</groupId>
38+
<artifactId>helidon-data-jakarta-persistence</artifactId>
39+
</dependency>
3340
----
3441
3542
Jakarta Persistence provider (EclipseLink) and Database (MySQL) JDBC driver runtime dependencies:
3643
3744
[source,xml]
3845
----
39-
include::{rootdir}/../../../pom.xml[tag=data_eclipselink_dependencies, indent=0]
46+
<dependency>
47+
<groupId>org.eclipse.persistence</groupId>
48+
<artifactId>org.eclipse.persistence.jpa</artifactId>
49+
<scope>runtime</scope>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.eclipse.persistence</groupId>
53+
<artifactId>org.eclipse.persistence.core</artifactId>
54+
<scope>runtime</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>com.mysql</groupId>
58+
<artifactId>mysql-connector-j</artifactId>
59+
<scope>runtime</scope>
60+
</dependency>
4061
----
4162
// end::data_overview[]
4263
@@ -47,7 +68,23 @@ Entity model as well as data repository interfaces require specific annotation p
4768
4869
[source,xml]
4970
----
50-
include::{rootdir}/../../../pom.xml[tag=data_annotationProcessorPaths, indent=0]
71+
<annotationProcessorPaths>
72+
<path>
73+
<groupId>io.helidon.bundles</groupId>
74+
<artifactId>helidon-bundles-apt</artifactId>
75+
<version>${helidon.version}</version>
76+
</path>
77+
<path>
78+
<groupId>io.helidon.data.codegen</groupId>
79+
<artifactId>helidon-data-codegen</artifactId>
80+
<version>${helidon.version}</version>
81+
</path>
82+
<path>
83+
<groupId>io.helidon.data.jakarta.persistence</groupId>
84+
<artifactId>helidon-data-jakarta-persistence-codegen</artifactId>
85+
<version>${helidon.version}</version>
86+
</path>
87+
</annotationProcessorPaths>
5188
----
5289
// end::data_annotation_processor[]
5390

0 commit comments

Comments
 (0)