You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/11/14 06:24:19 UTC

[groovy] branch GROOVY_4_0_X updated (0422b04a63 -> 557b6a6c42)

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a change to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


    from 0422b04a63 STC: fewer calls to `chooseBestMethod`
     new 05137a3ae8 Bump build-info-extractor-gradle from 4.29.1 to 4.29.2
     new 12efcf7d84 Bump build-info-extractor-gradle from 4.29.2 to 4.29.3
     new 5236f0cbff Bump com.github.ben-manes.versions from 0.43.0 to 0.44.0
     new 557b6a6c42 GROOVY-8668: add property groovysh.disableDocCommand (#1822)

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 build-logic/build.gradle                           |  2 +-
 build.gradle                                       |  2 +-
 .../groovysh/util/DefaultCommandsRegistrar.groovy  | 47 +++++++++++-----------
 3 files changed, 26 insertions(+), 25 deletions(-)


[groovy] 03/04: Bump com.github.ben-manes.versions from 0.43.0 to 0.44.0

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 5236f0cbffacba5130ab1aef79ce3d8d6b8b3e4c
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Mon Nov 14 01:10:52 2022 +0000

    Bump com.github.ben-manes.versions from 0.43.0 to 0.44.0
    
    Bumps com.github.ben-manes.versions from 0.43.0 to 0.44.0.
    
    ---
    updated-dependencies:
    - dependency-name: com.github.ben-manes.versions
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 6d0042c4be..4b988c0db9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -18,7 +18,7 @@
  */
 plugins {
     id 'me.champeau.buildscan-recipes' version '0.2.3'
-    id 'com.github.ben-manes.versions' version '0.43.0'
+    id 'com.github.ben-manes.versions' version '0.44.0'
     id 'com.github.blindpirate.osgi' version '0.0.6'
     id "com.github.jk1.dependency-license-report" version "1.3"
     id 'org.sonarqube' version '3.0'


[groovy] 04/04: GROOVY-8668: add property groovysh.disableDocCommand (#1822)

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 557b6a6c42e119f178ac8d1393f5c90c680bd80c
Author: tison <wa...@gmail.com>
AuthorDate: Sun Nov 13 12:42:19 2022 +0800

    GROOVY-8668: add property groovysh.disableDocCommand (#1822)
    
    * add property groovysh.disableDocCommand
    
    Signed-off-by: tison <wa...@gmail.com>
    
    * null safe operator
    
    Signed-off-by: tison <wa...@gmail.com>
    
    Signed-off-by: tison <wa...@gmail.com>
---
 .../groovysh/util/DefaultCommandsRegistrar.groovy  | 47 +++++++++++-----------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/DefaultCommandsRegistrar.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/DefaultCommandsRegistrar.groovy
index 3c7d1f0600..9fc9ef430c 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/DefaultCommandsRegistrar.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/DefaultCommandsRegistrar.groovy
@@ -57,31 +57,32 @@ class DefaultCommandsRegistrar {
     }
 
     void register() {
+        def commands = [
+            new HelpCommand(shell),
+            new ExitCommand(shell),
+            new ImportCommand(shell),
+            new DisplayCommand(shell),
+            new ClearCommand(shell),
+            new ShowCommand(shell),
+            new InspectCommand(shell),
+            new PurgeCommand(shell),
+            new EditCommand(shell),
+            new LoadCommand(shell),
+            new SaveCommand(shell),
+            new RecordCommand(shell),
+            new HistoryCommand(shell),
+            new AliasCommand(shell),
+            new SetCommand(shell),
+            new GrabCommand(shell),
+            new RegisterCommand(shell),
+        ]
 
-        for (Command classname in [
-                new HelpCommand(shell),
-                new ExitCommand(shell),
-                new ImportCommand(shell),
-                new DisplayCommand(shell),
-                new ClearCommand(shell),
-                new ShowCommand(shell),
-                new InspectCommand(shell),
-                new PurgeCommand(shell),
-                new EditCommand(shell),
-                new LoadCommand(shell),
-                new SaveCommand(shell),
-                new RecordCommand(shell),
-                new HistoryCommand(shell),
-                new AliasCommand(shell),
-                new SetCommand(shell),
-                new GrabCommand(shell),
-                // does not do anything
-                //new ShadowCommand(shell),
-                new RegisterCommand(shell),
-                new DocCommand(shell)
-        ]) {
-            shell.register(classname)
+        if (!System.getProperty("groovysh.disableDocCommand")?.toBoolean()) {
+            commands.add(new DocCommand(shell))
         }
 
+        for (Command classname in commands) {
+            shell.register(classname)
+        }
     }
 }


[groovy] 02/04: Bump build-info-extractor-gradle from 4.29.2 to 4.29.3

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 12efcf7d847d19d6d76930d6ec12cd13bbdf6135
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Nov 11 01:16:56 2022 +0000

    Bump build-info-extractor-gradle from 4.29.2 to 4.29.3
    
    Bumps [build-info-extractor-gradle](https://github.com/jfrog/build-info) from 4.29.2 to 4.29.3.
    - [Release notes](https://github.com/jfrog/build-info/releases)
    - [Changelog](https://github.com/jfrog/build-info/blob/master/RELEASE.md)
    - [Commits](https://github.com/jfrog/build-info/compare/build-info-gradle-extractor-4.29.2...build-info-gradle-extractor-4.29.3)
    
    ---
    updated-dependencies:
    - dependency-name: org.jfrog.buildinfo:build-info-extractor-gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 build-logic/build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-logic/build.gradle b/build-logic/build.gradle
index 9c4f45fd45..4119efc6ca 100644
--- a/build-logic/build.gradle
+++ b/build-logic/build.gradle
@@ -29,7 +29,7 @@ repositories {
 dependencies {
     implementation 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'
     implementation 'org.asciidoctor:asciidoctor-gradle-jvm-pdf:3.3.2'
-    implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.2'
+    implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.3'
     implementation 'org.nosphere.apache:creadur-rat-gradle:0.8.0'
     implementation 'com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.10'
     implementation 'me.champeau.gradle:jmh-gradle-plugin:0.5.3'


[groovy] 01/04: Bump build-info-extractor-gradle from 4.29.1 to 4.29.2

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 05137a3ae82169a5d75e43d2675143da9696b1f3
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed Oct 19 01:51:31 2022 +0000

    Bump build-info-extractor-gradle from 4.29.1 to 4.29.2
    
    Bumps build-info-extractor-gradle from 4.29.1 to 4.29.2.
    
    ---
    updated-dependencies:
    - dependency-name: org.jfrog.buildinfo:build-info-extractor-gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 build-logic/build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-logic/build.gradle b/build-logic/build.gradle
index 81e891d2c7..9c4f45fd45 100644
--- a/build-logic/build.gradle
+++ b/build-logic/build.gradle
@@ -29,7 +29,7 @@ repositories {
 dependencies {
     implementation 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'
     implementation 'org.asciidoctor:asciidoctor-gradle-jvm-pdf:3.3.2'
-    implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.1'
+    implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.2'
     implementation 'org.nosphere.apache:creadur-rat-gradle:0.8.0'
     implementation 'com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.10'
     implementation 'me.champeau.gradle:jmh-gradle-plugin:0.5.3'