This message was deleted.
# develocity
s
This message was deleted.
f
Hi If you put this config in your
settings
file, then yes, it’s not as straightforward. See https://github.com/gradle/gradle/issues/14171 Until this is fixed, you can follow the workaround on the issue, or even something simpler:
Copy code
interface ScriptServices {
    val execOps: ExecOperations
}

gradleEnterprise {
    buildScan {
        val execOps = extensions.create<ScriptServices>("scriptServices").execOps
        background {
            // ...
        }
    }
}
The idea being to use
ExtensionContainer
instead of the
ObjectFactory
, as the former is already available in
settings
scripts, and knows how to inject the various available services.
m
thanks, might want to add that to the GE docs. 🙂