3.5.1 Service generator error when generating a data-service

Hey, Jacob.

As of Gradle 7.0 , the runtime() method was removed. To resolve this, go to the build.gradle file of the generated service and change any calls to runtime() in the dependency block to runtimeOnly(). After that, try the gradle wrapper command again.

dependencies {
    ...

    // replace this
    runtime "org.jboss.resteasy:resteasy-jackson2-provider:${versions.restEasy}"

    // with this
    runtimeOnly "org.jboss.resteasy:resteasy-jackson2-provider:${versions.restEasy}"

    ...
}

Alternatively (and likely less advisable), install an older version of Gradle where runtime() was still supported.

I hope this is helpful.

2 Likes