-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
167 lines (130 loc) · 5.08 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
plugins {
id 'org.springframework.boot' version '2.2.4.RELEASE'
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
id 'org.jetbrains.kotlin.plugin.spring' version '1.3.70'
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.2.0'
// id 'com.sedmelluq.jdaction' version '1.0.2'
id 'org.jetbrains.dokka' version '0.10.1'
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
group = 'it.github.samuele794.takaobot'
version = '2.1.0'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
jcenter()
}
jar {
enabled = true
}
springBoot {
buildInfo()
}
bootJar {
manifest {
attributes 'Start-Class': 'it.discordbot.StartBotKt'
}
launchScript()
}
/*dokka {
outputFormat = 'html-as-java'
outputDirectory = "$buildDir/javadoc"
jdkVersion = 8
includeNonPublic = true
}*/
task dokkaPureKotlindoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
configuration {
jdkVersion = 8
includeNonPublic = true
noJdkLink = false
noStdlibLink = false
}
outputFormat = 'html'
outputDirectory = "$buildDir/kotlindoc"
}
task dokkaPureJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
configuration {
jdkVersion = 8
includeNonPublic = true
noJdkLink = false
noStdlibLink = false
}
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}
task dokkaKotlindocAsJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
configuration {
jdkVersion = 8
includeNonPublic = true
noJdkLink = false
noStdlibLink = false
}
outputFormat = 'html-as-java'
outputDirectory = "$buildDir/kotlin-as-javadoc"
}
//task wrapper(type: Wrapper) {
// gradleVersion = '6.1'
//}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//SPRING LIBRARY
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.2.4.RELEASE'
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.10.2"
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.2.4.RELEASE'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.2.4.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-cache:2.2.4.RELEASE'
implementation 'net.dv8tion:JDA:4.1.1_110'
implementation 'com.jagrosh:jda-utilities:3.0.2'
//RSS + HTML PARSER
// https://mvnrepository.com/artifact/com.rometools/rome
implementation group: 'com.rometools', name: 'rome', version: '1.12.0'
// jsoup HTML parser library @ https://jsoup.org/
implementation 'org.jsoup:jsoup:1.11.3'
//ESCAPE UTIL
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation "org.apache.commons:commons-text:1.3"
//POSTGRESQL DRIVER
// https://mvnrepository.com/artifact/org.postgresql/postgresql
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.10'
//TwitterAPI
// https://mvnrepository.com/artifact/org.twitter4j/twitter4j-core
implementation group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.7'
// https://mvnrepository.com/artifact/org.twitter4j/twitter4j-stream
implementation group: 'org.twitter4j', name: 'twitter4j-stream', version: '4.0.7'
// https://mvnrepository.com/artifact/org.twitter4j/twitter4j-async
implementation group: 'org.twitter4j', name: 'twitter4j-async', version: '4.0.7'
//MUSIC PLAYER
implementation 'com.sedmelluq:lavaplayer:1.3.34'
//connection
implementation 'com.squareup.retrofit2:retrofit:2.7.2'
implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.7.2'
// https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-jackson
implementation group: 'com.squareup.retrofit2', name: 'converter-jackson', version: '2.7.2'
// https://mvnrepository.com/artifact/org.eclipse.mylyn.github/org.eclipse.egit.github.core
implementation group: 'org.eclipse.mylyn.github', name: 'org.eclipse.egit.github.core', version: '2.1.5'
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileJava.options.encoding = 'UTF-8'