Hi,
I'm developing an Android library and used gradle as the build tool and
*maven-publish* to upload the *aar* file.
I've recently updated the gradle plugin from 1.2.3 to 1.3.0.
Previously, selecting an artifact could be done with the *bundleRelease*
task/hook:
apply plugin: 'maven-publish'
publishing {
repositories {
maven { ... }
}
publications {
library(MavenPublication) {
groupId ...
artifactId ...
version ...
artifact bundleRelease
}
}
}
Unfortunately, with gradle 1.3.0 it doesn't work anymore (see the error
message)
* What went wrong:
A problem occurred configuring project ':library'.
> Could not find property 'bundleRelease' on org.gradle.api.publish.maven.
internal.publication.DefaultMavenPublication_Decorated@44faa4f2.
It seems that the *bundleRelease* thing isn't there anymore even though it
will be executed during a manual build process.
So is there any workaround for this, will it come back on future versions?
Some people suggested to directly reference the aar file:
artifact("$buildDir/outputs/aar/bar-release.aar")
But I don't find this usefull because it doesn't depend on the whole
*assembleRelease* and packaging stuff automatically...
It seems that *packageLibrary* do almost the same thing as *bundleRelease* but
still doesn't work...
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.