-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (94 loc) · 2.95 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
plugins {
id 'scala'
id 'idea'
id 'com.github.maiflai.scalatest' version '0.22'
id 'com.avast.gradle.docker-compose' version '0.7.1'
id 'maven-publish'
id 'signing'
}
group = 'uk.co.autotrader'
version = '0.1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
scalaVersionMajor = "2"
scalaVersionMinor = "11"
scalaVersionMicro = "8"
scalaVersion = "${scalaVersionMajor}.${scalaVersionMinor}.${scalaVersionMicro}"
}
dependencies {
compile(
"org.scala-lang:scala-library:${scalaVersion}",
"org.scala-lang:scala-reflect:${scalaVersion}",
"org.scala-lang:scala-compiler:${scalaVersion}",
'com.amazonaws:aws-java-sdk:1.11.160'
)
testCompile(
"org.scalatest:scalatest_${scalaVersionMajor}.${scalaVersionMinor}:3.0.1"
)
testRuntime(
'org.pegdown:pegdown:1.4.2'
)
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar) {
from scaladoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId group
artifactId 's3-client-extension'
version version
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 's3-client-extension'
description = 'Enables Scala developers to interact with the Amazon Web Services with ease.'
url = 'https://github.com/autotraderuk/s3-client-extension'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'Seema Anwer'
email = 'seema.anwer@autotrader.co.uk'
}
developer {
name = 'Karim Essawi'
email = 'karim.essawi@autotrader.co.uk'
}
}
scm {
url = 'https://github.com/autotraderuk/s3-client-extension'
connection = 'scm:git:git://github.com/autotraderuk/s3-client-extension.git'
developerConnection = 'scm:git:ssh://git@github.com/autotraderuk/s3-client-extension.git'
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/${version.endsWith('-SNAPSHOT') ? 'content/repositories/snapshots' : 'service/local/staging/deploy/maven2'}"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
dockerCompose.isRequiredBy(test)
defaultTasks 'build', 'test'