An xsbt plugin to reflect build properties into source code (obsolete)
Scala
Latest commit 604e5cb Nov 3, 2014 Herr Ritschwumm add license
Permalink
Failed to load latest commit information.
src/main/scala initial release Sep 12, 2011
.gitignore initial release Sep 12, 2011
LICENSE add license Nov 2, 2014
README version update May 8, 2012
build.sbt version update May 8, 2012

README

An xsbt plugin to reflect build properties into source code.

To build this code, get and install SBT from 
    https://github.com/harrah/xsbt

Build and publish the plugin:
    git clone git@github.com:ritschwumm/xstb-reflect.git
    cd xstb-reflect
    sbt publish-local
    
Add the plugin to your project in project/plugins/build.sbt:
	addSbtPlugin("de.djini" % "xsbt-reflect" % "0.0.3")
    
Include the plugin in you project's build.sbt:

	seq(ReflectPlugin.allSettings:_*)
	
	reflectPackage	:= "my.pack"
	
	reflectClass	:= "Reflected"
	
	sourceGenerators in Compile <+= reflect map identity

With this setup, you can access the name and version of your project
from scala as my.pack.Reflected.name and my.pack.Reflected.version .