Comments (14)
When we turn off legacy mode by default it will help everyone. It's just Android that's blocking it right now
from gradle-maven-publish-plugin.
@akarnokd 0.10.0 should work for you again without having to configure anything
from gradle-maven-publish-plugin.
from gradle-maven-publish-plugin.
Have you tried?
mavenPublish {
releaseSigningEnabled = false
}
from gradle-maven-publish-plugin.
Wouldn't that disable signing when I do want to release from my local build?
from gradle-maven-publish-plugin.
This is caused by removing our hacky onlyIf
in #101 which was checking if there are any upload tasks in the task graph.
There is a gradle property you can set for releaseSigningEnabled
. It's called RELEASE_SIGNING_ENABLED
. You can set it to false in the committed gradle.properties
in your repo and then set it to true in the same place where you set the signing properties on your local machine. Does that work for you?
from gradle-maven-publish-plugin.
I only want the plugin to sign the jars when I call uploadArchives
. Every other case, CI or local machine, should not sign them. 0.8.0 worked so far thus I otherwise don't really need to update right now.
from gradle-maven-publish-plugin.
I did a quick check and Gradle seems to do the right thing when using maven-publish
. So setting
mavenPublish {
useLegacyMode = false
}
should do what you want (for Android projects this requires Android Gradle Plugin 3.6.0).
Another alternative would be setting RELEASE_SIGNING_ENABLED
to false in your repo and when you publish you run uploadArchives -PRELEASE_SIGNING_ENABLED=true
.
from gradle-maven-publish-plugin.
Is there anything else that we need to do here?
from gradle-maven-publish-plugin.
I don't think so. The only thing we could do as adding back the hack we had before for legacy mode, but I'd like to avoid that and there are work arounds through properties. With AGP 3.6.0 stable being very close I'd just leave it and then we can disable legacy mode by default for the correct behavior.
from gradle-maven-publish-plugin.
I'll stay on 0.8.0 for now.
from gradle-maven-publish-plugin.
I don't think David is using the Android Gradle Plugin though. So that would not help him
from gradle-maven-publish-plugin.
We can close this given that #120 was merged, right?
from gradle-maven-publish-plugin.
Yes
from gradle-maven-publish-plugin.
Related Issues (20)
- Cannot publish artifacts in multimodule project HOT 2
- Is there a way to specify source code publish flag according to the targets? HOT 5
- In memory GPG key HOT 3
- Disable signing for specific tasks HOT 3
- [Question] How to publish custom artifact to Maven Central? HOT 2
- Upload failed: {"error":{"message":"Authentication Failed"}} HOT 11
- Java8 Support HOT 1
- Publishing to two repositories with different platform configurations HOT 2
- Any way to publish an Android library using Dokka generated docs? HOT 1
- Update plugin in gradle plugin site HOT 1
- publishing to Maven Central via the Portal Publisher API HOT 4
- Task ':lib:generateMetadataFileForMavenPublication' uses this output of task ':lib:plainJavadocJar' without declaring an explicit or implicit dependency. HOT 2
- Consider adding credentials example for in-memory key to documentation HOT 2
- Cannot perform signing task ':lib:signMavenPublication' because it has no configured signatory HOT 7
- Add an option to not publish test fixtures HOT 4
- How to publish multi-module project as a single artifact HOT 2
- How to use plugin on Github Actions? HOT 3
- [CENTRAL_PORTAL] java.lang.IllegalArgumentException: Cannot set the value of task ':plugin-collector:createStagingRepository' HOT 2
- Better naming for deployment name for Central Portal HOT 2
- New sonatype credential system breaks staging profiles resolution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-maven-publish-plugin.