Gradle 5, maven deployer: unknown property uniqueVersion

1.2k views Asked by At

I use eclipse with gradle buildship. My build.gradle contains

uploadArchives { 
    repositories {
        mavenDeployer {            
            configuration = configurations.deployerJars
            uniqueVersion = false

            repository(url: 'dav:http://...') {
                authentication(userName: '...', password: '...')
            }
            snapshotRepository(url: 'dav:http://...') {
                authentication(userName: '...', password: '...')
            }
        }
    }
}

This leads to the error message

Could not run build action using Gradle distribution
'https://services.gradle.org/distributions/gradle-5.4-bin.zip'.
...
Could not set unknown property 'uniqueVersion' for object of type 
org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer.

What can I do about it?

1

There are 1 answers

2
MikeyE On BEST ANSWER

I ran into the same error when I attempted to build an old project in Android Studio 3.4, with Android SDK version 28. The old project was built using Android Studio 2.2.3 and Android SDK version 23.

I just commented out the line uniqueVersion = False, did a clean rebuild an viola, no more errors.