Update dependencies.
This commit is contained in:
parent
78808c0f15
commit
5a39d3ee23
4 changed files with 43 additions and 29 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
version: 2
|
||||||
defaults: &defaults
|
defaults: &defaults
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
environment:
|
environment:
|
||||||
|
@ -28,14 +29,12 @@ defaults_gradle: &defaults_gradle
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: build/reports/
|
path: build/reports/
|
||||||
|
|
||||||
version: 2.0
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_gradle_jdk12:
|
build_gradle_jdk12:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/openjdk:11-jdk
|
- image: openjdk:12-jdk
|
||||||
|
|
||||||
<<: *defaults_gradle
|
<<: *defaults_gradle
|
||||||
|
|
||||||
|
|
39
build.gradle
39
build.gradle
|
@ -5,10 +5,10 @@ plugins {
|
||||||
id 'jacoco'
|
id 'jacoco'
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'pmd'
|
id 'pmd'
|
||||||
id "com.github.ben-manes.versions" version "0.25.0"
|
id "com.github.ben-manes.versions" version "0.27.0"
|
||||||
id "com.github.spotbugs" version "2.0.0"
|
id "com.github.spotbugs" version "3.0.0"
|
||||||
id "net.thauvin.erik.gradle.semver" version "1.0.4"
|
id "net.thauvin.erik.gradle.semver" version "1.0.4"
|
||||||
id "org.sonarqube" version "2.7.1"
|
id "org.sonarqube" version "2.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@ mainClassName = packageName + '.Mobibot'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
versions = [
|
versions = [
|
||||||
kotlin : '1.3.50',
|
kotlin : '1.3.61',
|
||||||
log4j : '2.12.1',
|
log4j : '2.13.0',
|
||||||
spotbugs_annotations : '4.0.0-beta3'
|
spotbugs : '4.0.0-RC3'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,15 +47,16 @@ dependencies {
|
||||||
compile "org.apache.logging.log4j:log4j-core:$versions.log4j"
|
compile "org.apache.logging.log4j:log4j-core:$versions.log4j"
|
||||||
compile "org.apache.logging.log4j:log4j-slf4j-impl:$versions.log4j"
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:$versions.log4j"
|
||||||
|
|
||||||
|
compile 'org.apache.commons:commons-lang3:3.9'
|
||||||
compile 'commons-cli:commons-cli:1.4'
|
compile 'commons-cli:commons-cli:1.4'
|
||||||
|
|
||||||
compile 'commons-net:commons-net:3.6'
|
compile 'commons-net:commons-net:3.6'
|
||||||
compile 'com.squareup.okhttp3:okhttp:4.2.0'
|
compile 'com.squareup.okhttp3:okhttp:4.3.1'
|
||||||
|
|
||||||
compile 'com.rometools:rome:1.12.1'
|
compile 'com.rometools:rome:1.12.2'
|
||||||
|
|
||||||
compile 'org.json:json:20190722'
|
compile 'org.json:json:20190722'
|
||||||
compile 'org.jsoup:jsoup:1.12.1'
|
compile 'org.jsoup:jsoup:1.12.2'
|
||||||
compile 'net.objecthunter:exp4j:0.4.8'
|
compile 'net.objecthunter:exp4j:0.4.8'
|
||||||
|
|
||||||
compile 'org.twitter4j:twitter4j-core:4.0.7'
|
compile 'org.twitter4j:twitter4j-core:4.0.7'
|
||||||
|
@ -66,14 +67,14 @@ dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
|
||||||
|
|
||||||
testImplementation 'org.testng:testng:7.0.0'
|
testImplementation 'org.testng:testng:7.1.1'
|
||||||
testImplementation 'org.assertj:assertj-core:3.13.2'
|
testImplementation 'org.assertj:assertj-core:3.15.0'
|
||||||
|
|
||||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.9.0'
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'
|
||||||
spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.6'
|
spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.7'
|
||||||
|
|
||||||
compileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs_annotations"
|
compileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||||
testCompileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs_annotations"
|
testCompileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
@ -82,9 +83,15 @@ test {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spotbugs {
|
||||||
|
toolVersion = versions.spotbugs
|
||||||
|
}
|
||||||
|
|
||||||
pmd {
|
pmd {
|
||||||
ruleSetFiles = files("config/pmd.xml")
|
ignoreFailures = true
|
||||||
ruleSets = []
|
ruleSets = []
|
||||||
|
ruleSetFiles = files("${projectDir}/config/pmd.xml")
|
||||||
|
consoleOutput = true
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
|
|
|
@ -32,10 +32,27 @@
|
||||||
<property name="eachLine" value="true"/>
|
<property name="eachLine" value="true"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<module name="LineLength">
|
||||||
|
<property name="max" value="120"/>
|
||||||
|
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<module name="SuppressWarningsFilter"/>
|
<module name="SuppressWarningsFilter"/>
|
||||||
|
|
||||||
|
<module name="SuppressWithPlainTextCommentFilter">
|
||||||
|
<property name="offCommentFormat" value="CHECKSTYLE_OFF"/>
|
||||||
|
<property name="onCommentFormat" value="CHECKSTYLE_ON"/>
|
||||||
|
<property name="checkFormat"
|
||||||
|
value="^((?!(FileTabCharacterCheck)).)*$"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
<module name="SuppressWarningsHolder"/>
|
<module name="SuppressWarningsHolder"/>
|
||||||
|
<module name="SuppressionCommentFilter">
|
||||||
|
<property name="offCommentFormat" value="CHECKSTYLE_OFF: ALMOST_ALL"/>
|
||||||
|
<property name="onCommentFormat" value="CHECKSTYLE_ON: ALMOST_ALL"/>
|
||||||
|
<property name="checkFormat" value="^((?!(EqualsHashCode)).)*$"/>
|
||||||
|
</module>
|
||||||
<module name="OuterTypeFilename"/>
|
<module name="OuterTypeFilename"/>
|
||||||
<module name="IllegalTokenText">
|
<module name="IllegalTokenText">
|
||||||
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
|
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
|
||||||
|
@ -49,10 +66,6 @@
|
||||||
<property name="allowByTailComment" value="true"/>
|
<property name="allowByTailComment" value="true"/>
|
||||||
<property name="allowNonPrintableEscapes" value="true"/>
|
<property name="allowNonPrintableEscapes" value="true"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="LineLength">
|
|
||||||
<property name="max" value="120"/>
|
|
||||||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
|
||||||
</module>
|
|
||||||
<module name="AvoidStarImport"/>
|
<module name="AvoidStarImport"/>
|
||||||
<module name="OneTopLevelClass"/>
|
<module name="OneTopLevelClass"/>
|
||||||
<module name="NoLineWrap"/>
|
<module name="NoLineWrap"/>
|
||||||
|
@ -245,11 +258,8 @@
|
||||||
<module name="JavadocMethod">
|
<module name="JavadocMethod">
|
||||||
<property name="scope" value="public"/>
|
<property name="scope" value="public"/>
|
||||||
<property name="allowMissingParamTags" value="true"/>
|
<property name="allowMissingParamTags" value="true"/>
|
||||||
<property name="allowMissingThrowsTags" value="true"/>
|
|
||||||
<property name="allowMissingReturnTag" value="true"/>
|
<property name="allowMissingReturnTag" value="true"/>
|
||||||
<property name="minLineCount" value="2"/>
|
|
||||||
<property name="allowedAnnotations" value="Override, Test"/>
|
<property name="allowedAnnotations" value="Override, Test"/>
|
||||||
<property name="allowThrowsTagsForSubclasses" value="true"/>
|
|
||||||
</module>
|
</module>
|
||||||
<module name="MethodName">
|
<module name="MethodName">
|
||||||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
|
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
|
||||||
|
@ -262,6 +272,6 @@
|
||||||
<module name="EmptyCatchBlock">
|
<module name="EmptyCatchBlock">
|
||||||
<property name="exceptionVariableName" value="expected"/>
|
<property name="exceptionVariableName" value="expected"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="CommentsIndentation"/>
|
<!-- <module name="CommentsIndentation"/> -->
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
enableFeaturePreview('STABLE_PUBLISHING')
|
|
||||||
|
|
||||||
rootProject.name = 'mobibot'
|
rootProject.name = 'mobibot'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue