Skip to content
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.

Commit

Permalink
Fixes shadowJar publishing to work with maven. (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse authored and PeterJohnson committed Oct 13, 2017
1 parent 0cb70e7 commit 6306e76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.gradle.api.Project
import org.gradle.api.plugins.quality.FindBugs
import org.gradle.api.tasks.wrapper.Wrapper
import org.gradle.testing.jacoco.tasks.JacocoReport
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

buildscript {
repositories {
Expand Down Expand Up @@ -180,7 +181,10 @@ publishing {
create<MavenPublication>("OutlineViewer") {
artifactId = "OutlineViewer"
getWPILibVersion()?.let { version = it }
shadow.component(this)
val shadowJar: ShadowJar by tasks
artifact (shadowJar) {
classifier = null
}
}
}
}
Expand Down

0 comments on commit 6306e76

Please sign in to comment.