aboutsummaryrefslogtreecommitdiff
path: root/stage2/License.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-06-09 16:15:09 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-06-15 01:13:47 -0400
commitd53ddc4355d689a8a89e36a84bb025174efb872e (patch)
tree2711c539131a74d41cef815f5032285d351b1efc /stage2/License.scala
parente02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b (diff)
downloadcbt-d53ddc4355d689a8a89e36a84bb025174efb872e.tar.gz
cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.tar.bz2
cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.zip
starting point for type-safe licenses
Diffstat (limited to 'stage2/License.scala')
-rw-r--r--stage2/License.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/stage2/License.scala b/stage2/License.scala
new file mode 100644
index 0000000..7100f55
--- /dev/null
+++ b/stage2/License.scala
@@ -0,0 +1,9 @@
+package cbt
+import java.net.URL
+case class License(name: String, url: URL)
+object License{
+ object Apache2 extends License(
+ "Apache-2.0",
+ new URL(s"http://www.apache.org/licenses/LICENSE-2.0")
+ )
+}