Browse files

configuration of licenses

  • Loading branch information...
1 parent 44ae2ac commit e0f1357fdfc50ccc27f7e1c03968c6df2f7db3ee @hartsock committed Apr 12, 2012
Showing with 37 additions and 14 deletions.
  1. 0 CONTRIBUTORS
  2. +13 −0 LICENSE
  3. +10 −14 README
  4. +14 −0 build.gradle
View
0 CONTRIBUTORS
No changes.
View
13 LICENSE
@@ -0,0 +1,13 @@
+Copyright (C) 2012 Shawn Hartsock <hartsock@acm.org>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
24 README
@@ -1,21 +1,17 @@
-Lambda Cache is a work-for-hire produced for PSS World Medical
+Lambda Cache is a work-for-hire produced for PSS World Medical and distributed under the Apache 2.0 license
-It is a proof of concept that an API for ehCache could be injected
-into an existing code base without the introduction of AOP, AspectJ
-or other meta-programming technologies. Instead we use simple
-anonymous inner-class as-a-lambda techniques to make a method
-cacheable with the introduction of 4 lines of code.
+It is a proof of concept that an API for ehCache could be injected into an existing code base without the introduction
+of AOP, AspectJ or other meta-programming technologies. Instead we use simple anonymous-inner-class-as-a-lambda
+techniques to make a method cacheable with the introduction of 4 lines of code.
-(The goal was 2 lines of code but this became more cumbersome.)
+(The goal was 2 lines of code but that became difficult to accomplish cleanly.)
-An example of the simplest use of cache is shown in the test class
-SimpleCache and features 4 lines of code for caching wrapping a one
-line statement.
+An example of the simplest use of cache is shown in the test class SimpleCacheUser and features 4 lines of code for
+caching wrapping a simple method.
see: src/test/java/com/pssd/cache/SimpleCacheUser.java
-Once you can cache using ehCache you now have the possibility of
-reconfiguring to use Terracotta or other distributed cache technologies.
+Once you can cache using ehCache you now have the possibility of reconfiguring to use Terracotta or other distributed
+cache technologies.
-TODO: allow configuration from XML files in classpath to override
-configurations embedded in classes.
+TODO: allow configuration from XML files in classpath to override configurations embedded in classes.
View
14 build.gradle
@@ -1,3 +1,13 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.4'
+ }
+}
+apply plugin: 'license'
apply plugin: 'java'
apply plugin: 'eclipse'
@@ -24,3 +34,7 @@ jar {
}
}
+license {
+ ext.year = Calendar.getInstance().get(Calendar.YEAR)
+ ext.name = 'Shawn Hartsock'
+ ext.email = 'hartsock@acm.org'}

0 comments on commit e0f1357

Please sign in to comment.