|
1 | 1 | 'use strict'; |
2 | 2 |
|
| 3 | +// update generator to 1.18.9 or above when new windows inslaller release with updated npm (2.6) |
| 4 | +// because new yeoman 1.4.5 required for proper work |
3 | 5 | var yeoman = require('yeoman-generator'), |
4 | 6 | chalk = require('chalk'), |
5 | 7 | path = require('path'), |
@@ -367,7 +369,7 @@ module.exports = yeoman.generators.Base.extend({ |
367 | 369 | var signature = { |
368 | 370 | '1.6': 'org.codehaus.mojo.signature:java16-sun:+@signature', |
369 | 371 | '1.7': 'org.codehaus.mojo.signature:java17:+@signature', |
370 | | - '1.8': '' // switch off animalsniffer for latest java |
| 372 | + '1.8': '' // switch off animalsniffer for the latest java |
371 | 373 | }; |
372 | 374 | var travis = { |
373 | 375 | '1.6': 'oraclejdk7', // better use oraclejdk, compatibility will be checked with animalsniffer |
@@ -396,20 +398,9 @@ module.exports = yeoman.generators.Base.extend({ |
396 | 398 | ]; |
397 | 399 | this.gradlewExists = this.helper.exists('gradlew'); |
398 | 400 |
|
| 401 | + this.helper.copy('gradle-base', {writeOnceFiles: writeOnceFiles}); |
399 | 402 |
|
400 | | - // avoid copying jar file due conflict resolution mistake: https://github.com/yeoman/generator/issues/717 |
401 | | - // (in memory content is wring and so comparison failed). this way jar file avoid any collision checks and gets copied as is each time |
402 | | - this.helper.copy('gradle-base', |
403 | | - {glob: '**/*[!.jar]', writeOnceFiles: writeOnceFiles}); |
404 | | - |
405 | | - // do resolution manually until issue fixed |
406 | | - this.helper.bulkChangeCopy( |
407 | | - 'gradle-base/gradle/wrapper/gradle-wrapper.jar', |
408 | | - 'gradle/wrapper/gradle-wrapper.jar' |
409 | | - ); |
410 | | - |
411 | | - this.helper.copyTpl('project-base', |
412 | | - {writeOnceFiles: writeOnceFiles}); |
| 403 | + this.helper.copyTpl('project-base', {writeOnceFiles: writeOnceFiles}); |
413 | 404 | }, |
414 | 405 |
|
415 | 406 | sources: function () { |
|
0 commit comments