forked from jabbink/PokemonGoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (56 loc) · 1.47 KB
/
build.gradle
File metadata and controls
69 lines (56 loc) · 1.47 KB
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
group 'ink.abb'
version '0.5.0-alpha4'
buildscript {
ext.kotlin_version = '1.0.3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'ink.abb.pogo.scraper.MainKt'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
sourceSets {
main {
kotlin {
srcDir 'src/main/kotlin'
}
java {
srcDir 'lib/com.google.guava'
}
}
}
dependencies {
compile project(':PokeGOAPI-Java')
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "com.corundumstudio.socketio:netty-socketio:1.7.7"
compile group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.21'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Pokemon Go Bot',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': mainClassName
)
}
}