diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-09 16:15:09 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-15 01:13:47 -0400 |
commit | d53ddc4355d689a8a89e36a84bb025174efb872e (patch) | |
tree | 2711c539131a74d41cef815f5032285d351b1efc /stage2 | |
parent | e02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b (diff) | |
download | cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.tar.gz cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.tar.bz2 cbt-d53ddc4355d689a8a89e36a84bb025174efb872e.zip |
starting point for type-safe licenses
Diffstat (limited to 'stage2')
-rw-r--r-- | stage2/Lib.scala | 1 | ||||
-rw-r--r-- | stage2/License.scala | 9 |
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") + ) +} |