3

SpringBoot comes with a lot of dependencies plus default versions for them. In groovy-gradle, such dependency versions can be overridden with:

ext['mockito.version'] = '1.7.5'

But this doesn't work for the kotlin-dsl. I tried:

val mockito by extra { "2.12.0" }
val mockito.version by extra { "2.12.0" }
val `mockito.version` by extra { "2.12.0" }

The latter two, don't compile, the first one, isn't doing the job.

How can the version be overridden within the kotlin file (I don't want to create a separate properties file if it is somehow possible).

0

1 Answer 1

8

Try extra["mockito.version"] = "1.7.5"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.