1
- buildscript {
2
- repositories {
3
- jcenter()
4
- mavenCentral()
5
- maven {
6
- url " https://plugins.gradle.org/m2/"
7
- }
8
- }
9
- dependencies {
10
- classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
11
- classpath ' me.champeau.gradle:jmh-gradle-plugin:0.3.1'
12
- classpath " org.asciidoctor:asciidoctor-gradle-plugin:1.5.3"
13
- classpath " org.ajoberstar:gradle-git:1.3.2"
14
- classpath " org.jfrog.buildinfo:build-info-extractor-gradle:4.4.17"
15
- classpath ' com.github.erizo.gradle:jcstress-gradle-plugin:0.8.0'
16
- classpath " com.netflix.nebula:gradle-extra-configurations-plugin:4.0.1"
17
- }
18
- }
19
1
plugins {
20
2
id " org.sonarqube" version " 2.7"
3
+ id " com.jfrog.bintray" version " 1.8.4"
4
+ id " me.champeau.gradle.jmh" version " 0.4.8"
5
+ id ' org.asciidoctor.convert' version ' 1.6.0'
6
+ id " com.jfrog.artifactory" version " 4.9.5"
21
7
}
22
8
apply plugin : ' idea'
23
9
apply from : " ${ rootDir} /libraries.gradle"
@@ -55,15 +41,14 @@ configure(project.coreProjects) {
55
41
apply plugin : ' maven-publish'
56
42
apply plugin : ' com.jfrog.bintray'
57
43
apply from : " ${ rootDir} /publishing.gradle"
58
- apply plugin : ' nebula.optional-base'
59
44
apply plugin : ' jacoco'
60
45
61
46
dependencies {
62
47
compile ( libraries. vavr)
63
48
compile ( libraries. slf4j)
64
49
65
50
// JSR-305 only used for non-required meta-annotations
66
- compile " com.google.code.findbugs:jsr305:3.0.2" , optional
51
+ compileOnly " com.google.code.findbugs:jsr305:3.0.2"
67
52
68
53
testCompile ( libraries. junit)
69
54
testCompile ( libraries. assertj)
@@ -73,9 +58,6 @@ configure(project.coreProjects) {
73
58
testCompile ( libraries. powermock_api_mockito)
74
59
testCompile ( libraries. powermock_module_junit4)
75
60
testCompile ( libraries. awaitility)
76
-
77
- jmh " org.openjdk.jmh:jmh-core:1.18"
78
- jmh " org.openjdk.jmh:jmh-generator-annprocess:1.18"
79
61
}
80
62
81
63
tasks. withType(JavaCompile ) {
@@ -89,34 +71,22 @@ configure(project.coreProjects) {
89
71
90
72
jmh {
91
73
duplicateClassesStrategy = ' warn'
92
- jmhVersion = ' 1.17'
93
74
}
94
75
}
95
76
96
77
sonarqube {
97
78
properties {
98
79
property " sonar.projectName" , " resilience4j"
99
80
property " sonar.projectKey" , " resilience4j_resilience4j"
100
- property " sonar.modules" , " resilience4j-core,resilience4j-feign,resilience4j-metrics,resilience4j-micrometer,resilience4j-prometheus,resilience4j-retry,resilience4j-spring,resilience4j-timelimiter,resilience4j-bulkhead,resilience4j-circuitbreaker,resilience4j-ratelimiter,resilience4j-cache,resilience4j-circularbuffer,resilience4j-consumer,resilience4j-spring-boot,resilience4j-spring-boot2,resilience4j-reactor,resilience4j-rxjava2"
101
- property " sonar.projectVersion" ," 0.15.0-SNAPSHOTS"
102
81
103
82
property " sonar.links.homepage" ," https://github.com/resilience4j/resilience4j"
104
83
property " sonar.links.ci" ," https://travis-ci.org/resilience4j/resilience4j"
105
84
property " sonar.links.scm" ," https://github.com/resilience4j/resilience4j"
106
85
property " sonar.links.issue" ," https://github.com/resilience4j/resilience4j/issues"
107
86
108
- property " sonar.java.source" ," 1.8"
109
- property " sonar.sources" ," src/main/java"
110
- property " sonar.tests" ," src/test/java"
111
- property " sonar.java.binaries" ," build"
112
- property " sonar.java.test.binaries" ," build"
113
- property " sonar.binaries" ," build"
114
87
// property "sonar.jacoco.reportPaths","build/reports/jacoco/test"
115
88
116
89
property " sonar.language" ," java"
117
-
118
-
119
- property " sonar.sourceEncoding" ," UTF-8"
120
90
}
121
91
}
122
92
def allTestCoverageFile = " $buildDir /jacoco/allTestCoverage.exec"
@@ -145,10 +115,6 @@ test {
145
115
dependsOn(subprojects. test) // required by cobertura to aggregate report
146
116
}
147
117
148
- task wrapper (type : Wrapper ) {
149
- gradleVersion = ' 4.10.2'
150
- }
151
-
152
118
artifactory {
153
119
contextUrl = ' https://oss.jfrog.org'
154
120
resolve {
0 commit comments