15
15
*/
16
16
17
17
task wrapper(type: Wrapper) {
18
- gradleVersion = '2.14 .1'
18
+ gradleVersion = '3.5 .1'
19
19
}
20
20
21
21
buildscript {
@@ -67,26 +67,28 @@ jar {
67
67
}
68
68
}
69
69
70
- task info << {
71
- println "\nProject Info"
72
- println "============\n"
73
- println "Name : ${rootProject}"
74
- println "Dir : ${projectDir}"
75
- println "Group : ${group}"
76
- println "Version : ${version}"
77
- println "Configurations: " + configurations
70
+ task info {
71
+ doLast {
72
+ println "\nProject Info"
73
+ println "============\n"
74
+ println "Name : ${rootProject}"
75
+ println "Dir : ${projectDir}"
76
+ println "Group : ${group}"
77
+ println "Version : ${version}"
78
+ println "Configurations: " + configurations
78
79
79
- println "\nPackage Info"
80
- println "============\n"
81
- println "Name : %(project_name)s"
82
- println "Dir : %(pkg_directory)s"
80
+ println "\nPackage Info"
81
+ println "============\n"
82
+ println "Name : %(project_name)s"
83
+ println "Dir : %(pkg_directory)s"
83
84
84
- println "\nGenerate Info"
85
- println "============\n"
86
- println "Output Dir : ${generated_sources_directory}"
87
- println "Task Args : " + tasks["generateSources"].args
88
- tasks["generateSources"].outputs.getFiles().getAsFileTree().each {
89
- println "Files : ${it}"
85
+ println "\nGenerate Info"
86
+ println "============\n"
87
+ println "Output Dir : ${generated_sources_directory}"
88
+ println "Task Args : " + tasks["generateSources"].args
89
+ tasks["generateSources"].outputs.getFiles().getAsFileTree().each {
90
+ println "Files : ${it}"
91
+ }
90
92
}
91
93
}
92
94
@@ -98,8 +100,10 @@ task info << {
98
100
* Until we get this properly fixed (it fails in genjava), then we use the following bugfix to deal with the
99
101
* 'Could not copy MANIFEST.MF...' error that occurs when no sources are to be made for an artifact.
100
102
*/
101
- task bugfixtask << {
102
- mkdir sourceSets.main.output.classesDir
103
+ task bugfixtask {
104
+ doLast {
105
+ mkdir sourceSets.main.output.classesDir
106
+ }
103
107
}
104
108
105
109
jar.dependsOn(bugfixtask)
0 commit comments