IGNITE-27985 Fixed ignite-codegen dependency scope (#12837)

diff --git a/modules/control-utility/pom.xml b/modules/control-utility/pom.xml
index b0d69b0d..378e376 100644
--- a/modules/control-utility/pom.xml
+++ b/modules/control-utility/pom.xml
@@ -48,6 +48,12 @@
 
         <dependency>
             <groupId>${project.groupId}</groupId>
+            <artifactId>ignite-codegen</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>${project.groupId}</groupId>
             <artifactId>ignite-indexing</artifactId>
             <scope>test</scope>
         </dependency>
diff --git a/modules/indexing/pom.xml b/modules/indexing/pom.xml
index d215fe3..a24ab2b 100644
--- a/modules/indexing/pom.xml
+++ b/modules/indexing/pom.xml
@@ -73,6 +73,7 @@
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>ignite-codegen</artifactId>
+            <scope>provided</scope>
         </dependency>
 
         <dependency>