-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (54 loc) · 1.71 KB
/
build.gradle
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
55
56
57
58
59
60
61
buildscript {
ext.kotlin_version = '1.3.70'
ext.telegrambots_version = '4.6'
ext.spring_boot_version = '2.2.5.RELEASE'
ext.log4j2_version = '2.13.1'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
}
}
plugins {
id "org.springframework.boot" version "2.2.5.RELEASE"
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
}
apply plugin: "kotlin"
apply plugin: "application"
apply plugin: "kotlin-jpa" // no-arg constructor for @Entity
mainClassName = 'ru.firix.bot.PlanningPokerBotInit'
jar {
manifest {
attributes 'Main-Class': 'ru.firix.bot.PlanningPokerBotInitKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
defaultTasks 'jar'
configurations.all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.telegram:telegrambots:$telegrambots_version"
implementation "org.telegram:telegrambotsextensions:$telegrambots_version"
implementation "org.springframework.boot:spring-boot-starter-web" //h2 web console
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation "org.jetbrains.kotlin:kotlin-reflect"
runtimeOnly "com.h2database:h2"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}