Removed twitter module
This commit is contained in:
parent
c2c5f8beae
commit
207c1b7e02
29 changed files with 360 additions and 416 deletions
58
build.gradle
58
build.gradle
|
@ -1,13 +1,16 @@
|
|||
import io.gitlab.arturbosch.detekt.Detekt
|
||||
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
|
||||
|
||||
plugins {
|
||||
id 'application'
|
||||
id 'com.github.ben-manes.versions' version '0.45.0'
|
||||
id 'com.github.ben-manes.versions' version '0.46.0'
|
||||
id 'idea'
|
||||
id 'io.gitlab.arturbosch.detekt' version '1.22.0'
|
||||
id 'java'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.8.10'
|
||||
id 'org.jetbrains.kotlin.kapt' version '1.8.10'
|
||||
id 'org.jetbrains.kotlinx.kover' version '0.6.1'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.8.21'
|
||||
id 'org.jetbrains.kotlin.kapt' version '1.8.21'
|
||||
id 'org.jetbrains.kotlinx.kover' version '0.7.0'
|
||||
id 'org.sonarqube' version '4.0.0.2929'
|
||||
id 'pmd'
|
||||
}
|
||||
|
@ -29,8 +32,8 @@ def isNonStable = { String version ->
|
|||
mainClassName = packageName + '.Mobibot'
|
||||
|
||||
ext.versions = [
|
||||
log4j: '2.19.0',
|
||||
pmd : '6.54.0',
|
||||
log4j: '2.20.0',
|
||||
pmd : '6.55.0',
|
||||
]
|
||||
|
||||
repositories {
|
||||
|
@ -61,22 +64,21 @@ dependencies {
|
|||
// Kotlin
|
||||
implementation platform('org.jetbrains.kotlin:kotlin-bom')
|
||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.5'
|
||||
|
||||
// Logging
|
||||
implementation 'org.slf4j:slf4j-api:2.0.6'
|
||||
implementation 'org.slf4j:slf4j-api:2.0.7'
|
||||
implementation "org.apache.logging.log4j:log4j-api:$versions.log4j"
|
||||
implementation "org.apache.logging.log4j:log4j-core:$versions.log4j"
|
||||
implementation "org.apache.logging.log4j:log4j-slf4j2-impl:$versions.log4j"
|
||||
|
||||
implementation 'com.rometools:rome:1.19.0'
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
|
||||
implementation 'com.rometools:rome:2.1.0'
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
|
||||
implementation 'net.aksingh:owm-japis:2.5.3.0'
|
||||
implementation 'net.objecthunter:exp4j:0.4.8'
|
||||
implementation 'org.json:json:20220924'
|
||||
implementation 'org.jsoup:jsoup:1.15.4'
|
||||
implementation 'org.twitter4j:twitter4j-core:4.1.2'
|
||||
implementation 'org.json:json:20230227'
|
||||
implementation 'org.jsoup:jsoup:1.16.1'
|
||||
|
||||
// Thauvin
|
||||
implementation 'net.thauvin.erik:cryptoprice:1.0.0'
|
||||
|
@ -84,10 +86,10 @@ dependencies {
|
|||
implementation 'net.thauvin.erik:pinboard-poster:1.0.3'
|
||||
implementation 'net.thauvin.erik:urlencoder:1.3.0'
|
||||
|
||||
testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.25'
|
||||
testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.26.1'
|
||||
// testImplementation 'org.mockito.kotlin:mockito-kotlin:4.0.0'
|
||||
// testImplementation "org.mockito:mockito-core:4.0.0"
|
||||
testImplementation 'org.testng:testng:7.7.1'
|
||||
testImplementation 'org.testng:testng:7.8.0'
|
||||
}
|
||||
|
||||
test {
|
||||
|
@ -114,6 +116,12 @@ java {
|
|||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(11))
|
||||
}
|
||||
}
|
||||
|
||||
kapt {
|
||||
includeCompileClasspath = false
|
||||
arguments {
|
||||
|
@ -121,15 +129,10 @@ kapt {
|
|||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
}
|
||||
|
||||
compileJava {
|
||||
dependsOn 'incrementBuildMeta'
|
||||
|
@ -155,15 +158,14 @@ detekt {
|
|||
baseline = file("${projectDir}/config/detekt/baseline.xml")
|
||||
}
|
||||
|
||||
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {
|
||||
tasks.withType(Detekt).configureEach {
|
||||
jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
tasks.withType(io.gitlab.arturbosch.detekt.DetektCreateBaselineTask).configureEach {
|
||||
tasks.withType(DetektCreateBaselineTask).configureEach {
|
||||
jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
|
||||
jar {
|
||||
manifest.attributes('Main-Class': mainClassName,
|
||||
'Class-Path': '. ./lib/' + configurations.runtimeClasspath.collect { it.getName() }.join(' ./lib/'))
|
||||
|
@ -204,19 +206,19 @@ tasks.sonar {
|
|||
dependsOn 'koverReport'
|
||||
}
|
||||
|
||||
task copyToDeploy(type: Copy) {
|
||||
tasks.register('copyToDeploy', Copy) {
|
||||
from('properties', jar)
|
||||
into deployDir
|
||||
}
|
||||
|
||||
task copyToDeployLib(type: Copy) {
|
||||
tasks.register('copyToDeployLib', Copy) {
|
||||
from(configurations.runtimeClasspath) {
|
||||
exclude 'annotations-*.jar'
|
||||
}
|
||||
into(deployDir + '/lib')
|
||||
}
|
||||
|
||||
task deploy {
|
||||
tasks.register('deploy') {
|
||||
description = "Copies all needed files to the ${deployDir} directory."
|
||||
group = 'Publishing'
|
||||
dependsOn(assemble, jar)
|
||||
|
@ -228,7 +230,7 @@ task deploy {
|
|||
mustRunAfter(clean)
|
||||
}
|
||||
|
||||
task release {
|
||||
tasks.register('release') {
|
||||
group = 'Publishing'
|
||||
description = 'Releases new version.'
|
||||
dependsOn(clean, check, deploy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue