rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.77k stars 1.22k forks source link

Why telegrambots:6.6.0 not found on mvnrepository and jitpack? #1232

Closed TheNullablePrototype closed 1 year ago

TheNullablePrototype commented 1 year ago

API 6.6.0 is released, but I can't add it to the dependencies. 6.5.0 works fine

Gradle-8.1.1 jdk - temurin-20.0.1

build.gradle

plugins {
    id 'java'
    id 'org.springframework.boot' version '3.1.0'
    id 'io.spring.dependency-management' version '1.1.0'
}

group = '...'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

repositories {
   // see screenshoots
}

dependencies {
   // see screenshoots
} 

tasks.named('test') {
    useJUnitPlatform()
}
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.telegram.telegrambots.starter.TelegramBotStarterConfiguration;

@Import({TelegramBotStarterConfiguration.class})
@SpringBootApplication
public class BotApplication {

    public static void main(String[] args) {
        SpringApplication.run(BotApplication.class, args);
    }

}

mvnrepository: image

jitpack: image

bluemods commented 1 year ago

I had the same issue, but the latest release is in maven and works.

implementation 'org.telegram:telegrambots:6.7.0'

You can find that latest version here and in the readme.