Added PMD.
Updated dependencies.
This commit is contained in:
parent
ad4701060d
commit
0ed3207a31
5 changed files with 1044 additions and 62 deletions
20
.idea/modules/mobibot.iml
generated
20
.idea/modules/mobibot.iml
generated
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module external.linked.project.id="mobibot" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="" external.system.module.version="0.7.3-beta+204" type="JAVA_MODULE" version="4">
|
<module external.linked.project.id="mobibot" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="" external.system.module.version="0.7.3-beta+345" type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<output url="file://$MODULE_DIR$/../../out/production/classes" />
|
<output url="file://$MODULE_DIR$/../../out/production/classes" />
|
||||||
<output-test url="file://$MODULE_DIR$/../../out/test/classes" />
|
<output-test url="file://$MODULE_DIR$/../../out/test/classes" />
|
||||||
|
@ -25,27 +25,27 @@
|
||||||
<orderEntry type="library" name="Gradle: commons-cli:commons-cli:1.4" level="project" />
|
<orderEntry type="library" name="Gradle: commons-cli:commons-cli:1.4" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: commons-net:commons-net:3.6" level="project" />
|
<orderEntry type="library" name="Gradle: commons-net:commons-net:3.6" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: net.thauvin.erik:pinboard-poster:1.0.0" level="project" />
|
<orderEntry type="library" name="Gradle: net.thauvin.erik:pinboard-poster:1.0.0" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: net.aksingh:owm-japis:2.5.2.3" level="project" />
|
<orderEntry type="library" name="Gradle: net.aksingh:owm-japis:2.5.3.0" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:converter-gson:2.4.0" level="project" />
|
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:converter-gson:2.5.0" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:retrofit:2.4.0" level="project" />
|
<orderEntry type="library" name="Gradle: com.squareup.retrofit2:retrofit:2.5.0" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.squareup.okhttp3:okhttp:3.14.0" level="project" />
|
<orderEntry type="library" name="Gradle: com.squareup.okhttp3:okhttp:3.14.1" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.rometools:rome:1.12.0" level="project" />
|
<orderEntry type="library" name="Gradle: com.rometools:rome:1.12.0" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.json:json:20180813" level="project" />
|
<orderEntry type="library" name="Gradle: org.json:json:20180813" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jsoup:jsoup:1.11.3" level="project" />
|
<orderEntry type="library" name="Gradle: org.jsoup:jsoup:1.11.3" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: net.objecthunter:exp4j:0.4.8" level="project" />
|
<orderEntry type="library" name="Gradle: net.objecthunter:exp4j:0.4.8" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.twitter4j:twitter4j-core:4.0.7" level="project" />
|
<orderEntry type="library" name="Gradle: org.twitter4j:twitter4j-core:4.0.7" level="project" />
|
||||||
<orderEntry type="library" scope="PROVIDED" name="Gradle: net.thauvin.erik:semver:1.2.0" level="project" />
|
<orderEntry type="library" scope="PROVIDED" name="Gradle: net.thauvin.erik:semver:1.2.0" level="project" />
|
||||||
<orderEntry type="library" scope="PROVIDED" name="Gradle: com.github.spotbugs:spotbugs-annotations:3.1.11" level="project" />
|
<orderEntry type="library" scope="PROVIDED" name="Gradle: com.github.spotbugs:spotbugs-annotations:4.0.0-beta1" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.rometools:rome-utils:1.12.0" level="project" />
|
<orderEntry type="library" name="Gradle: com.rometools:rome-utils:1.12.0" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.slf4j:slf4j-api:1.7.25" level="project" />
|
<orderEntry type="library" name="Gradle: org.slf4j:slf4j-api:1.7.25" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.squareup.okio:okio:1.17.2" level="project" />
|
<orderEntry type="library" name="Gradle: com.squareup.okio:okio:1.17.2" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jdom:jdom2:2.0.6" level="project" />
|
<orderEntry type="library" name="Gradle: org.jdom:jdom2:2.0.6" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71" level="project" />
|
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.30" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.71" level="project" />
|
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.30" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.71" level="project" />
|
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.3.30" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: com.google.code.gson:gson:2.8.5" level="project" />
|
<orderEntry type="library" name="Gradle: com.google.code.gson:gson:2.8.5" level="project" />
|
||||||
<orderEntry type="library" scope="PROVIDED" name="Gradle: com.google.code.findbugs:jsr305:3.0.2" level="project" />
|
<orderEntry type="library" scope="PROVIDED" name="Gradle: com.google.code.findbugs:jsr305:3.0.2" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.2.71" level="project" />
|
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.3.30" level="project" />
|
||||||
<orderEntry type="library" name="Gradle: org.jetbrains:annotations:13.0" level="project" />
|
<orderEntry type="library" name="Gradle: org.jetbrains:annotations:13.0" level="project" />
|
||||||
<orderEntry type="library" scope="PROVIDED" name="Gradle: com.github.spullara.mustache.java:compiler:0.9.6" level="project" />
|
<orderEntry type="library" scope="PROVIDED" name="Gradle: com.github.spullara.mustache.java:compiler:0.9.6" level="project" />
|
||||||
<orderEntry type="library" scope="TEST" name="Gradle: org.testng:testng:6.14.3" level="project" />
|
<orderEntry type="library" scope="TEST" name="Gradle: org.testng:testng:6.14.3" level="project" />
|
||||||
|
|
16
build.gradle
16
build.gradle
|
@ -4,9 +4,10 @@ plugins {
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'jacoco'
|
id 'jacoco'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
id 'pmd'
|
||||||
id "com.github.ben-manes.versions" version "0.21.0"
|
id "com.github.ben-manes.versions" version "0.21.0"
|
||||||
id "com.github.spotbugs" version "1.7.1"
|
id "com.github.spotbugs" version "1.7.1"
|
||||||
id "net.thauvin.erik.gradle.semver" version "0.9.9-beta"
|
id "net.thauvin.erik.gradle.semver" version "1.0.0"
|
||||||
id "org.sonarqube" version "2.7"
|
id "org.sonarqube" version "2.7"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ defaultTasks 'deploy'
|
||||||
final def packageName = 'net.thauvin.erik.mobibot'
|
final def packageName = 'net.thauvin.erik.mobibot'
|
||||||
final def deployDir = 'deploy'
|
final def deployDir = 'deploy'
|
||||||
def isRelease = 'release' in gradle.startParameter.taskNames
|
def isRelease = 'release' in gradle.startParameter.taskNames
|
||||||
final def semverProcessor = "net.thauvin.erik:semver:1.0.1"
|
final def semverProcessor = "net.thauvin.erik:semver:1.2.0"
|
||||||
|
|
||||||
mainClassName = packageName + '.Mobibot'
|
mainClassName = packageName + '.Mobibot'
|
||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
@ -28,7 +29,7 @@ compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${proje
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
log4j = '2.11.2'
|
log4j = '2.11.2'
|
||||||
spotbugs_annotations = '3.1.12'
|
spotbugs_annotations = '4.0.0-beta1'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -76,10 +77,15 @@ dependencies {
|
||||||
|
|
||||||
test {
|
test {
|
||||||
useTestNG() {
|
useTestNG() {
|
||||||
suites 'src/test/resources/testng.xml'
|
suites('src/test/resources/testng.xml')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pmd {
|
||||||
|
ruleSetFiles = files("config/pmd.xml")
|
||||||
|
ruleSets = []
|
||||||
|
}
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
dependsOn('incrementBuildMeta')
|
dependsOn('incrementBuildMeta')
|
||||||
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
|
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
|
||||||
|
@ -155,7 +161,7 @@ task copyToDeployLib(type: Copy) {
|
||||||
into deployDir + '/lib'
|
into deployDir + '/lib'
|
||||||
}
|
}
|
||||||
|
|
||||||
task deploy(dependsOn: ['build']) {
|
task deploy(dependsOn: ['build', 'jar']) {
|
||||||
description = 'Copies all needed files to the ${deployDir} directory.'
|
description = 'Copies all needed files to the ${deployDir} directory.'
|
||||||
group = 'Publishing'
|
group = 'Publishing'
|
||||||
outputs.dir deployDir
|
outputs.dir deployDir
|
||||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
1052
mobibot.ipr
1052
mobibot.ipr
File diff suppressed because it is too large
Load diff
|
@ -12,15 +12,15 @@ import java.time.*;
|
||||||
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
||||||
*/
|
*/
|
||||||
public final class {{className}} {
|
public final class {{className}} {
|
||||||
public final static String PROJECT = "{{project}}";
|
public static final String PROJECT = "{{project}}";
|
||||||
public final static LocalDateTime BUILDDATE =
|
public static final LocalDateTime BUILDDATE =
|
||||||
LocalDateTime.ofInstant(Instant.ofEpochMilli({{epoch}}L), ZoneId.systemDefault());
|
LocalDateTime.ofInstant(Instant.ofEpochMilli({{epoch}}L), ZoneId.systemDefault());
|
||||||
public final static int MAJOR = {{major}};
|
public static final int MAJOR = {{major}};
|
||||||
public final static int MINOR = {{minor}};
|
public static final int MINOR = {{minor}};
|
||||||
public final static int PATCH = {{patch}};
|
public static final int PATCH = {{patch}};
|
||||||
public final static String PRERELEASE = "{{preRelease}}";
|
public static final String PRERELEASE = "{{preRelease}}";
|
||||||
public final static String BUILDMETA = "{{buildMeta}}";
|
public static final String BUILDMETA = "{{buildMeta}}";
|
||||||
public final static String VERSION = "{{version}}";
|
public static final String VERSION = "{{version}}";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disables the default constructor.
|
* Disables the default constructor.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue