-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (89 loc) · 3.27 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
group = 'com.github.divideby0'
version = 'dev'
description = """Spotify playlist optimizer using music theory for smooth(er) track transitions"""
mainClassName = 'com.github.divideby0.spotfire.SpotfireCli'
sourceCompatibility = 1.5
targetCompatibility = 1.5
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
buildscript {
ext {
kotlinVersion = '1.2.50'
kieVersion = '7.7.0.Final'
jacksonVersion = '2.9.2'
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
classpath "de.sebastianboegl.gradle.plugins:shadow-log4j-transformer:2.1.1"
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.6"
}
}
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: "io.spring.dependency-management"
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: "de.sebastianboegl.shadow.transformer.log4j"
apply plugin: "com.google.protobuf"
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
maven { url 'https://jitpack.io' }
maven { url "http://dl.bintray.com/jetbrains/spek" }
}
// If requiring AWS JDK, uncomment the dependencyManagement to use the bill of materials
// https://aws.amazon.com/blogs/developer/managing-dependencies-with-aws-sdk-for-java-bill-of-materials-module-bom/
dependencyManagement {
imports {
mavenBom 'com.amazonaws:aws-java-sdk-bom:1.11.206'
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.4"
compile 'com.amazonaws:aws-lambda-java-core:1.1.0'
compile 'com.amazonaws:aws-lambda-java-log4j2:1.0.0'
compile 'com.amazonaws:aws-lambda-java-events:2.0.1'
compile 'com.amazonaws:aws-java-sdk-dynamodb'
compile 'com.amazonaws:aws-dynamodb-encryption-java:1.11.0'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.11.0'
compile 'com.github.kgilmer:kotlinx-cli:bdb0c81'
compile 'com.github.divideby0:spotify-web-api-java:4faa069ba2'
compile 'com.google.protobuf:protobuf-java:3.6.0'
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion"
compile 'io.reactivex.rxjava2:rxkotlin:2.2.0'
compile "org.drools:drools-core:$kieVersion"
compile "org.drools:drools-compiler:$kieVersion"
compile "org.optaplanner:optaplanner-core:$kieVersion"
testCompile('org.jetbrains.spek:spek-api:1.1.5') {
exclude group: 'org.jetbrains.kotlin'
}
testRuntime('org.jetbrains.spek:spek-junit-platform-engine:1.1.5') {
exclude group: 'org.jetbrains.kotlin'
}
}
kotlin {
experimental {
coroutines 'enable'
}
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.6.0'
}
}
task deploy(type: Exec, dependsOn: 'shadowJar') {
commandLine 'serverless', 'deploy'
}