-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (42 loc) · 1.34 KB
/
build.gradle
File metadata and controls
54 lines (42 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral() // Default Maven repository
maven { url "https://jitpack.io" } // JitPack repository for additional libraries
}
dependencies {
// Kotlin standard library and testing
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
// Telegram Bots library
implementation 'org.telegram:telegrambots:6.7.0'
implementation 'org.telegram:telegrambots-spring-boot-starter:6.7.0'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0"
// SLF4J logging
implementation 'org.slf4j:slf4j-api:2.0.5' // Logging API
implementation 'ch.qos.logback:logback-classic:1.4.5' // Logback implementation
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.14.0' // Jackson Kotlin module
}
jar {
manifest {
attributes 'Main-Class': 'MyTelegramBotKt' // O'zingizning asosiy sinf nomini qo'shing
}
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = '19'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '19'
}
// Optional: Set JVM toolchain (if needed)
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(19)) // Set the Java version here
}
}