Im-Fran / SonatypeCentralUpload

A gradle plugin to upload artifacts to Sonatype Central
https://plugins.gradle.org/plugin/cl.franciscosolis.sonatype-central-upload
GNU General Public License v3.0
11 stars 2 forks source link

Error while publishing an Android Library #7

Open lucasbordini opened 1 month ago

lucasbordini commented 1 month ago

Hey, when I try to publish my Android Library, i'm receiving the following error:

Unable to find method ''org.bouncycastle.crypto.MultiBlockCipher org.bouncycastle.crypto.engines.AESEngine.newInstance()'' 'org.bouncycastle.crypto.MultiBlockCipher org.bouncycastle.crypto.engines.AESEngine.newInstance()'

I added the plugin on my projects build.gradle:

plugin {
    id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
}

imported it on my library module build.gradle:

apply plugin: 'cl.franciscosolis.sonatype-central-upload'

sonatypeCentralUpload {
    username = "MySonatypeUsername"
    password = "MySonatypePassword"

    // List of files that will be uploaded
    archives = files(file("$projectDir/releases/${project.getName()}-${project.getVersion()}.aar"))

    // This is the pom file to upload. This is required by Central
    pom = file("$projectDir/releases/pom.xml")

    signingKey = "MyPrivateKey"
    signingKeyPassphrase = "MyHappyPassword"
    publicKey = "MyPublicKey"

    publishingType = "AUTOMATIC"
}

am I missing something here ?

Thanks in advance

Im-Fran commented 1 month ago

Hey @lucasbordini, do you have any sample project or source code where I can take a look? It's weird to see a missing method in the plugin :sweat_smile: