This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (68 loc) · 1.8 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
/*
* Copyright 2019 Bytabit AB
*/
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
jcenter()
maven {
url "http://dl.bintray.com/palantir/releases"
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.palantir:gradle-gitsemver:0.6.0'
classpath 'io.franzbecker:gradle-lombok:1.14'
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '1.14'
id 'java'
}
apply plugin: 'gitsemver'
lombok {
version = '1.18.4'
sha256 = ""
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
def semver = semverVersion().toString()
processResources {
filesMatching("*.properties") {
filter ReplaceTokens, tokens: [VERSION: semver]
}
outputs.upToDateWhen { false }
}
dependencies {
compile(
'com.amazonaws:aws-lambda-java-core:1.1.0',
'com.amazonaws:aws-lambda-java-log4j:1.0.0',
'com.amazonaws:aws-java-sdk-dynamodb:1.11.119',
'com.google.code.gson:gson:2.8.2',
'io.reactivex.rxjava2:rxjavafx:2.2.0',
'org.slf4j:jcl-over-slf4j:1.7.25',
'org.slf4j:slf4j-api:1.7.21',
'org.slf4j:slf4j-log4j12:1.7.21',
'com.squareup.retrofit2:retrofit:2.4.0',
'com.squareup.retrofit2:converter-gson:2.4.0',
'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
)
}
// http://docs.aws.amazon.com/lambda/latest/dg/create-deployment-pkg-zip-java.html
task buildZip(type: Zip) {
baseName = "bytabit-serverless"
from compileJava
from processResources
into('lib') {
from configurations.runtime
}
}
build.dependsOn buildZip
task wrapper(type: Wrapper) {
gradleVersion = '3.2.1'
}