forked from alphagov/dropwizard-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (72 loc) · 1.91 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 "com.jfrog.bintray" version "1.7.3"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
}
def dependencyVersions = [
dropwizard: '1.0.5'
]
dependencies {
compile "io.dropwizard:dropwizard-core:$dependencyVersions.dropwizard",
'net.logstash.logback:logstash-logback-encoder:4.8'
testCompile 'junit:junit:4.11',
'org.hamcrest:hamcrest-library:1.3',
'org.mockito:mockito-core:1.9.5',
"io.dropwizard:dropwizard-testing:$dependencyVersions.dropwizard"
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'uk.gov.ida'
artifactId 'dropwizard-logstash'
version "$dependencyVersions.dropwizard-${System.env.BUILD_NUMBER ?: 'SNAPSHOT'}"
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
url "file:/srv/maven" // change to point to your repo, e.g. http://my.org/repo
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publications = ['mavenJava']
publish = true
pkg {
repo = 'maven'
name = 'dropwizard-logstash'
userOrg = 'alphagov'
licenses = ['MIT']
vcsUrl = 'https://github.com/alphagov/dropwizard-logstash.git'
version {
name = "$dependencyVersions.dropwizard-${System.env.BUILD_NUMBER ?: 'SNAPSHOT'}"
}
}
}
idea {
project {
jdkName = '1.8'
languageLevel = '1.8'
}
module {
//if you love browsing Javadoc
downloadJavadoc = true
//and hate reading sources :)
downloadSources = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}