Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
519a5d9
1.8.3
InsanusMokrassar Mar 26, 2020
472f7a2
started 1.9.0
InsanusMokrassar May 22, 2020
7ccebbf
update versions
InsanusMokrassar May 22, 2020
e58a3b7
updates
InsanusMokrassar May 22, 2020
70d843a
update publish scripts
InsanusMokrassar May 22, 2020
bcb27a3
add flow combination and optimize work of updates flows
InsanusMokrassar May 23, 2020
2b904dd
verbosity fixes
InsanusMokrassar May 23, 2020
1147fcd
transaction flows and dependencies update
InsanusMokrassar Aug 13, 2020
582e025
fix for build
InsanusMokrassar Aug 13, 2020
0df1184
update publishing scripts
InsanusMokrassar Aug 13, 2020
0dff093
add opportunity to set several time triggers
InsanusMokrassar Aug 17, 2020
1b2a396
hotfixes in media groups
InsanusMokrassar Jan 21, 2021
b21e90d
previous behaviour
InsanusMokrassar Jan 24, 2021
ea708ad
BIG UNTESTED UPDATE
InsanusMokrassar Mar 13, 2021
33bc15a
updates in publishing scripts
InsanusMokrassar Mar 13, 2021
8a21ac0
fix in github workflow
InsanusMokrassar Mar 13, 2021
a745ef8
fixes in package group
InsanusMokrassar Mar 13, 2021
970603d
change artifact name to lowercase
InsanusMokrassar Mar 13, 2021
a00adc4
rewrite mechanism of media groups for test purpose
InsanusMokrassar Mar 23, 2021
4209438
update h2 version
InsanusMokrassar Mar 23, 2021
abf5670
updates in tables
InsanusMokrassar Mar 23, 2021
2d8dea6
update h2 version
InsanusMokrassar Mar 23, 2021
f67e541
several fixes and opportunity to use custom server in bot
InsanusMokrassar Mar 23, 2021
643c49d
change level of logging
InsanusMokrassar Mar 26, 2021
1ca6f99
update logging (again :) )
InsanusMokrassar Mar 26, 2021
cffb3e0
experimentally set log level to all
InsanusMokrassar Mar 26, 2021
369821e
fix PostMessagesRegistrant
InsanusMokrassar Mar 26, 2021
aff896b
updates
InsanusMokrassar Mar 27, 2021
3b6bc6a
update dependencies
InsanusMokrassar May 1, 2021
efb2840
update dependencies
InsanusMokrassar May 6, 2021
f88112b
update dependencies
InsanusMokrassar Jul 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/publish_packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

name: Publish package to GitHub Packages
on: [push]
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Update version
run: |
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
sed -i -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" gradle.properties
- name: prebuild
run: ./gradlew clean build
- name: Publish package
run: ./gradlew --no-parallel publishAllPublicationsToGithubPackagesRepository -x signMavenPublication
env:
GITHUBPACKAGES_USER: ${{ github.actor }}
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Auto Post Telegram Bot Changelog

## 1.9.0

* Versions updates:
* Kotlin: `1.3.61` -> `1.3.72`
* Coroutines: `1.3.3` -> `1.3.8`
* Kotlin Serialization: `0.14.0` -> `0.20.0`
* `TelegramBotAPI` -> `TelegramBotAPI-all` + version change: `0.23.2` -> `0.27.10`
* Ktor: `1.3.1` -> `1.3.2`
* `BroadcastChannel` and `ReceiveChannel` extensions were removed
* Transaction flows added

## 1.8.0

* Version updates:
Expand All @@ -8,6 +19,10 @@
* `TimerTriggerStrategy` now have new extension `getPostsInRange` and `getTriggersInRange`
* `MostRatedChooser` now correctly work with exceptions list

### 1.8.3

* Hotfix for scheduler plugin and its table

### 1.8.2

* `DatabaseConfig#connect` now is deprecated. It is recommended to use `DatabaseConfig#database` property
Expand Down
17 changes: 9 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
project.version = "1.8.2"
project.group = "com.github.insanusmokrassar"

buildscript {
repositories {
mavenLocal()
Expand All @@ -11,7 +8,6 @@ buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$gradle_bintray_plugin_version"
}
}

Expand All @@ -20,9 +16,12 @@ apply plugin: 'application'
apply plugin: 'kotlin'
apply plugin: 'kotlinx-serialization'

project.version = "$version"
project.group = "dev.inmo"

apply from: "publish.gradle"

mainClassName="com.github.insanusmokrassar.AutoPostTelegramBot.LaunchKt"
mainClassName="dev.inmo.AutoPostTelegramBot.LaunchKt"

repositories {
mavenLocal()
Expand All @@ -35,14 +34,16 @@ repositories {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialisation_runtime_version"
api "com.github.insanusmokrassar:TelegramBotAPI:$telegram_bot_api_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialisation_runtime_version"
api "dev.inmo:tgbotapi:$telegram_bot_api_version"

implementation "io.ktor:ktor-server-cio:$ktor_version"
implementation "io.ktor:ktor-client-okhttp:$ktor_version"

api "org.jetbrains.exposed:exposed:$kotlin_exposed_version"
api "org.jetbrains.exposed:exposed-jdbc:$kotlin_exposed_version"
api "org.jetbrains.exposed:exposed-jodatime:$kotlin_exposed_version"
implementation "com.h2database:h2:$h2_version"
api "joda-time:joda-time:$joda_time_version"

// Use JUnit test framework
testImplementation 'junit:junit:4.12'
Expand Down
17 changes: 9 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
kotlin.code.style=official
kotlin_version=1.3.61
kotlin_coroutines_version=1.3.3
kotlin_serialisation_runtime_version=0.14.0
kotlin_exposed_version=0.10.2
telegram_bot_api_version=0.23.2
ktor_version=1.3.1
kotlin_version=1.5.20
kotlin_coroutines_version=1.5.0
kotlin_serialisation_runtime_version=1.2.1
kotlin_exposed_version=0.32.1
telegram_bot_api_version=0.35.1
ktor_version=1.6.1
joda_time_version=2.10.10

h2_version=1.4.196
h2_version=1.4.200

gradle_bintray_plugin_version=1.8.4
version=1.9.0
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
57 changes: 0 additions & 57 deletions maven.publish.gradle

This file was deleted.

103 changes: 74 additions & 29 deletions publish.gradle
Original file line number Diff line number Diff line change
@@ -1,37 +1,82 @@
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'signing'

ext {
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"

task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}

bintray {
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
key = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
publications = ["maven"]
filesSpec {
into "$projectBintrayDir"
from("build/libs") {
include "**/*.asc"
}
from("build/publications/maven") {
rename 'pom-default.xml(.*)', "${project.name}-${project.version}.pom\$1"
}
}
pkg {
repo = 'StandardRepository'
name = "${project.name}"
vcsUrl = "https://github.com/InsanusMokrassar/${project.name}"
licenses = ['Apache-2.0']
version {
name = "${project.version}"
released = new Date()
vcsTag = name
gpg {
sign = true
passphrase = project.hasProperty('signing.gnupg.passphrase') ? project.property('signing.gnupg.passphrase') : System.getenv('signing.gnupg.passphrase')
publishing {
publications {
maven(MavenPublication) {
from components.java

artifact javadocJar
artifact sourcesJar

pom {
resolveStrategy = Closure.DELEGATE_FIRST

description = "It is base library for creating smart bot for simple management of channels posts"
name = "Auto post Telegram Bot"
url = "https://insanusmokrassar.github.io/AutoPostTelegramBot"

scm {
developerConnection = "scm:git:[fetch=]https://github.com/insanusmokrassar/AutoPostTelegramBot[push=]https://github.com/insanusmokrassar/AutoPostTelegramBot"
url = "https://github.com/insanusmokrassar/AutoPostTelegramBot"
}

developers {

developer {
id = "InsanusMokrassar"
name = "Ovsyannikov Alexey"
email = "ovsyannikov.alexey95@gmail.com"
}

}

licenses {

license {
name = "Apache Software License 2.0"
url = "https://github.com/InsanusMokrassar/${project.name}/blob/master/LICENSE"
}

}
}
repositories {
if ((project.hasProperty('GITHUBPACKAGES_USER') || System.getenv('GITHUBPACKAGES_USER') != null) && (project.hasProperty('GITHUBPACKAGES_PASSWORD') || System.getenv('GITHUBPACKAGES_PASSWORD') != null)) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/InsanusMokrassar/AutoPostTelegramBot")
credentials {
username = project.hasProperty('GITHUBPACKAGES_USER') ? project.property('GITHUBPACKAGES_USER') : System.getenv('GITHUBPACKAGES_USER')
password = project.hasProperty('GITHUBPACKAGES_PASSWORD') ? project.property('GITHUBPACKAGES_PASSWORD') : System.getenv('GITHUBPACKAGES_PASSWORD')
}
}
}
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER')
password = project.hasProperty('SONATYPE_PASSWORD') ? project.property('SONATYPE_PASSWORD') : System.getenv('SONATYPE_PASSWORD')
}
}
}
}
}
}
}

apply from: "maven.publish.gradle"
signing {
useGpgCmd()
sign publishing.publications
}
1 change: 1 addition & 0 deletions publish_config.kpsb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"licenses":[{"id":"Apache-2.0","title":"Apache Software License 2.0","url":"https://github.com/InsanusMokrassar/${project.name}/blob/master/LICENSE"}],"mavenConfig":{"name":"Auto post Telegram Bot","description":"It is base library for creating smart bot for simple management of channels posts","url":"https://insanusmokrassar.github.io/AutoPostTelegramBot","vcsUrl":"https://github.com/insanusmokrassar/AutoPostTelegramBot","includeGpgSigning":true,"developers":[{"id":"InsanusMokrassar","name":"Ovsyannikov Alexey","eMail":"ovsyannikov.alexey95@gmail.com"}],"repositories":[{"name":"GithubPackages","url":"https://maven.pkg.github.com/InsanusMokrassar/AutoPostTelegramBot"},{"name":"sonatype","url":"https://oss.sonatype.org/service/local/staging/deploy/maven2/"}]},"type":"JVM"}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ include 'api'
include 'services:webservice'
*/

rootProject.name = 'AutoPostTelegramBot'
rootProject.name = 'autoposttelegrambot'
Loading