From 808998f5521cb730e876927d45a26cec3151f3ff Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Thu, 29 Jun 2023 15:09:24 +0200 Subject: [PATCH] [jOOQ/jOOQ#14429] Builds should log their build date with the logo Also, no strings attached. There's no moral reason to keep the logo if users are using the free version... --- .../src/main/java/org/jooq/codegen/Constants.java | 5 +++++ jOOQ-meta/src/main/java/org/jooq/meta/Constants.java | 5 +++++ jOOQ/src/main/java/org/jooq/Constants.java | 5 +++++ .../java/org/jooq/impl/DefaultRenderContext.java | 12 +----------- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/jOOQ-codegen/src/main/java/org/jooq/codegen/Constants.java b/jOOQ-codegen/src/main/java/org/jooq/codegen/Constants.java index 083fe80061..fe6f131567 100644 --- a/jOOQ-codegen/src/main/java/org/jooq/codegen/Constants.java +++ b/jOOQ-codegen/src/main/java/org/jooq/codegen/Constants.java @@ -71,6 +71,11 @@ public final class Constants { */ public static final String FULL_VERSION = "3.19.0-SNAPSHOT"; + /** + * The build date of this version. + */ + public static final String BUILD_DATE = "0000-00-00 00:00:00"; + /** * The current jooq-runtime XSD file name. */ diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/Constants.java b/jOOQ-meta/src/main/java/org/jooq/meta/Constants.java index 41a8091c48..fd77971a4a 100644 --- a/jOOQ-meta/src/main/java/org/jooq/meta/Constants.java +++ b/jOOQ-meta/src/main/java/org/jooq/meta/Constants.java @@ -71,6 +71,11 @@ public final class Constants { */ public static final String FULL_VERSION = "3.19.0-SNAPSHOT"; + /** + * The build date of this version. + */ + public static final String BUILD_DATE = "0000-00-00 00:00:00"; + /** * The current jooq-runtime XSD file name. */ diff --git a/jOOQ/src/main/java/org/jooq/Constants.java b/jOOQ/src/main/java/org/jooq/Constants.java index 929a5f02e3..0b3a3c2581 100644 --- a/jOOQ/src/main/java/org/jooq/Constants.java +++ b/jOOQ/src/main/java/org/jooq/Constants.java @@ -71,6 +71,11 @@ public final class Constants { */ public static final String FULL_VERSION = "3.19.0-SNAPSHOT"; + /** + * The build date of this version. + */ + public static final String BUILD_DATE = "0000-00-00 00:00:00"; + /** * The current jooq-runtime XSD file name. */ diff --git a/jOOQ/src/main/java/org/jooq/impl/DefaultRenderContext.java b/jOOQ/src/main/java/org/jooq/impl/DefaultRenderContext.java index 56f917362b..78d21ef02a 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DefaultRenderContext.java +++ b/jOOQ/src/main/java/org/jooq/impl/DefaultRenderContext.java @@ -989,16 +989,6 @@ class DefaultRenderContext extends AbstractContext implements Ren * * Hint: While a) - c) work, d) is the right answer :-) * - * But before you do any of a) - c), consider this. We give away this awesome software for free, - * and we'd love to continue giving it away for free, so all we would like to ask you is to - * continue to show your love and our brand to everyone involved in your software simply in the - * log files when you load jOOQ. Please don't remove our logo. - * - * Thank you very much! If you absolutely must remove this logo, and can live with the guilt - * and shame, below is the system property that deactivates it. - * - * Cheers from the jOOQ Team. - * * -------------------------------------------------- * DEAR USER, PLEASE READ THE ABOVE BEFORE PROCEEDING */ @@ -1006,7 +996,7 @@ class DefaultRenderContext extends AbstractContext implements Ren JooqLogger l = JooqLogger.getLogger(Constants.class); String message; - message = "Thank you for using jOOQ " + Constants.FULL_VERSION; + message = "Thank you for using jOOQ " + Constants.FULL_VERSION + " (Build date: " + Constants.BUILD_DATE + ")";