We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b07f5fc commit 61c3a6cCopy full SHA for 61c3a6c
1 file changed
build.gradle.kts
@@ -1,3 +1,5 @@
1
+import ch.tutteli.gradle.plugins.publish.PublishPlugin
2
+
3
//import kotlin.io.path.ExperimentalPathApi
4
//import kotlin.io.path.copyToRecursively
5
@@ -75,6 +77,20 @@ jmh {
75
77
includes.set(project.findProperty("jmh.include")?.let { listOf(it.toString()) } ?: emptyList())
76
78
}
79
80
+ifIsPublishing {
81
+ afterEvaluate {
82
+ the<PublishingExtension>().run {
83
+ publications {
84
+ withType<MavenPublication>().configureEach {
85
+ artifacts.removeIf {
86
+ it.file.name.endsWith("-jmh.jar")
87
+ }
88
89
90
91
92
+}
93
94
/*
95
Release & deploy a commit
96
--------------------------------
0 commit comments