-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
62 lines (53 loc) · 1.45 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
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'shadow'
buildscript {
repositories {
maven {
name 'Shadow'
url 'http://dl.bintray.com/content/johnrengelman/gradle-plugins'
}
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'org.gradle.plugins:shadow:0.7.4'
classpath 'org.ajoberstar:gradle-git:0.8.0'
}
}
archivesBaseName = "TPPIBot"
group = 'tterrag.tppibot'
description = "Bot for TPPI IRC channels"
sourceCompatibility = 1.8
targetCompatibility = 1.8
import org.ajoberstar.grgit.Grgit
if (System.getenv('BUILD_NUMBER') != null) {
version += ".${System.getenv('BUILD_NUMBER')}"
} else if (new File(projectDir, '.git').exists()) {
def repo = Grgit.open(project.file('.'))
version += ".${repo.log().find().abbreviatedId}"
} else {
version += ".CUSTOM"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar.manifest {
attributes 'Main-Class': 'tterrag.tppibot.Main'
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.pircbotx:pircbotx:2.0.1'
compile 'org.slf4j:slf4j-simple:1.7.5'
compile 'log4j:log4j:1.2.17'
compile 'commons-io:commons-io:2.4'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.guava:guava:17.0'
compile 'org.jsoup:jsoup:1.7.3'
compile 'commons-cli:commons-cli:1.2'
compile 'org.projectlombok:lombok:1.16.4'
}