Skip to content

Commit 93c0403

Browse files
committed
Removed deprecated jcenter. Added mavenLocal before mavenCentral in some missing cases. Fixed deprecated reports html enabled to required.
1 parent 5ecd37c commit 93c0403

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ apply plugin: "com.github.ben-manes.versions"
66
buildscript {
77
repositories {
88
mavenLocal()
9-
jcenter()
109
mavenCentral()
10+
gradlePluginPortal()
1111
}
1212

1313
dependencies {
@@ -83,9 +83,8 @@ allprojects {
8383
}
8484

8585
repositories {
86-
jcenter()
87-
mavenCentral()
8886
mavenLocal()
87+
mavenCentral()
8988
}
9089

9190
version = fjVersion
@@ -98,6 +97,7 @@ subprojects {
9897

9998
buildscript {
10099
repositories {
100+
mavenLocal()
101101
mavenCentral()
102102
}
103103
}
@@ -108,7 +108,6 @@ subprojects {
108108

109109
repositories {
110110
mavenLocal()
111-
jcenter()
112111
mavenCentral()
113112
maven {
114113
url sonatypeRepositoryUrl
@@ -124,8 +123,8 @@ subprojects {
124123
tasks.withType(Test).configureEach {
125124
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
126125
if (!generateTestReports) {
127-
reports.html.enabled = false
128-
reports.junitXml.enabled = false
126+
reports.html.required = false
127+
reports.junitXml.required = false
129128
}
130129
}
131130

@@ -141,8 +140,8 @@ task coverage(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
141140
getSourceDirectories().from(files(subprojects.findAll {subproject -> subproject.name in projectForFoverage} .sourceSets.main.allSource.srcDirs))
142141

143142
reports {
144-
html.enabled = true
145-
xml.enabled = true
143+
html.required = true
144+
xml.required = true
146145
}
147146
}
148147

0 commit comments

Comments
 (0)