-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
37 lines (31 loc) · 1014 Bytes
/
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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'com.Erag0'
version = '1.0-SNAPSHOT'
repositories {
jcenter()
}
dependencies {
compile 'commons-configuration:commons-configuration:1.10'
compile 'org.jsoup:jsoup:1.11.3'
compile 'com.github.pengrad:java-telegram-bot-api:4.4.0'
compile 'org.postgresql:postgresql:42.1.4'
compileOnly 'org.projectlombok:lombok:1.18.8'
testCompile 'com.tvd12:test-util:1.0.5'
annotationProcessor "org.projectlombok:lombok:1.18.8"
}
def generatedSourceDir = "$buildDir/generated/src/main/"
//Hack for IDE & annotationProcessors
sourceSets.main.java.srcDir file(generatedSourceDir)
compileJava {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourceDir) // https://github.com/gradle/gradle/issues/4956
}
jar {
manifest {
attributes "Main-Class": "com.Eragoo.ReversoContextBot.App"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}