2

is this possible? What about Perforce? I would need to use one of these or a file based and check it in with the crontab or something.

mtmattek
  • 91
  • 2
  • 4

2 Answers2

4

It is certainly possible to implement SVN or Perforce. You would need to implement EnvironmentRepository. See JGitEnvironmentRepository for an example.

See this question for working with local files: Spring Cloud Configuration Server not working with local properties file

Community
  • 1
  • 1
spencergibb
  • 24,471
  • 6
  • 69
  • 75
3

I have been working on getting SVN as a backend working.

There is support for this in spring config since March 2015 and the following is needed

  1. Add a dependency on svnkit to your pom.xml
  2. Change the profile to subversion
  3. Your svn structure must be trunk/property-files

    <dependency> <groupId>org.tmatesoft.svnkit</groupId> <artifactId>svnkit</artifactId> </dependency>

    profiles: active: subversion

A sample file is here https://github.com/spring-cloud-samples/svn-config-server

The property files are loaded in this order

<appname>-<profile>.(properties|yml)
<appname>.(properties|yml)
application.(properties|yml)
David McPaul
  • 143
  • 1
  • 9