prevent expansion of references in gradle build file
已回答
I have a block like this in my gradle build file:
repositories {
maven {
url "${url}"
authentication {
basic(BasicAuthentication)
}
}
}
but the reference to BasicAuthentication keeps expanding to
sun.net.www.protocol.http.BasicAuthentication
when I'm making modifications to the build, which then breaks my build.
Is there a way to prevent the expansion of BasicAuthentication?
请先登录再写评论。
What are your settings for Groovy imports? Try disabling the options to use fully qualified class names:
Thanks for your suggestion but upon checking my settings they are as above.
It does however appear to have stopped now and I'm not sure which combination of the following has stopped the behaviour:
1. mark the file as plain text - then switch it back again
2. switch off groovy intentions