-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
84 lines (71 loc) · 2.23 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
plugins {
id "net.ltgt.errorprone" version "0.0.13"
id "com.jfrog.bintray" version "1.8.0"
id 'net.researchgate.release' version '2.7.0'
}
repositories {
mavenCentral()
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
apply plugin: 'java-library'
}
sourceCompatibility = 1.8
dependencies {
compile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.297'
compile group: 'org.apache.avro', name: 'avro', version: '1.8.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name:'mockito-core', version:'2.16.0'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
testCompile group: 'org.testcontainers', name: 'localstack', version: '1.7.1'
}
publishing {
publications {
SchemaRegistryPublication(MavenPublication) {
from components.java
groupId 'de.khamrakulov.schema-registry'
artifactId 'registry-core'
version project.property('version')
artifact sourceJar {
classifier "sources"
}
pom.withXml {
asNode().appendNode('description', 'AWS S3 based schema registry with support of Avro')
}
}
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
release {
git {
requireBranch = '(master|\\d+\\.\\d+)'
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['SchemaRegistryPublication']
pkg {
repo = 'maven'
name = 's3-schema-registry'
userOrg = user
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/htimur/s3-schema-registry.git'
labels = ['avro',
'schema',
'registry',
'schemas',
'schema-registry',
's3',
'aws']
publicDownloadNumbers = true
}
}
afterReleaseBuild.dependsOn bintrayUpload