I’m working with this tutorial for making internal library for own purposes. I created module, added publishing .gradle
file:
apply plugin: 'maven-publish'
publishing {
publications {
myPublish (MavenPublication) {
groupId "id"
artifactId "utilsmobile"
version "1.0.0"
artifact "$buildDir/outputs/aar/utilsmobile-release.aar"
pom.withXml {
def dependencies = asNode().appendNode('dependencies')
configurations.named("releaseCompileClasspath").getResolvedConfiguration().getFirstLevelModuleDependencies().each {
def dependency = dependencies.appendNode('dependency')
dependency.appendNode('groupId', it.moduleGroup)
dependency.appendNode('artifactId', it.moduleName)
dependency.appendNode('version', it.moduleVersion)
}
}
}
}
repositories {
maven {
url "https://gitlab.com/api/v4/projects//packages/maven"
credentials(HttpHeaderCredentials) {
name = "utils_pkg"
value = "token"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
and added to the module build.gradle
this line:
apply from: "$rootDir/Utils/gradle-mvn-push.gradle"
but I don’t see any new Gradle tasks in the gradle dashboard of the Android Studio and don’t understand how to release it to the own repository. Maybe I need to declare it as a separate task or what I did wrong?