-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (53 loc) · 1.86 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
group 'co.atoth'
version '1.0'
apply plugin: 'java'
apply plugin: "idea"
apply plugin: "eu.appsatori.fatjar"
apply plugin: 'net.nemerosa.versioning'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
buildscript {
repositories {
maven {
jcenter()
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "eu.appsatori:gradle-fatjar-plugin:0.3"
classpath 'net.nemerosa:versioning:2.0.0'
}
}
dependencies {
compile 'com.github.Ullink:simple-slack-api:1.0.0'
compile "org.glassfish.tyrus.bundles:tyrus-standalone-client:1.8.3"
compile "org.apache.httpcomponents:httpclient:4.5.2"
compile 'ch.qos.logback:logback-classic:1.2.3'
compile "com.google.guava:guava:18.0"
compile "com.googlecode.json-simple:json-simple:1.1.1"
compile 'com.google.cloud:google-cloud-translate:0.19.0-beta'
compile 'com.google.cloud:google-cloud-datastore:1.2.0'
compile 'org.jsoup:jsoup:1.10.3'
compile 'commons-cli:commons-cli:1.4'
testCompile 'junit:junit:4.12'
}
task fatJarPlus(type: Jar) {
archiveName = rootProject.name + ".jar"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes(
'Implementation-Title': 'Spencer Translate Bot',
'Implementation-Git-Revision': versioning.info.full,
'Implementation-Git-Remote': 'https://github.com/atothhpe/spencer-translate-bot',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-JDK': System.getProperty('java.version'),
'Build-Time': new Date().format("yyyy-MM-dd HH:mm:ss z"),
'Main-Class': 'co.atoth.spencertranslatebot.MainClass'
)
}
}