@@ -33,14 +33,14 @@ import org.gradle.api.Project
33
33
class GitPatcher implements Plugin<Project > {
34
34
35
35
protected Project project
36
- protected PatchExtension extension
36
+ protected PatchExtension patchExtension
37
37
38
38
@Override
39
39
void apply (Project project ) {
40
40
this . project = project
41
41
project. with {
42
- this . extension = extensions. create(' patches' , PatchExtension )
43
- extension . root = projectDir
42
+ this . patchExtension = extensions. create(' patches' , PatchExtension )
43
+ patchExtension . root = projectDir
44
44
45
45
task(' findGit' , type : FindGitTask )
46
46
task(' updateSubmodules' , type : UpdateSubmodulesTask , dependsOn : ' findGit' )
@@ -49,24 +49,24 @@ class GitPatcher implements Plugin<Project> {
49
49
50
50
afterEvaluate {
51
51
// Configure the settings from our extension
52
- tasks. findGit. submodule = extension . submodule
52
+ tasks. findGit. submodule = patchExtension . submodule
53
53
54
54
configure([tasks. applyPatches, tasks. makePatches]) {
55
- repo = extension . target
56
- root = extension . root
57
- submodule = extension . submodule
58
- patchDir = extension . patches
55
+ repo = patchExtension . target
56
+ root = patchExtension . root
57
+ submodule = patchExtension . submodule
58
+ patchDir = patchExtension . patches
59
59
}
60
60
61
61
tasks. makePatches. with {
62
- formatPatchArgs = extension . formatPatchArgs
62
+ formatPatchArgs = patchExtension . formatPatchArgs
63
63
}
64
64
65
65
tasks. applyPatches. updateTask = tasks. updateSubmodules
66
66
67
67
tasks. updateSubmodules. with {
68
- repo = extension . root
69
- submodule = extension . submodule
68
+ repo = patchExtension . root
69
+ submodule = patchExtension . submodule
70
70
}
71
71
}
72
72
}
@@ -76,8 +76,8 @@ class GitPatcher implements Plugin<Project> {
76
76
return project
77
77
}
78
78
79
- PatchExtension getExtension () {
80
- return extension
79
+ PatchExtension getPatchExtension () {
80
+ return patchExtension
81
81
}
82
82
83
83
}
0 commit comments