Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to skip JavaDoc creation? #29

Open
AndroidPat opened this issue Nov 1, 2019 · 1 comment
Open

Add the option to skip JavaDoc creation? #29

AndroidPat opened this issue Nov 1, 2019 · 1 comment

Comments

@AndroidPat
Copy link

AndroidPat commented Nov 1, 2019

Hi Guys,
thanks for the plugin. I think it would be worth to add the option to skip the Javadoc creation if you don't want to push it to a repo.
I guess it would be as simple as:

in gradle-mavenizer.gradle:

def publishJavaDoc= getBooleanProperty("mavPublishJavaDoc")

    publications {
        mavenPublish(MavenPublication) {
            if (isAndroidProject()) {
                artifact bundleReleaseAar
                if (publishJavaDoc){
                   artifact androidJavadocsJar
                 }                    
                artifact androidSourcesJar
            } else {
                artifact jar
                artifact sourcesJar                    
                if (publishJavaDoc){
                   artifact javadocJar
                 } 
            }
            
            decoratePom(pom)
        }
    }
@gotev
Copy link
Contributor

gotev commented Apr 16, 2021

feel free to open a PR 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants