Updated dependencies
This commit is contained in:
parent
d8291e2156
commit
5834a23b7e
9 changed files with 26 additions and 15 deletions
5
.idea/misc.xml
generated
5
.idea/misc.xml
generated
|
@ -5,6 +5,11 @@
|
||||||
<file type="web" url="file://$PROJECT_DIR$" />
|
<file type="web" url="file://$PROJECT_DIR$" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PDMPlugin">
|
<component name="PDMPlugin">
|
||||||
|
<option name="customRuleSets">
|
||||||
|
<list>
|
||||||
|
<option value="K:\java\semver\config\pmd.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
<option name="skipTestSources" value="false" />
|
<option name="skipTestSources" value="false" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="19" project-jdk-type="JavaSDK" />
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="19" project-jdk-type="JavaSDK" />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# mobibot
|
# mobibot
|
||||||
|
|
||||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||||
[](https://kotlinlang.org)
|
[](https://kotlinlang.org)
|
||||||
[](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
|
[](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
|
||||||
[](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml)
|
[](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml)
|
||||||
[](https://circleci.com/gh/ethauvin/mobibot/tree/master)
|
[](https://circleci.com/gh/ethauvin/mobibot/tree/master)
|
||||||
|
|
14
build.gradle
14
build.gradle
|
@ -1,3 +1,5 @@
|
||||||
|
import java.time.LocalDateTime
|
||||||
|
import java.time.format.DateTimeFormatter
|
||||||
import io.gitlab.arturbosch.detekt.Detekt
|
import io.gitlab.arturbosch.detekt.Detekt
|
||||||
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
|
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
|
||||||
|
|
||||||
|
@ -10,7 +12,7 @@ plugins {
|
||||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
|
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
|
||||||
id 'org.jetbrains.kotlin.kapt' version '1.8.22'
|
id 'org.jetbrains.kotlin.kapt' version '1.8.22'
|
||||||
id 'org.jetbrains.kotlinx.kover' version '0.7.1'
|
id 'org.jetbrains.kotlinx.kover' version '0.7.2'
|
||||||
id 'org.sonarqube' version '4.2.1.3168'
|
id 'org.sonarqube' version '4.2.1.3168'
|
||||||
id 'pmd'
|
id 'pmd'
|
||||||
}
|
}
|
||||||
|
@ -54,17 +56,17 @@ dependencies {
|
||||||
// Commons (mostly for PircBotX)
|
// Commons (mostly for PircBotX)
|
||||||
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
||||||
implementation 'org.apache.commons:commons-text:1.10.0'
|
implementation 'org.apache.commons:commons-text:1.10.0'
|
||||||
implementation 'commons-codec:commons-codec:1.15'
|
implementation 'commons-codec:commons-codec:1.16.0'
|
||||||
implementation 'commons-net:commons-net:3.9.0'
|
implementation 'commons-net:commons-net:3.9.0'
|
||||||
|
|
||||||
// Google
|
// Google
|
||||||
implementation 'com.google.code.gson:gson:2.10.1'
|
implementation 'com.google.code.gson:gson:2.10.1'
|
||||||
implementation 'com.google.guava:guava:32.0.1-jre'
|
implementation 'com.google.guava:guava:32.1.1-jre'
|
||||||
|
|
||||||
// Kotlin
|
// Kotlin
|
||||||
implementation platform('org.jetbrains.kotlin:kotlin-bom')
|
implementation platform('org.jetbrains.kotlin:kotlin-bom')
|
||||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2'
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.5'
|
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.5'
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
|
@ -77,7 +79,7 @@ dependencies {
|
||||||
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
|
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
|
||||||
implementation 'net.aksingh:owm-japis:2.5.3.0'
|
implementation 'net.aksingh:owm-japis:2.5.3.0'
|
||||||
implementation 'net.objecthunter:exp4j:0.4.8'
|
implementation 'net.objecthunter:exp4j:0.4.8'
|
||||||
implementation 'org.json:json:20230227'
|
implementation 'org.json:json:20230618'
|
||||||
implementation 'org.jsoup:jsoup:1.16.1'
|
implementation 'org.jsoup:jsoup:1.16.1'
|
||||||
|
|
||||||
// Thauvin
|
// Thauvin
|
||||||
|
@ -188,7 +190,7 @@ incrementBuildMeta {
|
||||||
if (isCI) {
|
if (isCI) {
|
||||||
println 'No increment with CI.'
|
println 'No increment with CI.'
|
||||||
} else {
|
} else {
|
||||||
buildMeta = sprintf("%03d", (buildMeta as Integer) + 1)
|
buildMeta = DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<ID>MagicNumber:Mastodon.kt$Mastodon.Companion$200</ID>
|
<ID>MagicNumber:Mastodon.kt$Mastodon.Companion$200</ID>
|
||||||
<ID>MagicNumber:Mobibot.kt$Mobibot$8</ID>
|
<ID>MagicNumber:Mobibot.kt$Mobibot$8</ID>
|
||||||
<ID>MagicNumber:Modules.kt$Modules$7</ID>
|
<ID>MagicNumber:Modules.kt$Modules$7</ID>
|
||||||
<ID>MagicNumber:Seen.kt$Seen$8</ID>
|
<ID>MagicNumber:Seen.kt$Seen$7</ID>
|
||||||
<ID>MagicNumber:SocialManager.kt$SocialManager$1000L</ID>
|
<ID>MagicNumber:SocialManager.kt$SocialManager$1000L</ID>
|
||||||
<ID>MagicNumber:SocialManager.kt$SocialManager$60L</ID>
|
<ID>MagicNumber:SocialManager.kt$SocialManager$60L</ID>
|
||||||
<ID>MagicNumber:StockQuote.kt$StockQuote.Companion$10</ID>
|
<ID>MagicNumber:StockQuote.kt$StockQuote.Companion$10</ID>
|
||||||
|
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
3
gradle/wrapper/gradle-wrapper.properties
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,7 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
5
gradlew
vendored
5
gradlew
vendored
|
@ -130,10 +130,13 @@ location of your Java installation."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JAVACMD=java
|
JAVACMD=java
|
||||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
location of your Java installation."
|
location of your Java installation."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
|
|
|
@ -69,9 +69,9 @@ class Seen(private val serialObject: String) : AbstractCommand() {
|
||||||
if (isEnabled()) {
|
if (isEnabled()) {
|
||||||
if (args.isNotBlank() && !args.contains(' ')) {
|
if (args.isNotBlank() && !args.contains(' ')) {
|
||||||
val ch = event.bot().userChannelDao.getChannel(channel)
|
val ch = event.bot().userChannelDao.getChannel(channel)
|
||||||
if (args.equals(allKeyword) && ch.isOp(event.user) && seenNicks.isNotEmpty()) {
|
if (args == allKeyword && ch.isOp(event.user) && seenNicks.isNotEmpty()) {
|
||||||
event.sendMessage("The ${"seen".bold()} nicks are:")
|
event.sendMessage("The ${"seen".bold()} nicks are:")
|
||||||
event.sendList(seenNicks.keys.toList(), 8, separator = ", ", isIndent = true)
|
event.sendList(seenNicks.keys.toList(), 7, separator = ", ", isIndent = true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ch.users.forEach {
|
ch.users.forEach {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#Generated by the Semver Plugin for Gradle
|
#Generated by the Semver Plugin for Gradle
|
||||||
#Sat Jun 17 21:28:53 PDT 2023
|
#Sun Jul 02 02:19:45 PDT 2023
|
||||||
version.buildmeta=1098
|
version.buildmeta=20230702021945
|
||||||
version.major=0
|
version.major=0
|
||||||
version.minor=8
|
version.minor=8
|
||||||
version.patch=0
|
version.patch=0
|
||||||
version.prerelease=rc
|
version.prerelease=rc
|
||||||
version.project=mobibot
|
version.project=mobibot
|
||||||
version.semver=0.8.0-rc+1098
|
version.semver=0.8.0-rc+20230702021945
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue