diff --git a/README.md b/README.md index 3345108..2cb973a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ MyBatis Velocity Support [![Coverage Status](https://coveralls.io/repos/mybatis/velocity-scripting/badge.svg?branch=master&service=github)](https://coveralls.io/github/mybatis/velocity-scripting?branch=master) [![Dependency Status](https://www.versioneye.com/user/projects/5619b768a193340f32000648/badge.svg?style=flat)](https://www.versioneye.com/user/projects/5619b768a193340f32000648) [![Maven central](https://maven-badges.herokuapp.com/maven-central/org.mybatis.scripting/mybatis-velocity/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mybatis.scripting/mybatis-velocity) -[![Apache 2](http://img.shields.io/badge/license-Apache%202-red.svg)](http://www.apache.org/licenses/LICENSE-2.0) +[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) ![mybatis-velocity](http://mybatis.github.io/images/mybatis-logo.png) diff --git a/license.txt b/license.txt index 5749483..4ce1777 100644 --- a/license.txt +++ b/license.txt @@ -1,4 +1,4 @@ - Copyright 2012-2015 the original author or authors. + Copyright ${license.git.copyrightYears} the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pom.xml b/pom.xml index cdd7913..d2c5338 100644 --- a/pom.xml +++ b/pom.xml @@ -1,18 +1,20 @@ 4.0.0 @@ -20,7 +22,7 @@ org.mybatis mybatis-parent - 26 + 27 @@ -33,6 +35,8 @@ Velocity support for MyBatis http://www.mybatis.org/scripting/velocity + 2012 + http://github.com/mybatis/velocity-scripting scm:git:ssh://github.com/mybatis/velocity-scripting.git diff --git a/src/main/java/org/mybatis/scripting/velocity/Driver.java b/src/main/java/org/mybatis/scripting/velocity/Driver.java index f7900a7..4345249 100644 --- a/src/main/java/org/mybatis/scripting/velocity/Driver.java +++ b/src/main/java/org/mybatis/scripting/velocity/Driver.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/FastLinkedList.java b/src/main/java/org/mybatis/scripting/velocity/FastLinkedList.java index f29648e..b4ae005 100644 --- a/src/main/java/org/mybatis/scripting/velocity/FastLinkedList.java +++ b/src/main/java/org/mybatis/scripting/velocity/FastLinkedList.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/InDirective.java b/src/main/java/org/mybatis/scripting/velocity/InDirective.java index ef101ea..b963e64 100644 --- a/src/main/java/org/mybatis/scripting/velocity/InDirective.java +++ b/src/main/java/org/mybatis/scripting/velocity/InDirective.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/ParameterMappingCollector.java b/src/main/java/org/mybatis/scripting/velocity/ParameterMappingCollector.java index d35234f..2475ebb 100644 --- a/src/main/java/org/mybatis/scripting/velocity/ParameterMappingCollector.java +++ b/src/main/java/org/mybatis/scripting/velocity/ParameterMappingCollector.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/ParameterMappingSourceParser.java b/src/main/java/org/mybatis/scripting/velocity/ParameterMappingSourceParser.java index b8a340c..8701336 100644 --- a/src/main/java/org/mybatis/scripting/velocity/ParameterMappingSourceParser.java +++ b/src/main/java/org/mybatis/scripting/velocity/ParameterMappingSourceParser.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/RepeatDirective.java b/src/main/java/org/mybatis/scripting/velocity/RepeatDirective.java index afe222a..3b9507d 100644 --- a/src/main/java/org/mybatis/scripting/velocity/RepeatDirective.java +++ b/src/main/java/org/mybatis/scripting/velocity/RepeatDirective.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/SQLScriptSource.java b/src/main/java/org/mybatis/scripting/velocity/SQLScriptSource.java index 0b135a4..e5ccd88 100644 --- a/src/main/java/org/mybatis/scripting/velocity/SQLScriptSource.java +++ b/src/main/java/org/mybatis/scripting/velocity/SQLScriptSource.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/SetDirective.java b/src/main/java/org/mybatis/scripting/velocity/SetDirective.java index ec919f7..1c30bf8 100644 --- a/src/main/java/org/mybatis/scripting/velocity/SetDirective.java +++ b/src/main/java/org/mybatis/scripting/velocity/SetDirective.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/TrimDirective.java b/src/main/java/org/mybatis/scripting/velocity/TrimDirective.java index 9f2b279..6ce71ab 100644 --- a/src/main/java/org/mybatis/scripting/velocity/TrimDirective.java +++ b/src/main/java/org/mybatis/scripting/velocity/TrimDirective.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/VelocityFacade.java b/src/main/java/org/mybatis/scripting/velocity/VelocityFacade.java index 0e163ae..37e7155 100644 --- a/src/main/java/org/mybatis/scripting/velocity/VelocityFacade.java +++ b/src/main/java/org/mybatis/scripting/velocity/VelocityFacade.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/org/mybatis/scripting/velocity/WhereDirective.java b/src/main/java/org/mybatis/scripting/velocity/WhereDirective.java index 3ecf677..7dbf51c 100644 --- a/src/main/java/org/mybatis/scripting/velocity/WhereDirective.java +++ b/src/main/java/org/mybatis/scripting/velocity/WhereDirective.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/site/site.xml b/src/site/site.xml index cdb7aed..5fc0f40 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -1,18 +1,20 @@ diff --git a/src/test/java/org/mybatis/scripting/velocity/InDirectiveTest.java b/src/test/java/org/mybatis/scripting/velocity/InDirectiveTest.java index b999f0f..14e1a99 100644 --- a/src/test/java/org/mybatis/scripting/velocity/InDirectiveTest.java +++ b/src/test/java/org/mybatis/scripting/velocity/InDirectiveTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/TrimDirectiveTest.java b/src/test/java/org/mybatis/scripting/velocity/TrimDirectiveTest.java index 4842fa4..5969c91 100644 --- a/src/test/java/org/mybatis/scripting/velocity/TrimDirectiveTest.java +++ b/src/test/java/org/mybatis/scripting/velocity/TrimDirectiveTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/WhereDirectiveTest.java b/src/test/java/org/mybatis/scripting/velocity/WhereDirectiveTest.java index 3990268..3f5e277 100644 --- a/src/test/java/org/mybatis/scripting/velocity/WhereDirectiveTest.java +++ b/src/test/java/org/mybatis/scripting/velocity/WhereDirectiveTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/CustomUserDirective.java b/src/test/java/org/mybatis/scripting/velocity/use/CustomUserDirective.java index c0f481b..a5b3030 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/CustomUserDirective.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/CustomUserDirective.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/EnumBinder.java b/src/test/java/org/mybatis/scripting/velocity/use/EnumBinder.java index 2fac1a4..0d04f34 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/EnumBinder.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/EnumBinder.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/EnumWrapper.java b/src/test/java/org/mybatis/scripting/velocity/use/EnumWrapper.java index 14f9bf7..798d279 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/EnumWrapper.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/EnumWrapper.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/Name.java b/src/test/java/org/mybatis/scripting/velocity/use/Name.java index eb5caa8..913aed4 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/Name.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/Name.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/Parameter.java b/src/test/java/org/mybatis/scripting/velocity/use/Parameter.java index e048068..24774e9 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/Parameter.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/Parameter.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/TrailingWildCardFormatter.java b/src/test/java/org/mybatis/scripting/velocity/use/TrailingWildCardFormatter.java index 96ecad5..faa620a 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/TrailingWildCardFormatter.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/TrailingWildCardFormatter.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/java/org/mybatis/scripting/velocity/use/VelocityLanguageTest.java b/src/test/java/org/mybatis/scripting/velocity/use/VelocityLanguageTest.java index e6a3acb..0d3aaee 100644 --- a/src/test/java/org/mybatis/scripting/velocity/use/VelocityLanguageTest.java +++ b/src/test/java/org/mybatis/scripting/velocity/use/VelocityLanguageTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2012-2015 the original author or authors. + * Copyright 2012-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/test/resources/log4j.xml b/src/test/resources/log4j.xml index 7478c17..e2ff75c 100644 --- a/src/test/resources/log4j.xml +++ b/src/test/resources/log4j.xml @@ -1,4 +1,21 @@ + diff --git a/src/test/resources/mybatis-velocity.properties b/src/test/resources/mybatis-velocity.properties index f5cf309..9588321 100644 --- a/src/test/resources/mybatis-velocity.properties +++ b/src/test/resources/mybatis-velocity.properties @@ -1,3 +1,19 @@ +# +# Copyright 2012-2016 the original author or authors. +# +# 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. +# + additional.context.attributes=trailingWildCardFormatter:org.mybatis.scripting.velocity.use.TrailingWildCardFormatter,enumBinder:org.mybatis.scripting.velocity.use.EnumBinder userdirective=org.mybatis.scripting.velocity.use.CustomUserDirective runtime.log=target/velocity.log \ No newline at end of file diff --git a/src/test/resources/org/mybatis/scripting/velocity/use/CreateDB.sql b/src/test/resources/org/mybatis/scripting/velocity/use/CreateDB.sql index fe7b992..c59c02f 100644 --- a/src/test/resources/org/mybatis/scripting/velocity/use/CreateDB.sql +++ b/src/test/resources/org/mybatis/scripting/velocity/use/CreateDB.sql @@ -1,5 +1,5 @@ -- --- Copyright 2009-2012 The MyBatis Team +-- Copyright 2012-2016 the original author or authors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. diff --git a/src/test/resources/org/mybatis/scripting/velocity/use/MapperConfig.xml b/src/test/resources/org/mybatis/scripting/velocity/use/MapperConfig.xml index f9a4393..7db3e55 100644 --- a/src/test/resources/org/mybatis/scripting/velocity/use/MapperConfig.xml +++ b/src/test/resources/org/mybatis/scripting/velocity/use/MapperConfig.xml @@ -1,7 +1,7 @@ - diff --git a/src/test/resources/org/mybatis/scripting/velocity/use/mapper.xml b/src/test/resources/org/mybatis/scripting/velocity/use/mapper.xml index 7b80311..c717c0f 100644 --- a/src/test/resources/org/mybatis/scripting/velocity/use/mapper.xml +++ b/src/test/resources/org/mybatis/scripting/velocity/use/mapper.xml @@ -1,7 +1,7 @@ - diff --git a/travis/after_success.sh b/travis/after_success.sh index 78ad0c7..b510438 100644 --- a/travis/after_success.sh +++ b/travis/after_success.sh @@ -1,9 +1,29 @@ #!/bin/bash +# +# Copyright 2012-2016 the original author or authors. +# +# 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. +# + # Get Project Repo mybatis_repo=$(git config --get remote.origin.url 2>&1) echo "Repo detected: ${mybatis_repo}" - + +# Get Commit Message +commit_message=$(git log --format=%B -n 1) +echo "Current commit detected: ${commit_message}" + # Get the Java version. # Java 1.5 will give 15. # Java 1.6 will give 16. @@ -26,7 +46,7 @@ echo "Java detected: ${VER}" # 2. Deploy site # 3. Use -q option to only display Maven errors and warnings. -if [ "$mybatis_repo" == "https://github.com/mybatis/velocity-scripting.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then +if [ "$mybatis_repo" == "https://github.com/mybatis/velocity-scripting.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then if [ $VER == "16" ]; then mvn clean deploy -q --settings ./travis/settings.xml echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}" diff --git a/travis/settings.xml b/travis/settings.xml index b3f808e..4d90c6e 100644 --- a/travis/settings.xml +++ b/travis/settings.xml @@ -1,4 +1,21 @@ +