aboutsummaryrefslogtreecommitdiff
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
parente02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b (diff)
downloadcbt-d53ddc4355d689a8a89e36a84bb025174efb872e.tar.gz
cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.tar.bz2
cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.zip
starting point for type-safe licenses
-rw-r--r--stage2/Lib.scala1
-rw-r--r--stage2/License.scala9
2 files changed, 9 insertions, 1 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index b76402a..ab9e66e 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -14,7 +14,6 @@ import scala.util._
// pom model
case class Developer(id: String, name: String, timezone: String, url: URL)
-case class License(name: String, url: URL)
/** Don't extend. Create your own libs :). */
final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
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")
+ )
+}