From f0f225c8fa52cf52ff6c2673c031694191791012 Mon Sep 17 00:00:00 2001 From: Vladimir Orany Date: Tue, 3 Dec 2024 18:48:24 +0100 Subject: [PATCH] blocking execution of the console script --- build.gradle | 2 +- buildSrc/build.gradle | 2 +- .../groovy/micronaut-compatibility.gradle | 2 +- docs/guide/guide.gradle | 2 +- .../gradle.properties | 2 +- ...cronaut-console-example-application.gradle | 2 +- .../console/example/Application.java | 2 +- .../AuthenticationProviderUserPassword.java | 2 +- .../console/example/SimpleAuthentication.java | 2 +- .../example/SimpleAuthenticationResponse.java | 2 +- .../src/main/resources/logback.xml | 2 +- ...nautSecurityDisabledIntegrationSpec.groovy | 2 +- .../MicronautSecurityIntegrationSpec.groovy | 2 +- .../src/test/resources/execute.sh | 2 +- .../micronaut-console-example-kotlin.gradle | 11 +++--- .../console/example/kotlin/Application.kt | 2 +- .../src/main/resources/logback.xml | 2 +- gradle.properties | 4 +-- .../micronaut-console.gradle | 3 +- .../micronaut/console/AuditService.java | 2 +- .../micronaut/console/BindingProvider.java | 2 +- .../console/ConsoleConfiguration.java | 2 +- .../micronaut/console/ConsoleEngine.java | 2 +- .../console/ConsoleEngineFactory.java | 2 +- .../micronaut/console/ConsoleException.java | 2 +- .../console/ConsoleSecurityException.java | 2 +- .../micronaut/console/ConsoleService.java | 2 +- .../console/DefaultAuditService.java | 2 +- .../console/DefaultBindingProvider.java | 2 +- .../console/DefaultConsoleEngineFactory.java | 2 +- .../console/DefaultConsoleService.java | 2 +- .../micronaut/console/ExecutionResult.java | 2 +- .../agorapulse/micronaut/console/Script.java | 2 +- .../micronaut/console/SecurityAdvisor.java | 2 +- .../agorapulse/micronaut/console/User.java | 2 +- .../console/advisors/AddressAdvisor.java | 2 +- .../console/advisors/EnabledAdvisor.java | 2 +- .../console/advisors/UntilAdvisor.java | 2 +- .../console/advisors/UsersAdvisor.java | 2 +- .../console/function/AuthConsoleHandler.java | 2 +- .../console/function/AuthorizedScript.java | 2 +- .../console/function/ConsoleHandler.java | 2 +- .../CompilerConfigurationCustomizer.java | 2 +- .../console/groovy/DsldGenerator.java | 2 +- .../console/groovy/GdslGenerator.java | 2 +- .../console/groovy/GroovyConsoleEngine.java | 2 +- .../http/AnonymousUserArgumentBinder.java | 2 +- .../console/http/ConsoleController.java | 5 ++- .../console/http/ConsoleHeadersFilter.java | 2 +- .../MicronautSecurityUserArgumentBinder.java | 2 +- .../console/http/RequestBindingProvider.java | 2 +- .../micronaut/console/http/RequestHolder.java | 2 +- .../console/http/ScriptJsonError.java | 2 +- .../micronaut/console/ide/DslGenerator.java | 2 +- .../micronaut/console/ide/TextGenerator.java | 2 +- .../jsr223/JavaScriptingConsoleEngine.java | 2 +- .../JavaScriptingConsoleEngineFactory.java | 2 +- .../console/util/ExceptionSanitizer.java | 2 +- .../console/BindingProviderSpec.groovy | 2 +- .../micronaut/console/UserTest.groovy | 2 +- .../function/AuthConsoleHandlerSpec.groovy | 2 +- .../function/ConsoleHandlerSpec.groovy | 2 +- .../micronaut/console/http/CloudSpec.groovy | 2 +- .../console/http/ConsoleControllerSpec.groovy | 2 +- .../http/ConsoleHeadersFilterSpec.groovy | 2 +- .../http/DefaultInterceptedInterface.groovy | 2 +- .../console/http/DemoBindingProvider.groovy | 2 +- .../console/http/InterceptedInterface.groovy | 2 +- .../micronaut/console/http/MagicAdvisor.java | 2 +- .../micronaut/console/http/ParentClass.groovy | 2 +- .../console/http/SimpleUserBinder.java | 2 +- .../micronaut/console/http/UntilSpec.groovy | 2 +- .../http/ConsoleControllerSpec/jsr223.js | 2 +- .../http/ConsoleControllerSpec/printer.groovy | 6 ++++ .../src/test/resources/log4j2.xml | 2 +- settings.gradle | 35 ++++++++----------- 76 files changed, 102 insertions(+), 102 deletions(-) diff --git a/build.gradle b/build.gradle index 334e44d..f729297 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 2291bf5..27d8ccb 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/buildSrc/src/main/groovy/micronaut-compatibility.gradle b/buildSrc/src/main/groovy/micronaut-compatibility.gradle index 86d181d..9f63e14 100644 --- a/buildSrc/src/main/groovy/micronaut-compatibility.gradle +++ b/buildSrc/src/main/groovy/micronaut-compatibility.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/docs/guide/guide.gradle b/docs/guide/guide.gradle index 0c1da25..2e474a9 100644 --- a/docs/guide/guide.gradle +++ b/docs/guide/guide.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/gradle.properties b/examples/micronaut-console-example-application/gradle.properties index c9a68a1..4a83552 100644 --- a/examples/micronaut-console-example-application/gradle.properties +++ b/examples/micronaut-console-example-application/gradle.properties @@ -1,7 +1,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# Copyright 2020-2023 Agorapulse. +# Copyright 2020-2024 Agorapulse. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/micronaut-console-example-application.gradle b/examples/micronaut-console-example-application/micronaut-console-example-application.gradle index 9cd0662..838c8c5 100644 --- a/examples/micronaut-console-example-application/micronaut-console-example-application.gradle +++ b/examples/micronaut-console-example-application/micronaut-console-example-application.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/Application.java b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/Application.java index 8ae5a8c..74c823d 100644 --- a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/Application.java +++ b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/Application.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/AuthenticationProviderUserPassword.java b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/AuthenticationProviderUserPassword.java index 2a311b4..c19eb10 100644 --- a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/AuthenticationProviderUserPassword.java +++ b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/AuthenticationProviderUserPassword.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthentication.java b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthentication.java index 2344d9b..5db684b 100644 --- a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthentication.java +++ b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthentication.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthenticationResponse.java b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthenticationResponse.java index 9b38c7d..727d737 100644 --- a/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthenticationResponse.java +++ b/examples/micronaut-console-example-application/src/main/java/micronaut/console/example/SimpleAuthenticationResponse.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/main/resources/logback.xml b/examples/micronaut-console-example-application/src/main/resources/logback.xml index ec9b7cc..b6a2175 100644 --- a/examples/micronaut-console-example-application/src/main/resources/logback.xml +++ b/examples/micronaut-console-example-application/src/main/resources/logback.xml @@ -2,7 +2,7 @@ SPDX-License-Identifier: Apache-2.0 - Copyright 2020-2023 Agorapulse. + Copyright 2020-2024 Agorapulse. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityDisabledIntegrationSpec.groovy b/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityDisabledIntegrationSpec.groovy index ff7e2ce..4f04420 100644 --- a/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityDisabledIntegrationSpec.groovy +++ b/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityDisabledIntegrationSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityIntegrationSpec.groovy b/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityIntegrationSpec.groovy index b133fc8..57fa2a1 100644 --- a/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityIntegrationSpec.groovy +++ b/examples/micronaut-console-example-application/src/test/groovy/micronaut/console/example/MicronautSecurityIntegrationSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-application/src/test/resources/execute.sh b/examples/micronaut-console-example-application/src/test/resources/execute.sh index 8135848..af29114 100755 --- a/examples/micronaut-console-example-application/src/test/resources/execute.sh +++ b/examples/micronaut-console-example-application/src/test/resources/execute.sh @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# Copyright 2020-2023 Agorapulse. +# Copyright 2020-2024 Agorapulse. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-kotlin/micronaut-console-example-kotlin.gradle b/examples/micronaut-console-example-kotlin/micronaut-console-example-kotlin.gradle index 44d9365..6263a7f 100644 --- a/examples/micronaut-console-example-kotlin/micronaut-console-example-kotlin.gradle +++ b/examples/micronaut-console-example-kotlin/micronaut-console-example-kotlin.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,11 +16,9 @@ * limitations under the License. */ plugins { - id("org.jetbrains.kotlin.jvm") version "1.9.21" - id("org.jetbrains.kotlin.plugin.allopen") version "1.9.21" - id("com.google.devtools.ksp") version "1.9.21-1.0.15" - id("com.github.johnrengelman.shadow") version "8.1.1" - id("io.micronaut.minimal.application") version "4.2.0" + id("org.jetbrains.kotlin.jvm") + id("org.jetbrains.kotlin.plugin.allopen") + id("io.micronaut.minimal.application") } config { @@ -48,7 +46,6 @@ repositories { dependencies { implementation project(':micronaut-console') - ksp("io.micronaut:micronaut-http-validation") implementation("io.micronaut.kotlin:micronaut-kotlin-runtime") implementation("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}") diff --git a/examples/micronaut-console-example-kotlin/src/main/kotlin/micronaut/console/example/kotlin/Application.kt b/examples/micronaut-console-example-kotlin/src/main/kotlin/micronaut/console/example/kotlin/Application.kt index 975f4ea..37bb769 100644 --- a/examples/micronaut-console-example-kotlin/src/main/kotlin/micronaut/console/example/kotlin/Application.kt +++ b/examples/micronaut-console-example-kotlin/src/main/kotlin/micronaut/console/example/kotlin/Application.kt @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/micronaut-console-example-kotlin/src/main/resources/logback.xml b/examples/micronaut-console-example-kotlin/src/main/resources/logback.xml index ec9b7cc..b6a2175 100644 --- a/examples/micronaut-console-example-kotlin/src/main/resources/logback.xml +++ b/examples/micronaut-console-example-kotlin/src/main/resources/logback.xml @@ -2,7 +2,7 @@ SPDX-License-Identifier: Apache-2.0 - Copyright 2020-2023 Agorapulse. + Copyright 2020-2024 Agorapulse. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/gradle.properties b/gradle.properties index 3d5c9c3..379d080 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # # SPDX-License-Identifier: Apache-2.0 # -# Copyright 2020-2023 Agorapulse. +# Copyright 2020-2024 Agorapulse. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ slug=agorapulse/micronaut-console group=com.agorapulse version=4.0.0-SNAPSHOT -kordampPluginVersion=0.51.0 +kordampPluginVersion=0.53.0 gitPublishPluginVersion=2.1.3 nexusPluginVersion=1.0.0 diff --git a/libs/micronaut-console/micronaut-console.gradle b/libs/micronaut-console/micronaut-console.gradle index 1ff9e90..08fbe6e 100644 --- a/libs/micronaut-console/micronaut-console.gradle +++ b/libs/micronaut-console/micronaut-console.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - plugins { id 'io.micronaut.library' version "$micronautGradlePluginVersion" } diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/AuditService.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/AuditService.java index 7caf7ee..c6a593e 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/AuditService.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/AuditService.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/BindingProvider.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/BindingProvider.java index 6b1c271..ee01a49 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/BindingProvider.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/BindingProvider.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleConfiguration.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleConfiguration.java index 9a9238a..86d87da 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleConfiguration.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleConfiguration.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngine.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngine.java index 1975f0d..9454a10 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngine.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngine.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngineFactory.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngineFactory.java index 9994396..6e86461 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngineFactory.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleEngineFactory.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleException.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleException.java index 586e9c1..78c7eae 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleException.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleException.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleSecurityException.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleSecurityException.java index 3ead701..e4f01ee 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleSecurityException.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleSecurityException.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleService.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleService.java index 76ab854..e804a7b 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleService.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ConsoleService.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultAuditService.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultAuditService.java index 5c47a49..7d067e9 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultAuditService.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultAuditService.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultBindingProvider.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultBindingProvider.java index 526f9a5..2538270 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultBindingProvider.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultBindingProvider.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleEngineFactory.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleEngineFactory.java index bf79d52..19b56b5 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleEngineFactory.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleEngineFactory.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleService.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleService.java index 92b1357..1ccd963 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleService.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/DefaultConsoleService.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ExecutionResult.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ExecutionResult.java index ed94da5..2d78520 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ExecutionResult.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ExecutionResult.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/Script.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/Script.java index fba1489..4f7bb9a 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/Script.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/Script.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/SecurityAdvisor.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/SecurityAdvisor.java index 6bfbced..688fa6b 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/SecurityAdvisor.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/SecurityAdvisor.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/User.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/User.java index ebfab04..3daec13 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/User.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/User.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/AddressAdvisor.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/AddressAdvisor.java index 8505f7f..82a4cfb 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/AddressAdvisor.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/AddressAdvisor.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/EnabledAdvisor.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/EnabledAdvisor.java index f994ffc..3edba64 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/EnabledAdvisor.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/EnabledAdvisor.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UntilAdvisor.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UntilAdvisor.java index 71bb1ea..56a01f3 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UntilAdvisor.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UntilAdvisor.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UsersAdvisor.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UsersAdvisor.java index 7104618..572cf9f 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UsersAdvisor.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/advisors/UsersAdvisor.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandler.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandler.java index 3a7af45..599bb3e 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandler.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandler.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthorizedScript.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthorizedScript.java index 58f7495..0e1d374 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthorizedScript.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/AuthorizedScript.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/ConsoleHandler.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/ConsoleHandler.java index e21ad32..9ebb9c0 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/ConsoleHandler.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/function/ConsoleHandler.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/CompilerConfigurationCustomizer.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/CompilerConfigurationCustomizer.java index 625b7da..592d8fb 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/CompilerConfigurationCustomizer.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/CompilerConfigurationCustomizer.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/DsldGenerator.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/DsldGenerator.java index 8668a30..6e3f276 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/DsldGenerator.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/DsldGenerator.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GdslGenerator.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GdslGenerator.java index 10bb5b9..d67f413 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GdslGenerator.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GdslGenerator.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GroovyConsoleEngine.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GroovyConsoleEngine.java index 06548c1..312be4e 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GroovyConsoleEngine.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/groovy/GroovyConsoleEngine.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/AnonymousUserArgumentBinder.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/AnonymousUserArgumentBinder.java index 0786325..63ab7de 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/AnonymousUserArgumentBinder.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/AnonymousUserArgumentBinder.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleController.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleController.java index 9158b83..67b1a80 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleController.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleController.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,12 +37,15 @@ import io.micronaut.http.annotation.PathVariable; import io.micronaut.http.annotation.Post; import io.micronaut.http.annotation.Produces; +import io.micronaut.scheduling.TaskExecutors; +import io.micronaut.scheduling.annotation.ExecuteOn; import java.util.List; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; +@ExecuteOn(TaskExecutors.BLOCKING) @Controller("${console.path:/console}") public class ConsoleController { diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilter.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilter.java index b7a7771..29a2c47 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilter.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilter.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/MicronautSecurityUserArgumentBinder.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/MicronautSecurityUserArgumentBinder.java index af8a3ba..e0cb291 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/MicronautSecurityUserArgumentBinder.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/MicronautSecurityUserArgumentBinder.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestBindingProvider.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestBindingProvider.java index 82b554b..8e110d8 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestBindingProvider.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestBindingProvider.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestHolder.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestHolder.java index daa5757..4c1f35f 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestHolder.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/RequestHolder.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ScriptJsonError.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ScriptJsonError.java index d8f43c9..39c5d86 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ScriptJsonError.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/http/ScriptJsonError.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/DslGenerator.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/DslGenerator.java index cd8b2e3..809c2e3 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/DslGenerator.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/DslGenerator.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/TextGenerator.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/TextGenerator.java index 35e49e7..b587695 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/TextGenerator.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/ide/TextGenerator.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngine.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngine.java index 1ae7a37..3fba7a0 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngine.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngine.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngineFactory.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngineFactory.java index b11ea28..5a27600 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngineFactory.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/jsr223/JavaScriptingConsoleEngineFactory.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/util/ExceptionSanitizer.java b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/util/ExceptionSanitizer.java index f076482..47352e6 100644 --- a/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/util/ExceptionSanitizer.java +++ b/libs/micronaut-console/src/main/groovy/com/agorapulse/micronaut/console/util/ExceptionSanitizer.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/BindingProviderSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/BindingProviderSpec.groovy index ce10893..38912e0 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/BindingProviderSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/BindingProviderSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/UserTest.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/UserTest.groovy index 244d7d6..5ec53fb 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/UserTest.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/UserTest.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandlerSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandlerSpec.groovy index 4969859..6f7b86b 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandlerSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/AuthConsoleHandlerSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/ConsoleHandlerSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/ConsoleHandlerSpec.groovy index d3c6660..0c6ab21 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/ConsoleHandlerSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/function/ConsoleHandlerSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/CloudSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/CloudSpec.groovy index 733e42f..8a5d2c4 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/CloudSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/CloudSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleControllerSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleControllerSpec.groovy index fb158a4..edaafa0 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleControllerSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleControllerSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilterSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilterSpec.groovy index 5cd10fb..fc113a4 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilterSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ConsoleHeadersFilterSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DefaultInterceptedInterface.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DefaultInterceptedInterface.groovy index a8978a8..5bb3ea4 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DefaultInterceptedInterface.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DefaultInterceptedInterface.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DemoBindingProvider.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DemoBindingProvider.groovy index 20b59e9..056f358 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DemoBindingProvider.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/DemoBindingProvider.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/InterceptedInterface.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/InterceptedInterface.groovy index 186c7dc..c8ed19f 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/InterceptedInterface.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/InterceptedInterface.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/MagicAdvisor.java b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/MagicAdvisor.java index cca0953..f588259 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/MagicAdvisor.java +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/MagicAdvisor.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ParentClass.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ParentClass.groovy index 9f35f7e..76d31c2 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ParentClass.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/ParentClass.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/SimpleUserBinder.java b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/SimpleUserBinder.java index 1556db0..2a9bfa9 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/SimpleUserBinder.java +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/SimpleUserBinder.java @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/UntilSpec.groovy b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/UntilSpec.groovy index 6eeedeb..f5e5ece 100644 --- a/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/UntilSpec.groovy +++ b/libs/micronaut-console/src/test/groovy/com/agorapulse/micronaut/console/http/UntilSpec.groovy @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/jsr223.js b/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/jsr223.js index 81e6381..9eef7fe 100644 --- a/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/jsr223.js +++ b/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/jsr223.js @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/printer.groovy b/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/printer.groovy index fef7286..b1b3ae4 100644 --- a/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/printer.groovy +++ b/libs/micronaut-console/src/test/resources/com/agorapulse/micronaut/console/http/ConsoleControllerSpec/printer.groovy @@ -1,3 +1,9 @@ +import io.netty.util.concurrent.FastThreadLocalThread + +if (Thread.currentThread() instanceof FastThreadLocalThread) { + throw new IllegalStateException('Running on FastThreadLocalThread will fail execution of HTTP client requests') +} + println "This is a debug message" "Hello Developer!" diff --git a/libs/micronaut-console/src/test/resources/log4j2.xml b/libs/micronaut-console/src/test/resources/log4j2.xml index 8d37a85..ba82237 100644 --- a/libs/micronaut-console/src/test/resources/log4j2.xml +++ b/libs/micronaut-console/src/test/resources/log4j2.xml @@ -3,7 +3,7 @@ SPDX-License-Identifier: Apache-2.0 - Copyright 2020-2023 Agorapulse. + Copyright 2020-2024 Agorapulse. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/settings.gradle b/settings.gradle index c15e0ff..81ceb19 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: Apache-2.0 * - * Copyright 2020-2023 Agorapulse. + * Copyright 2020-2024 Agorapulse. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,35 +15,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -pluginManagement { - repositories { - gradlePluginPortal() - mavenCentral() - } - plugins { - id 'org.kordamp.gradle.settings' version kordampPluginVersion - id 'org.kordamp.gradle.groovy-project' version kordampPluginVersion - id 'org.kordamp.gradle.checkstyle' version kordampPluginVersion - id 'org.kordamp.gradle.codenarc' version kordampPluginVersion - id 'org.kordamp.gradle.guide' version kordampPluginVersion - id 'org.kordamp.gradle.coveralls' version kordampPluginVersion - id 'org.ajoberstar.git-publish' version gitPublishPluginVersion - id 'io.github.gradle-nexus.publish-plugin' version nexusPluginVersion - } -} - buildscript { repositories { mavenCentral() + gradlePluginPortal() } - dependencies { + classpath group: 'org.kordamp.gradle', name: 'settings-gradle-plugin', version: kordampPluginVersion + classpath group: 'org.kordamp.gradle', name: 'groovy-project-gradle-plugin', version: kordampPluginVersion + classpath group: 'org.kordamp.gradle', name: 'checkstyle-gradle-plugin', version: kordampPluginVersion + classpath group: 'org.kordamp.gradle', name: 'codenarc-gradle-plugin', version: kordampPluginVersion + classpath group: 'org.kordamp.gradle', name: 'guide-gradle-plugin', version: kordampPluginVersion + classpath group: 'org.kordamp.gradle', name: 'coveralls-gradle-plugin', version: kordampPluginVersion + classpath group: 'org.ajoberstar', name: 'gradle-git-publish', version: gitPublishPluginVersion + classpath group: 'io.github.gradle-nexus', name: 'publish-plugin', version: nexusPluginVersion + classpath group: 'io.micronaut.gradle', name: 'micronaut-minimal-plugin', version: micronautGradlePluginVersion + classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: kotlinVersion + classpath group: 'org.jetbrains.kotlin', name: 'kotlin-allopen', version: kotlinVersion + classpath 'org.apache.httpcomponents:httpclient:4.5.5' } } plugins { - id 'org.kordamp.gradle.settings' + id 'org.kordamp.gradle.settings' version "$kordampPluginVersion" id 'com.gradle.enterprise' version '3.15.1' }