How to control publishing file to nexus 2 - Sonatype Nexus Repository - Sonatype Community

How to control publishing file to nexus 2

post by Josh on Oct 26, 2023

Hi, right now I’m trying to publish a artifact to nexus 2, I was able to do that but at the download section it showing we a lot of check-sum file (sha256, sha512) which I didn’t need can we some home hide them ?

I want only to have this 3 jar file to display in the download section

I just using a very simple deploy script in gradle to show the

java {
    withJavadocJar()
    withSourcesJar()
}

publishing{
    publication{
        maven(MavenPublication) {
            artifactId = "admin"
            from components.java
        }
    }
    repositories{
        maven{
            name "nexus"
            url "myURL"
            allowInsecureProtocol true
            credentials{
                username "username"
                password "password"
            }
        }
    }
}

post by mfrost on Oct 30, 2023

Hi @Josh! I think that this is a Sonatype Nexus Repository Manager question so going to move it to that category for greater visibility.