Missing dependencies for generated code

Hi,

in my backend code I want to use the validation/computation feature of the kernel. In GetA12 Login it is written, that a dynamic as well as a static approach can be used. The given example is for a dynamic service config. Since I have a big document model I want to use the static approach instead.

With the code snippet for code generation (section 6.5) I achieved to generate the java code for my document model. Now I want to integrate the code into my repo. But there are some dependencies missing and I have no idea, which A12 libs to reference in my build.gradle.

Import statements in the generated code look like the following:

import com.mgmtp.a12.kernel.core.rt._29_1.internal.core.*;

Which dependencies are needed to get the code compiled?

Cheers
Felix

hello @felix-sharp-beam,

I think you’re missing this

Please have a look on project template, we have something like

# server/app/build.gradle

    implementation(platform(a12Libs.kernel.bom))

With the a12Libs.kernel.bom defined in global settings.gradle

Hi @loi-risen-dale,

thanks for the hint. The a12Libs.kernel.bom was already in the build.gradle, but I had to add also

implementation "com.mgmtp.a12.kernel:kernel-core-runtime-29-1"
implementation "com.mgmtp.a12.kernel:kernel-core-runtime-api"

Now it works