diff --git a/devkit-core/README.md b/devkit-core/README.md deleted file mode 100644 index c38ceb3..0000000 --- a/devkit-core/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Module `devkit-core` - -## Introduction - -This module serves as the basement of `JDevKit`. It provides some base exceptions that `JDevKit` might use. \ No newline at end of file diff --git a/devkit-core/src/main/java/com/onixbyte/devkit/core/exceptions/NotImplementedException.java b/devkit-core/src/main/java/com/onixbyte/devkit/core/exceptions/NotImplementedException.java deleted file mode 100644 index 21ba66c..0000000 --- a/devkit-core/src/main/java/com/onixbyte/devkit/core/exceptions/NotImplementedException.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2024-2025 OnixByte. - * - * Licensed 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 - * - * http://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. - */ - -package com.onixbyte.devkit.core.exceptions; - -/** - * The {@code NotImplementedException} class is a custom runtime exception that represents a - * situation where a particular method or functionality is not implemented or is currently - * unavailable in the codebase. - *

- * This exception is typically thrown when developers need to indicate that a specific part of the - * code is incomplete or requires further implementation. It serves as a placeholder to highlight - * unfinished sections of the application during development and testing phases. - *

- * Usage Example: - *

- * public void someMethod() {
- *     // Some code...
- *     throw new NotImplementedException("""
- *     This feature will be implemented in a future release.""");
- * }
- * 
- * - * @author Zihlu Wang - * @version 1.1.0 - * @see RuntimeException - * @since 1.0.0 - */ -public class NotImplementedException extends RuntimeException { - - /** - * Creates a new {@code NotImplementedException} with no specific error message. - */ - public NotImplementedException() { - } - - /** - * Creates a new {@code NotImplementedException} with the provided error message. - * - * @param message the error message associated with this exception - */ - public NotImplementedException(String message) { - super(message); - } - - /** - * Creates a new {@code NotImplementedException} with the specified error message and a cause - * for this exception. - * - * @param message the error message associated with this exception - * @param cause the cause of this exception - */ - public NotImplementedException(String message, Throwable cause) { - super(message, cause); - } - - /** - * Creates a new {@code NotImplementedException} with the specified cause. - * - * @param cause the cause of this exception - */ - public NotImplementedException(Throwable cause) { - super(cause); - } - - /** - * Creates a new {@code NotImplementedException} with the specified error message, cause, - * suppression flag, and stack trace writable flag. - * - * @param message the error message associated with this - * exception - * @param cause the cause of this exception - * @param enableSuppression whether suppression is enabled or disabled - * @param writableStackTrace whether the stack trace should be writable - */ - public NotImplementedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } -} diff --git a/devkit-core/src/main/resources/logback.xml b/devkit-core/src/main/resources/logback.xml deleted file mode 100644 index 56cd5b7..0000000 --- a/devkit-core/src/main/resources/logback.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - ${COLOURFUL_OUTPUT} - - - - - - \ No newline at end of file diff --git a/devkit-core/src/test/java/com/onixbyte/devkit/core/exceptions/NotImplementationExceptionTest.java b/devkit-core/src/test/java/com/onixbyte/devkit/core/exceptions/NotImplementationExceptionTest.java deleted file mode 100644 index 4dcf411..0000000 --- a/devkit-core/src/test/java/com/onixbyte/devkit/core/exceptions/NotImplementationExceptionTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024-2025 OnixByte. - * - * Licensed 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 - * - * http://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. - */ - -package com.onixbyte.devkit.core.exceptions; - -import org.junit.jupiter.api.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class NotImplementationExceptionTest { - - private final static Logger log = LoggerFactory.getLogger(NotImplementationExceptionTest.class); - - @Test - public void testExceptionWithEmptyConstructor() { - try { - throw new NotImplementedException(); - } catch (NotImplementedException e) { - log.error("NotImplementedException: ", e); - } - } - - @Test - public void testExceptionWithStringConstructor() { - try { - throw new NotImplementedException("This function is not implemented yet, please contact developer for further information."); - } catch (NotImplementedException e) { - log.error("NotImplementedException: ", e); - } - } - -} diff --git a/devkit-utils/build.gradle.kts b/devkit-utils/build.gradle.kts index 307397b..5471715 100644 --- a/devkit-utils/build.gradle.kts +++ b/devkit-utils/build.gradle.kts @@ -54,7 +54,6 @@ tasks.withType { dependencies { compileOnly(libs.slf4j) implementation(libs.logback) - api(project(":devkit-core")) testImplementation(platform(libs.junit.bom)) testImplementation(libs.junit.jupiter) } diff --git a/guid/build.gradle.kts b/guid/build.gradle.kts index 0582d79..83f970b 100644 --- a/guid/build.gradle.kts +++ b/guid/build.gradle.kts @@ -54,7 +54,6 @@ tasks.withType { dependencies { compileOnly(libs.slf4j) implementation(libs.logback) - api(project(":devkit-core")) testImplementation(platform(libs.junit.bom)) testImplementation(libs.junit.jupiter) } diff --git a/key-pair-loader/build.gradle.kts b/key-pair-loader/build.gradle.kts index 305f713..28e4e8f 100644 --- a/key-pair-loader/build.gradle.kts +++ b/key-pair-loader/build.gradle.kts @@ -54,7 +54,6 @@ tasks.withType { dependencies { compileOnly(libs.slf4j) implementation(libs.logback) - api(project(":devkit-core")) testImplementation(libs.jwt.core) testImplementation(platform(libs.junit.bom)) testImplementation(libs.junit.jupiter) diff --git a/num4j/build.gradle.kts b/num4j/build.gradle.kts index 32ba2b3..e58a9e7 100644 --- a/num4j/build.gradle.kts +++ b/num4j/build.gradle.kts @@ -54,7 +54,6 @@ tasks.withType { dependencies { compileOnly(libs.slf4j) implementation(libs.logback) - api(project(":devkit-core")) testImplementation(platform(libs.junit.bom)) testImplementation(libs.junit.jupiter) } diff --git a/settings.gradle.kts b/settings.gradle.kts index 1f5b28d..0f99282 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -19,7 +19,6 @@ rootProject.name = "JDevKit" include( "devkit-bom", - "devkit-core", "devkit-utils", "guid", "key-pair-loader", diff --git a/simple-jwt-facade/build.gradle.kts b/simple-jwt-facade/build.gradle.kts index f9e09ef..fcf11ba 100644 --- a/simple-jwt-facade/build.gradle.kts +++ b/simple-jwt-facade/build.gradle.kts @@ -55,7 +55,6 @@ dependencies { compileOnly(libs.slf4j) implementation(libs.logback) - api(project(":devkit-core")) api(project(":devkit-utils")) api(project(":guid"))