UNPKG

gen-jhipster

Version:

Spring Boot + Angular/React/Vue in one handy generator

23 lines (22 loc) 881 B
/** * Removes server files that where generated in previous JHipster versions and therefore * need to be removed. */ export default function cleanupTask({ application }) { if (application.cacheProviderHazelcast) { if (this.isJhipsterVersionLessThan('3.12.0')) { this.removeFile(`${application.javaPackageSrcDir}config/hazelcast/HazelcastCacheRegionFactory.java`); this.removeFile(`${application.javaPackageSrcDir}config/hazelcast/package-info.java`); } } if (application.cacheProviderRedis) { if (this.isJhipsterVersionLessThan('7.8.2')) { this.removeFile(`${application.javaPackageTestDir}RedisTestContainerExtension.java`); } } if (application.buildToolGradle) { if (this.isJhipsterVersionLessThan('8.1.1')) { this.removeFile('gradle/cache.gradle'); } } }