LINUX.ORG.RU

Как получить доступ к maven.fabric.io/public через artifactory/nexus

 , ,


0

1

Имеется build.gradle


buildscript {
    ext.kotlin_version = '1.3.50'

    repositories {
        maven { url 'http://artifactory/artifactory/repo' }
        maven { url 'http://artifactory/artifactory/remote-repos' }
        maven { url 'http://artifactory/artifactory/libs-release' }
        maven { url 'http://artifactory/artifactory/libs-snapshot' }
        maven { url 'http://artifactory/artifactory/plugins-release' }
        maven { url 'http://artifactory/artifactory/plugins-snapshot' }
        
    }
    dependencies {
        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
        classpath 'com.android.tools.build:gradle:3.5.1'
        classpath 'io.fabric.tools:gradle:1.29.0'
        classpath "io.realm:realm-gradle-plugin:5.10.0"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'net.researchgate:gradle-release:2.6.0'

    }
}

allprojects {
    repositories {
        maven { url 'http://artifactory/artifactory/repo' }
        maven { url 'http://artifactory/artifactory/remote-repos' }
        maven { url 'http://artifactory/artifactory/libs-release' }
        maven { url 'http://artifactory/artifactory/libs-snapshot' }
        maven { url 'http://artifactory/artifactory/plugins-release' }
        maven { url 'http://artifactory/artifactory/plugins-snapshot' }
    }
}

}

Он выдает ошибку. Кто-нибудь сталкивался с такой ошибкой? И как ее можно исправить?

FAILURE: Build failed with an exception.

* What went wrong:
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve io.fabric.tools:gradle:1.29.0.
     Required by:
         project :
      > Could not resolve io.fabric.tools:gradle:1.29.0.
         > Could not get resource 'http://artifactory/artifactory/repo/io/fabric/tools/gradle/1.29.0/gradle-1.29.0.pom'.
            > Could not GET 'http://artifactory/artifactory/repo/io/fabric/tools/gradle/1.29.0/gradle-1.29.0.pom'. Received status code 401 from server: Unauthorized
      > Could not resolve io.fabric.tools:gradle:1.29.0.
         > Could not get resource 'http://artifactory/artifactory/remote-repos/io/fabric/tools/gradle/1.29.0/gradle-1.29.0.pom'.
            > Could not GET 'http://artifactory/artifactory/remote-repos/io/fabric/tools/gradle/1.29.0/gradle-1.29.0.pom'. Received status code 401 from server: Unauthorized
      > Could not resolve io.fabric.tools:gradle:1.29.0.
         > Could not get resource 'http://artifactory/artifactory/plugins-release/io/fabric/tools/gradle/1.29.0/gradle-1.29.0.pom'.
            > Could not GET 'http://artifactory/artifactory/plugins-release/io/fabric/tools/gradle/1.29.0/gradle-1.29.0.pom'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

При попытке добавить https://maven.fabric.io/public в artifactory выдаетется ошибка.



Последнее исправление: chemtech (всего исправлений: 2)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.