This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class DataLoaderConfig { | |
@Autowired | |
private RedisCacheRepository<String, ObjectId, Home> homeByObjectIdCacheMapRepository; | |
@Autowired | |
private RedisCacheRepository<String, String, Home> homeByStringCacheMapRepository; | |
@Bean | |
public DataLoaderRegistry dataLoaderRegistry() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// merge this with your current build.gradle | |
// generates a version name from currently checked out git commit | |
def getCommitHash = { -> | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'rev-parse', '--short', 'HEAD' | |
standardOutput = stdout | |
} | |
return stdout.toString().trim() | |
} |