You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2022/12/12 08:11:01 UTC

[logging-log4j-tools] branch master updated (7aef075 -> 246d2b4)

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

vy pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


    from 7aef075  Bump actions/setup-java (#7)
     new 759de4a  Remove `FUNDING.yml`
     new 246d2b4  Fix code-typo in `VersionUtils`

The 2 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:
 .github/FUNDING.yml                                      | 16 ----------------
 .../main/java/org/apache/logging/log4j/VersionUtils.java |  6 +++---
 2 files changed, 3 insertions(+), 19 deletions(-)
 delete mode 100644 .github/FUNDING.yml


[logging-log4j-tools] 01/02: Remove `FUNDING.yml`

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

vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git

commit 759de4a4060a2432d49cebca8120b80dc7af51ca
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Sun Dec 11 22:45:00 2022 +0100

    Remove `FUNDING.yml`
    
    The GitHub website only displays the first 4 users. It is unfair to the
    rest of the committers.
---
 .github/FUNDING.yml | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 37d2e63..0000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-#      https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-github: [ carterkozak, garydgregory, jvz, ppkarwasz, rgoers, vy ]


[logging-log4j-tools] 02/02: Fix code-typo in `VersionUtils`

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

vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git

commit 246d2b4a3bc94cc86c32ca7de570db31f0f66271
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Dec 12 09:11:33 2022 +0100

    Fix code-typo in `VersionUtils`
---
 .../src/main/java/org/apache/logging/log4j/VersionUtils.java        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/log4j-changelog/src/main/java/org/apache/logging/log4j/VersionUtils.java b/log4j-changelog/src/main/java/org/apache/logging/log4j/VersionUtils.java
index becf004..08933f1 100644
--- a/log4j-changelog/src/main/java/org/apache/logging/log4j/VersionUtils.java
+++ b/log4j-changelog/src/main/java/org/apache/logging/log4j/VersionUtils.java
@@ -18,14 +18,14 @@ package org.apache.logging.log4j;
 
 public final class VersionUtils {
 
-    public static final String VERSION_PATTERN = "^\\d+\\.\\d+.\\d+$";
+    public static final String VERSION_PATTERN = "^\\d+\\.\\d+.\\d+(-SNAPSHOT)?$";
 
     private VersionUtils() {}
 
     public static void requireSemanticVersioning(final String version, final String name) {
-        if (version.matches(VERSION_PATTERN)) {
+        if (!version.matches(VERSION_PATTERN)) {
             final String message = String.format(
-                    "provided version in `%s` does not match the expected `major.minor.patch` pattern: `%s`",
+                    "provided version in `%s` does not match the expected `<major>.<minor>.<patch>[-SNAPSHOT]` pattern: `%s`",
                     name, version);
             throw new IllegalArgumentException(message);
         }