Package: mockito / 1.10.19-4

06-source-target-level.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
From: Emmanuel Bourg <ebourg@apache.org>
Date: Tue, 30 Oct 2018 22:07:57 +0100
Subject: Increases the source/target level to fix the build failure with Java
 9 and 11

Forwarded: no
---
 build.gradle                     | 4 ++--
 buildSrc/build.gradle            | 4 +++-
 subprojects/testng/testng.gradle | 4 +++-
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/build.gradle b/build.gradle
index 9602590..dbb32e8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,8 +26,8 @@ apply plugin: 'java'
 
 group = 'org.mockito'
 description = 'Core API and implementation.'
-sourceCompatibility = 1.5
-targetCompatibility = 1.5
+sourceCompatibility = 1.7
+targetCompatibility = 1.7
 
 configurations {
     provided
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 76b015b..082338a 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -1,6 +1,8 @@
 apply plugin: 'idea'
 apply plugin: 'groovy'
 
+sourceCompatibility = 1.7
+targetCompatibility = 1.7
 repositories { jcenter() }
 
 dependencies {
@@ -16,4 +18,4 @@ dependencies {
 
 if (gradle.parent && gradle.parent.startParameter.taskNames.any { it in ["ideaModule", "idea"] }) {
     build.dependsOn ideaModule
-}
\ No newline at end of file
+}
diff --git a/subprojects/testng/testng.gradle b/subprojects/testng/testng.gradle
index d6d304a..64281b5 100644
--- a/subprojects/testng/testng.gradle
+++ b/subprojects/testng/testng.gradle
@@ -2,6 +2,8 @@ apply plugin: 'java'
 apply plugin: 'maven'
 description = "Mockito for TestNG"
 
+sourceCompatibility = 1.7
+targetCompatibility = 1.7
 //TODO SF ensure this one is released, too (ensure source and target compatibility, too).
 
 Properties props = new Properties()
@@ -54,4 +56,4 @@ test {
     useTestNG() {
         suites file('src/test/resources/mockito-testng.xml')
     }
-}
\ No newline at end of file
+}