开源软件名称(OpenSource Name):wupdigital/android-maven-publish开源软件地址(OpenSource Url):https://github.com/wupdigital/android-maven-publish开源编程语言(OpenSource Language):Groovy 98.0%开源软件介绍(OpenSource Introduction):android-maven-publishDeprecated: This plugin is no longer needed since Use AGP 3.6.0 or newer. DescriptionModification of the standard Maven Publish plugin to be compatible with android-library projects (aar). Applying the pluginplugins {
id 'digital.wup.android-maven-publish' version '3.6.2'
} -or- buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'digital.wup:android-maven-publish:3.6.2'
}
}
apply plugin: 'digital.wup.android-maven-publish' DocumentationThe android-maven-publish plugin provides a UsagePlease refer to the standard Maven Publish plugin documentation. publishing {
publications {
mavenAar(MavenPublication) {
from components.android
}
}
} If you want to publish custom variants: publishing {
publications {
android.libraryVariants.all { variant ->
"maven${variant.name.capitalize()}Aar"(MavenPublication) {
from components.findByName("android${variant.name.capitalize()}")
groupId 'digital.wup.test-publish'
artifactId 'test-publish'
version "1.0.0-${variant.name}"
}
}
}
} Compatibility information
License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论