-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
113 lines (99 loc) · 3.3 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
107
108
109
110
111
112
113
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.github.ben-manes:gradle-versions-plugin:0.39.0"
}
}
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
ext {
metricsVersion = "3.0.4"
http4sVersion = "0.22.15"
gcsVersion = "2.47.0"
zstdVersion = "1.5.6-9"
monixVersion = "3.4.1" // Used only in tests.
}
nexusPublishing {
repositories {
sonatype()
}
}
allprojects {
group = 'com.avast.clients.storage'
version = version == 'unspecified' ? 'DEVELOPER-SNAPSHOT' : version
}
subprojects {
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "com.github.ben-manes.versions"
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
jar {
manifest {
attributes 'Implementation-Version': archiveVersion
}
}
dependencies {
api 'org.slf4j:jul-to-slf4j:2.0.16'
api 'org.slf4j:jcl-over-slf4j:2.0.16'
api 'com.typesafe.scala-logging:scala-logging_2.13:3.9.5'
testImplementation "org.http4s:http4s-blaze-server_2.13:$http4sVersion"
testImplementation "ch.qos.logback:logback-classic:1.5.16"
testImplementation 'junit:junit:4.13.2'
testImplementation "org.scalatest:scalatest_2.13:3.0.9"
testImplementation 'org.mockito:mockito-core:5.15.2'
testImplementation "org.pegdown:pegdown:1.6.0"
}
java {
withJavadocJar()
withSourcesJar()
}
afterEvaluate {
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
artifactId = archivesBaseName
pom {
name = 'Scala storage client'
description = 'Finally-tagless implementation of client for misc. storages represented by backends. Supports backends fallbacks.'
url = 'https://github.com/avast/storage-client'
licenses {
license {
name = 'Apache License 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'jendakol'
name = 'Jenda Kolena'
email = 'jan.kolena@avast.com'
}
}
scm {
connection = 'scm:git:git://github.com/avast/storage-client.git'
developerConnection = 'scm:git:ssh://github.com/avast/storage-client.git'
url = 'https://github.com/avast/storage-client'
}
}
}
}
}
}
signing {
String base64Key = System.getenv('SIGNING_KEY')
if (base64Key) {
useInMemoryPgpKeys(new String(Base64.decoder.decode(base64Key)), System.getenv('SIGNING_PASSWORD'))
sign publishing.publications
}
}
}