org.danilopianini.gradle.mavencentral.JarWithClassifier.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of publish-on-central Show documentation
Show all versions of publish-on-central Show documentation
A Plugin for easily publishing artifacts on Maven Central
package org.danilopianini.gradle.mavencentral
import org.gradle.api.tasks.bundling.Jar
/**
* A [Jar] task with the specified classifier, and adopting the duplicate strategy
* [org.gradle.api.file.DuplicatesStrategy.WARN].
*/
open class JarWithClassifier(classifier: String) : Jar() {
init {
archiveClassifier.set(classifier)
duplicatesStrategy = org.gradle.api.file.DuplicatesStrategy.WARN
group = "Build"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy