diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 2b8a50f..0fc3113 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/README.md b/README.md index 4dee7b5..53bcfe4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # mobibot [![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) -[![Kotlin](https://img.shields.io/badge/kotlin-1.8.0-blue)](https://kotlinlang.org/) +[![Kotlin](https://img.shields.io/badge/kotlin-1.8.10-blue)](https://kotlinlang.org/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_mobibot&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot) [![GitHub CI](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml/badge.svg)](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml) [![CircleCI](https://circleci.com/gh/ethauvin/mobibot/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/mobibot/tree/master) @@ -24,10 +24,7 @@ Some very basic instructions: # help java -jar mobibot.jar -h - - # twitter oauth token request - java -cp mobibot.jar net.thauvin.erik.mobibot.TwitterOAuth - + # launch /usr/bin/nohup java -jar mobibot.jar & ``` diff --git a/build.gradle b/build.gradle index 8b7827f..f09cdb1 100644 --- a/build.gradle +++ b/build.gradle @@ -5,8 +5,8 @@ plugins { 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.0' - id 'org.jetbrains.kotlin.kapt' version '1.8.0' + 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.sonarqube' version '3.5.0.2730' id 'pmd' @@ -92,10 +92,11 @@ dependencies { test { useTestNG() { + excludeGroups.add('twitter') if (isCI) { - excludeGroups('no-ci') - println "Excluded test groups: ${excludeGroups}" + excludeGroups.add('no-ci') } + println "Excluded test groups: ${excludeGroups}" } } diff --git a/properties/mobibot.properties b/properties/mobibot.properties index e82910c..0f97f3c 100644 --- a/properties/mobibot.properties +++ b/properties/mobibot.properties @@ -25,7 +25,7 @@ tell-max-days=5 tell-max-size=50 #disabled-commands=die, ignore -#disabled-modules=dice, joke +disabled-modules=twitter # # API Token for: https://pinboard.in/settings/password diff --git a/src/test/kotlin/net/thauvin/erik/mobibot/modules/TwitterTest.kt b/src/test/kotlin/net/thauvin/erik/mobibot/modules/TwitterTest.kt index 9651ba0..6e4ab27 100644 --- a/src/test/kotlin/net/thauvin/erik/mobibot/modules/TwitterTest.kt +++ b/src/test/kotlin/net/thauvin/erik/mobibot/modules/TwitterTest.kt @@ -41,7 +41,7 @@ import org.testng.annotations.Test * The `TwitterTest` class. */ class TwitterTest : LocalProperties() { - @Test(groups = ["modules"]) + @Test(groups = ["modules", "twitter"]) @Throws(ModuleException::class) fun testTweet() { val msg = "Testing Twitter API from ${getHostName()}" diff --git a/website/index.html b/website/index.html index ea78552..be6c33e 100644 --- a/website/index.html +++ b/website/index.html @@ -122,8 +122,7 @@
mobibot: paper
mobibot: rock
-
  • Posting to Twitter and Mastodon -
    mobibot: tweet hello twitter
    +
  • Automatic and manual posting to Mastodon
    mobibot: toot hello mastodon