This repository has been archived by the owner on Jul 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 232
/
build.gradle
118 lines (95 loc) · 3.32 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
group 'ink.abb'
version '1.0.3'
buildscript {
ext {
kotlin_version = '1.0.3'
springBootVersion = '1.3.6.RELEASE'
jacksonVersion = '2.8.0'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'spring-boot'
apply plugin: 'checkstyle'
mainClassName = 'ink.abb.pogo.scraper.MainKt'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
def sourceResourcesFolder = "$projectDir/src/main/resources"
sourceSets {
main {
kotlin {
srcDir 'src/main/kotlin'
}
java {
srcDir 'lib/com.google.guava'
}
resources.srcDirs sourceResourcesFolder
}
}
checkstyle {
toolVersion = "7.1"
checkstyleMain.configFile = new File(rootDir, "checkstyle.xml")
checkstyleMain.source = "src/main/kotlin"
checkstyleMain.ignoreFailures = false
checkstyleMain.showViolations = true
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
dependencies {
//compile files('../PokeGOAPI-Java/library/build/libs/PokeGOAPI-library-all-0.3.0.jar')
compile files('lib/api-1.1.1.jar')
// TODO: Wait for jitpack to fix itself...
//compile 'com.github.Grover-c13:PokeGOAPI-Java:Development-SNAPSHOT'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'io.reactivex:rxkotlin:0.60.0'
compile 'svarzee.gps:gpsoauth:0.3'
compile 'com.squareup.moshi:moshi:1.2.0'
compile 'net.jpountz.lz4:lz4:1.3.0'
compile 'com.google.protobuf:protobuf-java:3.0.0-beta-3'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "com.corundumstudio.socketio:netty-socketio:1.7.7"
compile 'org.springframework.boot:spring-boot-starter'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-undertow'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jacksonVersion
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jacksonVersion
compile group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: jacksonVersion
compile group: 'com.google.maps', name: 'google-maps-services', version: '0.1.15'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': mainClassName
)
}
}
task createProperties(dependsOn: processResources) << {
String versionDir = "$buildDir/resources/main/ink/abb/pogo/scraper"
new File(versionDir).mkdirs()
new File("$versionDir/version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
classes {
dependsOn createProperties
}