-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (70 loc) · 2.13 KB
/
build.gradle
File metadata and controls
83 lines (70 loc) · 2.13 KB
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
plugins {
id 'java'
id 'eclipse'
id "org.sonarqube" version "4.4.1.3373"
id 'maven-publish'
}
group 'com.github.sayurbox'
version '1.10.1'
apply plugin: 'jacoco'
sourceCompatibility = '17'
targetCompatibility = '17'
repositories {
mavenCentral()
}
publishing {
repositories {
maven {
name = "KaleGitHubPackages"
url = uri("https://maven.pkg.github.com/sayurbox/kale-client-java")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
def mainClassName = "com.sayurbox.kale.featureflag.FeatureFlagClientImpl"
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
dependencies {
implementation "org.slf4j:slf4j-api:2.0.12"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.12.0"
implementation "com.google.code.gson:gson:2.10.1"
implementation "io.github.resilience4j:resilience4j-circuitbreaker:2.2.0"
implementation ("io.github.resilience4j:resilience4j-all:2.2.0") {
exclude group: 'io.github.resilience4j', module: 'resilience4j-cache'
exclude group: 'io.github.resilience4j', module: 'resilience4j-retry'
exclude group: 'io.github.resilience4j', module: 'resilience4j-ratelimiter'
exclude group: 'io.github.resilience4j', module: 'resilience4j-timelimiter'
}
testImplementation "junit:junit:4.13.2"
testImplementation "org.mockito:mockito-core:5.11.0"
testImplementation "org.wiremock:wiremock:3.5.1"
testImplementation "org.awaitility:awaitility:4.2.1"
}
sonar {
properties {
property "sonar.projectKey", "sayurbox_kale-client-java"
property "sonar.organization", "sayurbox"
property "sonar.host.url", "https://sonarcloud.io"
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}