This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
92 lines (79 loc) · 2.59 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
plugins {
id 'java-library'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
id 'com.github.hierynomus.license' version '0.15.0'
}
repositories {
jcenter()
}
version = '0.4.0'
group = 'com.github.kaklakariada'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
jacksonVersion = '2.9.8'
log4jVersion = '2.11.1'
junitPlatformVersion = '1.3.2'
junitJupiterVersion = '5.3.2'
mockitoVersion = '2.23.4'
}
compileTestJava {
options.compilerArgs += '-parameters'
}
dependencies {
api "javax.inject:javax.inject:1"
api 'com.amazonaws:aws-lambda-java-core:1.2.0'
api "org.apache.logging.log4j:log4j-api:${log4jVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testImplementation "org.junit.platform:junit-platform-runner:${junitPlatformVersion}"
testRuntimeOnly "org.apache.logging.log4j:log4j-core:${log4jVersion}"
testRuntimeOnly "org.apache.logging.log4j:log4j-jul:${log4jVersion}"
}
test {
useJUnitPlatform()
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
publishing {
publications {
BintrayPublication(MavenPublication) {
from components.java
artifact sourceJar
groupId project.group
artifactId project.name
version project.version
pom.withXml {
asNode().appendNode('licenses').appendNode('license').
appendNode('name', 'GPLv3').parent().
appendNode('url', 'https://www.gnu.org/licenses/gpl-3.0.html').parent().
appendNode('distribution', 'repo')
}
}
}
}
bintray {
def bintrayUser = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
def bintrayApiKey = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
user = bintrayUser
key = bintrayApiKey
publications = ['BintrayPublication']
pkg {
repo = 'maven'
name = project.name
userOrg = bintrayUser
licenses = ['GPL-3.0']
vcsUrl = 'https://github.com/kaklakariada/aws-lambda-request-handler.git'
version {
name = project.version
}
}
}
license {
header = file('gradle/license-header.txt')
}