Excluding Subversion related files from the published artifact

classic Classic list List threaded Threaded
1 message Options
Dan
Reply | Threaded
Open this post in threaded view
|

Excluding Subversion related files from the published artifact

Dan
I have this artifact that gets published via a Subversion working copy. This means that the JAR file contains unrelated Subversion files and folders. How can I exclude these Subversion files and folders from the publishing process?

Here is my current publish blocks:

artifactory {
    contextUrl = artifactory_context
    publish {
        repository {
            repoKey = 'plugins-release-local'
            username = artifactory_user
            password = artifactory_password
            maven = true

        }
        defaults {
            publications ('mavenJava')
        }
    }
}

publishing {
    publications {
        mavenJava(MavenPublication) {
            from components.java
                //tried various exclude statements which were giving me errors
        }
    }
}

How I launch the publish process:

./gradlew -Pversion_number=xxx -Pgroup_value=yyy artifactoryPublish --stacktrace