diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml
index d48bca0dce302..72e7f12d466c5 100644
--- a/.github/workflows/commit-check.yml
+++ b/.github/workflows/commit-check.yml
@@ -99,6 +99,10 @@ jobs:
run: |
./mvnw test-compile -Pall-java,licenses,lgpl,checkstyle,examples,check-licenses -B -V -T 1C
+ - name: Documentation code snippets compilation check
+ run: |
+ ./mvnw -Pdocs -pl :code-snippets -am compile -B -V
+
- name: Run abandoned tests checks.
# Reuse classes from the previous step; the differing profiles otherwise trigger a full reactor recompile.
run : |
diff --git a/docs/_docs/code-snippets/java/pom.xml b/docs/_docs/code-snippets/java/pom.xml
index 3ddb1e6261008..8d29c53c65261 100644
--- a/docs/_docs/code-snippets/java/pom.xml
+++ b/docs/_docs/code-snippets/java/pom.xml
@@ -19,24 +19,26 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- org.apache.ignite
+
+
+ org.apache.ignite
+ ignite-parent-internal
+ ${revision}
+ ../../../../parent-internal/pom.xml
+
+
code-snippets
- 1.0.0-SNAPSHOT
- UTF-8
- 2.19.0-SNAPSHOT
1.0.0
${project.groupId}
ignite-core
- ${ignite.version}
${project.groupId}
ignite-log4j2
- ${ignite.version}
${project.groupId}
@@ -46,27 +48,22 @@
${project.groupId}
ignite-slf4j
- ${ignite.version}
${project.groupId}
ignite-indexing
- ${ignite.version}
${project.groupId}
ignite-spring
- ${ignite.version}
${project.groupId}
ignite-urideploy
- ${ignite.version}
${project.groupId}
ignite-zookeeper
- ${ignite.version}
${project.groupId}
@@ -103,7 +100,6 @@
${project.groupId}
ignite-opencensus
- ${ignite.version}
io.opencensus
@@ -114,49 +110,16 @@
${project.groupId}
ignite-compress
- ${ignite.version}
mysql
mysql-connector-java
- 8.0.13
+ ${mysql.connector.version}
org.junit.jupiter
junit-jupiter-api
5.6.2
-
- org.junit.jupiter
- junit-jupiter-engine
- 5.6.2
-
-
- src/main/java
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.14.1
-
- 17
- 17
-
-
-
- maven-surefire-plugin
- 3.5.4
-
-
- **/*.java
-
-
-
-
- maven-failsafe-plugin
- 3.5.4
-
-
-
diff --git a/pom.xml b/pom.xml
index 5b4ef9e6f5516..da005ab74d9bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -487,6 +487,13 @@
+
+ docs
+
+ docs/_docs/code-snippets/java
+
+
+
update-versions