You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2019/11/15 22:25:45 UTC
[lucene-solr] branch jira/SOLR-13452_gradle_8 updated: SOLR-13452:
Adding ant equivalences to the 'gradlew tasks' output
This is an automated email from the ASF dual-hosted git repository.
erick pushed a commit to branch jira/SOLR-13452_gradle_8
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/jira/SOLR-13452_gradle_8 by this push:
new d4564f7 SOLR-13452: Adding ant equivalences to the 'gradlew tasks' output
d4564f7 is described below
commit d4564f7c288f4eb91fb0e658e291b6561c705a39
Author: Erick Erickson <Er...@gmail.com>
AuthorDate: Fri Nov 15 17:25:38 2019 -0500
SOLR-13452: Adding ant equivalences to the 'gradlew tasks' output
---
help/build.gradle | 20 +++++++++++++++-----
help/help-text/antHelp.txt | 19 +++++++++++++++++++
2 files changed, 34 insertions(+), 5 deletions(-)
diff --git a/help/build.gradle b/help/build.gradle
index 2918118..96ffd20 100644
--- a/help/build.gradle
+++ b/help/build.gradle
@@ -22,24 +22,34 @@ sourceSets {
}
}
-task tests {
+task helpTest {
group = 'Help (Build Documentation)'
description = "How to run Lucene and Solr tests and the options that are available to you."
doLast {
- println file("${rootDir}/buildSrc/common/help-text/testHelp.txt").text
+ println file("${rootDir}/help/help-text/testHelp.txt").text
}
}
-task deps {
+task helpAnt {
+ group = 'Help (Build Documentation)'
+ description = "List the Gradle equivalences for selected Ant targets."
+
+ doLast {
+ println file("${rootDir}/help/help-text/antHelp.txt").text
+ }
+}
+
+
+task helpDeps {
group = 'Help (Build Documentation)'
description = "How dependencies are managed and what you need to know to change them."
doLast {
- println file("${rootDir}/buildSrc/common/help-text/buildDependenciesHelp.txt").text
+ println file("${rootDir}/help/help-text/buildDependenciesHelp.txt").text
}
}
-task testBuild {
+task helpBuild {
group = 'Help (Build Documentation)'
description = "Information on using Docker to test that your build changes are not too disruptive."
}
diff --git a/help/help-text/antHelp.txt b/help/help-text/antHelp.txt
new file mode 100644
index 0000000..c0cb1ec
--- /dev/null
+++ b/help/help-text/antHelp.txt
@@ -0,0 +1,19 @@
+Building
+=======
+
+Unless stated otherwise examples below assume current working directory
+and gradlew script in the top directory of the project's checkout.
+
+
+Common Ant tasks and their equivalence in Gradle
+------------------------------------------------
+
+ant compile => gradlew compileJava
+ant jar => gradlew package
+ant clean => gradlew clean
+ant clean-jars => [no replacement - JARs sourced directly from gradle caches]
+ant jar-checksums => gradlew jarChecksums
+ant test => gradlew test [or better (includes any other verification
+tasks): gradlew check]
+ant validate => gradlew check
+ant precommit => gradlew check -x test (under development)