This is a gradle plugin, publish aar lib to maven repo.
-
website: https://intbird.net/
-
maven: https://intbird.net/maven/
-
coding: https://blog.csdn.net/intbird
buildscript {
repositories {
maven { url "https://intbird.net/maven/" }
}
}
dependencies {
classpath "net.intbird.soft.gradle:publish-maven:$lastVersion"
}
apply plugin: 'publish-maven'
android {
...
}
publishConfig {
groupId = '$package-name'
artifactId = '$lib-name'
version = "$version"
// if you want publish to your own repository, mdf the flow config
repoSnapshot = "https://intbird.net/maven/snapshots/"
repoRelease = "https://intbird.net/maven/releases/"
repoName = "repo_user"
repoPassword = "repo_password"
}
./gradlew publishReleasePublicationToMavenRepository
see change log has release history.
dependencies {
classpath "net.intbird.soft.gradle:publish-maven:$lastVersion"
}