Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dependencies {
- classpath 'com.android.tools.build:gradle:3.2.1'
- classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.9.1"
- }
- apply plugin: 'com.android.library'
- apply plugin: 'maven-publish'
- apply plugin: 'com.jfrog.artifactory'
- def libraryGroupId = 'com.mycomp.mylib'
- def libraryArtifactId = 'mylib'
- def libraryVersion = '1.0.0'
- ...
- publishing {
- publications {
- aar(MavenPublication) {
- groupId libraryGroupId
- version libraryVersion
- artifactId libraryArtifactId
- artifact("$buildDir/outputs/aar/${artifactId}-release.aar")
- }
- }
- }
- artifactory {
- contextUrl = 'http://10.220.2.2:8081/artifactory'
- publish {
- repository {
- repoKey = 'libs-release-local'
- username = artifactory_username
- password = artifactory_password
- }
- defaults {
- publications('aar')
- publishArtifacts = true
- properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core']
- publishPom = true
- }
- }
- Deploying artifact: http://10.220.2.2:8081/artifactory/libs-release-local/com/mycomp/mylib/mylib/1.0.0/mylib-1.0.0.aar
- Deploying artifact: http://10.220.2.2:8081/artifactory/libs-release-local/com/mycomp/mylib/mylib/1.0.0/mylib-1.0.0.pom
- ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.mycomp.mylib:mylib:1.0.0.
- Show Details
- Affected Modules: app
- allprojects {
- repositories {
- google()
- jcenter()
- maven {
- url "http://10.220.2.2:8081/artifactory/libs-release-local"
- credentials {
- username = "${artifactory_username}"
- password = "${artifactory_password}"
- }
- }
- }
- }
- implementation "com.mycomp.mylib:mylib:1.0.0"
Add Comment
Please, Sign In to add comment