This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 97c0920c4c IGNITE-18110 Modernize Gradle cache usage (#1350)
97c0920c4c is described below
commit 97c0920c4c37324a788dc8c0688241ae29ea750f
Author: Mikhail <[email protected]>
AuthorDate: Thu Nov 24 10:22:51 2022 +0300
IGNITE-18110 Modernize Gradle cache usage (#1350)
* Disable build cache for test tasks
* Move build cache enabling to CI
* Specify path to checkstyle report generation
---
build.gradle | 6 ++++++
buildscripts/java-core.gradle | 7 +++++--
gradle.properties | 1 -
gradle/wrapper/gradle-wrapper.properties | 2 +-
4 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/build.gradle b/build.gradle
index 44c2429833..c7c664d254 100644
--- a/build.gradle
+++ b/build.gradle
@@ -84,6 +84,12 @@ allprojects {
tasks.withType(Javadoc) {
options.addStringOption('bottom', javadocFooter())
}
+
+ //Temporary hack to disable caching of Test tasks.
+ //https://github.com/gradle/gradle/issues/9210
+ tasks.withType(Test).configureEach {
+ outputs.upToDateWhen { false }
+ }
}
subprojects {
diff --git a/buildscripts/java-core.gradle b/buildscripts/java-core.gradle
index 97f8ec862d..34f809a300 100644
--- a/buildscripts/java-core.gradle
+++ b/buildscripts/java-core.gradle
@@ -48,7 +48,6 @@ processResources {
}
}
-
pmdMain {
enabled = true
}
@@ -76,7 +75,11 @@ tasks.withType(Checkstyle) {
"org/apache/ignite/raft/jraft/**/*"]
reports {
xml.required = false
- html.required = true
+ html {
+ required = true
+ outputLocation =
file("$rootDir/build/reports/checkstyle/${project.name}.html")
+ }
+
}
}
diff --git a/gradle.properties b/gradle.properties
index 62b2491972..2fa7193642 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -17,7 +17,6 @@
org.gradle.configureondemand=true
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
-org.gradle.caching=true
#signing.keyId=*INSERT KEY HERE LAST 8 CHARS*
#signing.password=*INSERT PASSWORD HERE*
diff --git a/gradle/wrapper/gradle-wrapper.properties
b/gradle/wrapper/gradle-wrapper.properties
index 41dfb87909..ae04661ee7 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists