File tree Expand file tree Collapse file tree
src/main/groovy/com/cinnober/gradle/semver_git Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Mikael Brännström
22Anders Lindgren
3+ Morgan Johansson
34
Original file line number Diff line number Diff line change @@ -121,7 +121,16 @@ task (fixPublishPlugins) {
121121 // Gradle Plugin Portal does not support signed artifacts, but Maven Central requires signed artifacts.
122122 // Remove signed artifacts if publishing to Gradle Plugin Portal
123123 doFirst {
124- configurations. archives. artifacts. removeAll { it. extension == " asc" }
124+ configurations. archives. artifacts. with { archives ->
125+ def jarArtifact
126+ archives. each {
127+ if (it. extension == ' asc' ) {
128+ jarArtifact = it
129+ }
130+ }
131+ remove(jarArtifact)
132+ }
125133 }
126134}
127135publishPlugins. dependsOn fixPublishPlugins
136+
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class SemverGitPlugin implements Plugin<Project> {
3535 if (proc. exitValue() == 0 ) {
3636 return checkVersion(proc. text. trim());
3737 }
38- proc = (" git describe " + gitArgs). execute(null , projectDir);
38+ proc = (" git describe --abbrev=7 " + gitArgs). execute(null , projectDir);
3939 proc. waitFor();
4040 if (proc. exitValue() == 0 ) {
4141 def describe = proc. text. trim()
You can’t perform that action at this time.
0 commit comments