I just tried to upgrade to gradle 6.0 (from 5.6.3)...
# gradle
e
I just tried to upgrade to gradle 6.0 (from 5.6.3). Now this code in
settings.gradle
fails with “Unresolved reference: artifactoryUsername”:
Copy code
val artifactoryUsername: String by settings
val artifactoryPassword: String by settings

pluginManagement {
	repositories {
		maven(url = "<https://artifacts.company.com/artifactory/gradle-plugins-proxy>") {
			credentials {
				username = artifactoryUsername
				password = artifactoryPassword
			}
		}
	}
}
Every developer has these properties set in their ~/.gradle/gradle.properties Any ideas?
e
Thanks a lot! I have to read the notes more carefully. I just moved the property declarations into the pluginManagement block and now it works.
(next problem is that PMD step fails now - will look into that)