GithubHelp home page GithubHelp logo

CI build broken with 0.9.0: Cannot perform signing task ':signArchives' because it has no configured signatory about gradle-maven-publish-plugin HOT 14 CLOSED

vanniktech avatar vanniktech commented on July 17, 2024 1
CI build broken with 0.9.0: Cannot perform signing task ':signArchives' because it has no configured signatory

from gradle-maven-publish-plugin.

Comments (14)

gabrielittner avatar gabrielittner commented on July 17, 2024 1

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.

gabrielittner avatar gabrielittner commented on July 17, 2024 1

@akarnokd 0.10.0 should work for you again without having to configure anything

from gradle-maven-publish-plugin.

gabrielittner avatar gabrielittner commented on July 17, 2024

from gradle-maven-publish-plugin.

vanniktech avatar vanniktech commented on July 17, 2024

Have you tried?

mavenPublish {
  releaseSigningEnabled = false
}

from gradle-maven-publish-plugin.

akarnokd avatar akarnokd commented on July 17, 2024

Wouldn't that disable signing when I do want to release from my local build?

from gradle-maven-publish-plugin.

gabrielittner avatar gabrielittner commented on July 17, 2024

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.

akarnokd avatar akarnokd commented on July 17, 2024

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.

gabrielittner avatar gabrielittner commented on July 17, 2024

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.

vanniktech avatar vanniktech commented on July 17, 2024

Is there anything else that we need to do here?

from gradle-maven-publish-plugin.

gabrielittner avatar gabrielittner commented on July 17, 2024

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.

akarnokd avatar akarnokd commented on July 17, 2024

I'll stay on 0.8.0 for now.

from gradle-maven-publish-plugin.

vanniktech avatar vanniktech commented on July 17, 2024

I don't think David is using the Android Gradle Plugin though. So that would not help him

from gradle-maven-publish-plugin.

vanniktech avatar vanniktech commented on July 17, 2024

We can close this given that #120 was merged, right?

from gradle-maven-publish-plugin.

gabrielittner avatar gabrielittner commented on July 17, 2024

Yes

from gradle-maven-publish-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.