-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bunch of build updates during Hackergarten at Javaland
- apply the license plugin (file headers were not updated). - apply the versions plugin. - apply jacoco anc codevarge support - configure travis build - apply clirr plugin
- Loading branch information
Showing
15 changed files
with
703 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
build/ | ||
.idea | ||
out/ | ||
.idea/ | ||
.gradle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: java | ||
|
||
install: | ||
- TERM=dumb ./gradlew -q assemble | ||
|
||
script: | ||
- TERM=dumb ./gradlew build jacocoTestReport jacocoRootReport | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
after_success: | ||
./gradlew coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Copyright (c) ${year}, JIDE Software Inc. All rights reserved. | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
|
||
This code is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2 only, as | ||
published by the Free Software Foundation. Oracle designates this | ||
particular file as subject to the "Classpath" exception as provided | ||
by Oracle in the LICENSE file that accompanied this code. | ||
|
||
This code is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
version 2 for more details (a copy is included in the LICENSE file that | ||
accompanied this code). | ||
|
||
You should have received a copy of the GNU General Public License version | ||
2 along with this work; if not, write to the Free Software Foundation, | ||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<!-- | ||
~ Copyright 2014 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. | ||
--> | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<!-- Blocks --> | ||
<module name="EmptyBlock"> | ||
<property name="option" value="stmt"/> | ||
<property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT"/> | ||
</module> | ||
<module name="EmptyBlock"> | ||
<property name="option" value="text"/> | ||
<property name="tokens" value="LITERAL_CATCH"/> | ||
</module> | ||
<module name="AvoidNestedBlocks"/> | ||
|
||
<!-- Braces --> | ||
<!--<module name="NeedBraces"/>--> | ||
|
||
<!-- Coding --> | ||
<module name="CovariantEquals"/> | ||
<module name="DefaultComesLast"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsHashCode"/> | ||
<!--<module name="ExplicitInitialization"/>--> | ||
<!--<module name="MultipleVariableDeclarations"/>--> | ||
<module name="NoClone"/> | ||
<module name="NoFinalizer"/> | ||
<module name="RedundantThrows"> | ||
<property name="allowUnchecked" value="true"/> | ||
</module> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="SimplifyBooleanReturn"/> | ||
<module name="StringLiteralEquality"/> | ||
<!--<module name="UnnecessaryParentheses"/>--> | ||
|
||
<!-- Design --> | ||
<!--<module name="InterfaceIsType"/>--> | ||
|
||
<!-- Imports --> | ||
<module name="RedundantImport"/> | ||
<module name="UnusedImports"/> | ||
|
||
<!-- Naming --> | ||
<module name="ClassTypeParameterName"> | ||
<property name="format" value="^[A-Z]+([A-Z_]*)*$"/> | ||
</module> | ||
<!--<module name="ConstantName"/> --> | ||
<module name="LocalFinalVariableName"/> | ||
<!--<module name="LocalVariableName"/>--> | ||
<module name="MemberName"/> | ||
<module name="MethodName"> | ||
<property name="format" value="^(\$)?[a-z]?([a-zA-Z0-9_]*)*$"/> | ||
</module> | ||
<module name="MethodTypeParameterName"> | ||
<property name="format" value="^[A-Z]+([A-Z_]*)*$"/> | ||
</module> | ||
<module name="PackageName"> | ||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> | ||
</module> | ||
<module name="ParameterName"/> | ||
<!--<module name="StaticVariableName"/>--> | ||
<module name="TypeName"/> | ||
|
||
</module> | ||
<module name="FileTabCharacter"/> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2014 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. | ||
*/ | ||
|
||
ruleset { | ||
ruleset('rulesets/basic.xml') { | ||
exclude 'EmptyCatchBlock' | ||
exclude 'EmptyMethod' | ||
} | ||
ruleset('rulesets/imports.xml') { | ||
exclude 'MisorderedStaticImports' | ||
} | ||
ruleset('rulesets/naming.xml') { | ||
exclude 'PropertyName' | ||
'ClassName' { | ||
regex = '^[A-Z][a-zA-Z0-9]*$' | ||
} | ||
'FieldName' { | ||
finalRegex = '^_?[a-z][a-zA-Z0-9]*$' | ||
staticFinalRegex = '^[A-Z][A-Z_0-9]*$' | ||
} | ||
'MethodName' { | ||
regex = '^[a-z][a-zA-Z0-9_]*$' | ||
} | ||
'VariableName' { | ||
finalRegex = '^_?[a-z][a-zA-Z0-9]*$' | ||
} | ||
} | ||
ruleset('rulesets/unused.xml') | ||
ruleset('rulesets/exceptions.xml') | ||
// ruleset('rulesets/logging.xml') | ||
ruleset('rulesets/braces.xml') { | ||
exclude 'IfStatementBraces' | ||
} | ||
ruleset('rulesets/size.xml') | ||
ruleset('rulesets/junit.xml') | ||
ruleset('rulesets/unnecessary.xml') | ||
ruleset('rulesets/dry.xml') | ||
ruleset('rulesets/design.xml') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apply plugin: 'jacoco' | ||
|
||
jacoco { | ||
toolVersion = jacocoVersion | ||
} | ||
|
||
jacocoTestReport { | ||
group = 'Reporting' | ||
description = 'Generate Jacoco coverage reports after running tests.' | ||
additionalSourceDirs = project.files(sourceSets.main.allSource.srcDirs) | ||
sourceDirectories = project.files(sourceSets.main.allSource.srcDirs) | ||
classDirectories = project.files(sourceSets.main.output) | ||
reports { | ||
xml.enabled = true | ||
csv.enabled = false | ||
html.enabled = true | ||
} | ||
} | ||
|
||
jacocoProjects << project |
Oops, something went wrong.