Package: mockito / 2.23.0-1

05-ignore-release-tasks.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Description: Ignore the release tasks
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/build.gradle
+++ b/build.gradle
@@ -24,11 +24,9 @@
 apply plugin: 'base'
 archivesBaseName = "mockito-core"
 
-apply plugin: "org.shipkit.java"
 allprojects {
     plugins.withId("java") {
         //Only upload specific modules we select
-        bintrayUpload.enabled = false
     }
 }
 
@@ -98,13 +96,3 @@
     licenseAgree = 'yes'
 }
 
-//workaround for #1444, delete when Shipkit bug is fixed
-subprojects {
-    afterEvaluate {
-        def lib = publishing.publications.javaLibrary
-        if(lib && !lib.artifactId.startsWith("mockito-")) {
-            lib.artifactId = "mockito-" + lib.artifactId
-        }
-    }
-}
-//end workaround
--- a/gradle/java-library.gradle
+++ b/gradle/java-library.gradle
@@ -6,14 +6,7 @@
     archivesBaseName = "mockito-" + project.name
 }
 
-generatePomFileForJavaLibraryPublication.doLast {
-    //validates the the pom has correct artifact id to avoid issues like #1444
-    def pom = new XmlSlurper().parse(destination)
-    assert pom.artifactId == archivesBaseName
-    assert pom.name == archivesBaseName
-}
 
-bintrayUpload.enabled = true
 
 sourceCompatibility = 1.6
 targetCompatibility = 1.6