From 1ff231b16157591e9404b6ac1275e71f000ff81f Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Tue, 11 Jun 2019 15:22:31 -0400 Subject: [PATCH] Azure Functions + Resteasy Extension root path docs fix imports fix poms and typos doc suggestions Add mp rest-client tck configuration Introduce handling for mp/uri in accordance to spec Fixes: #2795 Remove misleading sentence from Kubernetes / ap4k guide The guide will updated when https://github.com/ap4k/ap4k/issues/227 is implemented and the new version included into Quarkus Implement mock mailer by default on dev/test fix(#2789): fix Jackson version issue The oder of import in the bom is important, we need to import Jackson first before RESTEasy. After this, exluding and importing Jackson in the quarkus-smallrye-openapi extention is useless. Arc - correct circular dependency check to detect self-injection as well, added test. feat(openapi): Allows OpenAPI path to contain segments e.g /api/openapi/ Fixes #2756 Arc - Implement inheritance of scopes for beans. register reflective classes from bean archive index by providing the index as part of the reflective class build item Document InjectionPointTransformer. Arc - register certain CDI components under BuildContext so extensions can use that. Modify SpringDIProcessor to make use of this. Subclasses/client proxies - skip delegation if not constructed yet - resolves #2774 Docs - CDI guide - remove unnecessary dummy constructor feat(agroal): Adds a configuration option to enable datasource metrics Fixes #2820 Quarkus bypasses Nexus and downloads artefacts directly from maven central Fix title levels in Undertow reference guide Remove two ArC injection warnings Update to smallrye-jwt-1.1 Moved common stuff to panache-common-deployment, ported `@GenerateBridge` to non-rx panache Added two finals Skip racey TCK test This is due to https://github.com/eclipse/microprofile-rest-client/issues/203 Undertow 2.0.21.Final Better error reporting if test resource fails to start Remove license headers --- bom/pom.xml | 59 ++-- build-parent/pom.xml | 26 +- core/builder/pom.xml | 16 - .../java/io/quarkus/builder/BuildChain.java | 16 - .../io/quarkus/builder/BuildChainBuilder.java | 16 - .../java/io/quarkus/builder/BuildContext.java | 16 - .../io/quarkus/builder/BuildException.java | 16 - .../builder/BuildExecutionBuilder.java | 16 - .../io/quarkus/builder/BuildProvider.java | 16 - .../java/io/quarkus/builder/BuildResult.java | 16 - .../java/io/quarkus/builder/BuildStep.java | 16 - .../io/quarkus/builder/BuildStepBuilder.java | 16 - .../quarkus/builder/ChainBuildException.java | 16 - .../java/io/quarkus/builder/Constraint.java | 16 - .../main/java/io/quarkus/builder/Consume.java | 16 - .../java/io/quarkus/builder/ConsumeFlag.java | 16 - .../java/io/quarkus/builder/ConsumeFlags.java | 16 - .../java/io/quarkus/builder/Execution.java | 16 - .../java/io/quarkus/builder/FinalStep.java | 16 - .../main/java/io/quarkus/builder/ItemId.java | 16 - .../java/io/quarkus/builder/Messages.java | 16 - .../main/java/io/quarkus/builder/Produce.java | 16 - .../java/io/quarkus/builder/ProduceFlag.java | 16 - .../java/io/quarkus/builder/ProduceFlags.java | 16 - .../java/io/quarkus/builder/StepInfo.java | 16 - .../main/java/io/quarkus/builder/Version.java | 16 - .../io/quarkus/builder/Version.properties | 16 - .../io/quarkus/builder/diag/Diagnostic.java | 16 - .../io/quarkus/builder/item/BuildItem.java | 16 - .../builder/item/EnumNamedBuildItem.java | 16 - .../builder/item/EnumNamedMultiBuildItem.java | 16 - .../quarkus/builder/item/MultiBuildItem.java | 16 - .../quarkus/builder/item/NamedBuildItem.java | 16 - .../builder/item/NamedMultiBuildItem.java | 16 - .../quarkus/builder/item/SimpleBuildItem.java | 16 - .../builder/item/SymbolicBuildItem.java | 16 - .../io/quarkus/builder/location/Location.java | 16 - .../java/io/quarkus/builder/BasicTests.java | 16 - core/creator/pom.xml | 16 - .../io/quarkus/creator/AppCreationPhase.java | 17 -- .../java/io/quarkus/creator/AppCreator.java | 17 -- .../quarkus/creator/AppCreatorException.java | 17 -- .../quarkus/creator/config/Configurable.java | 17 -- .../reader/MappedPropertiesHandler.java | 17 -- .../reader/MultirootedConfigHandler.java | 17 -- .../config/reader/PropertiesConfigReader.java | 17 -- .../PropertiesConfigReaderException.java | 17 -- .../config/reader/PropertiesConfigUtils.java | 17 -- .../config/reader/PropertiesHandler.java | 17 -- .../config/reader/PropertyContext.java | 17 -- .../creator/config/reader/PropertyLine.java | 17 -- .../config/reader/PropertyLineConverter.java | 17 -- .../io/quarkus/creator/outcome/Errors.java | 17 -- .../quarkus/creator/outcome/OutcomeMap.java | 17 -- .../creator/outcome/OutcomeProvider.java | 17 -- .../outcome/OutcomeProviderDescription.java | 17 -- .../outcome/OutcomeProviderRegistration.java | 17 -- .../creator/outcome/OutcomeResolver.java | 17 -- .../outcome/OutcomeResolverFactory.java | 17 -- .../creator/phase/augment/AugmentOutcome.java | 17 -- .../creator/phase/augment/AugmentPhase.java | 17 -- .../creator/phase/curate/CurateOutcome.java | 17 -- .../creator/phase/curate/CuratePhase.java | 17 -- .../phase/curate/DefaultArtifactVersion.java | 17 -- .../phase/curate/DefaultUpdateDiscovery.java | 17 -- .../phase/curate/DependenciesOrigin.java | 16 - .../creator/phase/curate/UpdateDiscovery.java | 17 -- .../creator/phase/curate/VersionUpdate.java | 16 - .../phase/curate/VersionUpdateNumber.java | 16 - .../generateconfig/GenerateConfigPhase.java | 17 -- .../ErrorReplacingProcessReader.java | 16 - .../phase/nativeimage/NativeImageOutcome.java | 17 -- .../phase/nativeimage/NativeImagePhase.java | 17 -- .../phase/nativeimage/ReportAnalyzer.java | 16 - .../phase/runnerjar/RunnerJarOutcome.java | 17 -- .../phase/runnerjar/RunnerJarPhase.java | 17 -- .../quarkus/creator/config/test/Address.java | 16 - .../creator/config/test/MappingTestCase.java | 17 -- .../quarkus/creator/config/test/Person.java | 16 - .../config/test/PersonAddressTestBase.java | 17 -- .../creator/config/test/SmallryeTestCase.java | 17 -- .../creator/config/test/SwitchTestCase.java | 17 -- .../io/quarkus/creator/config/test/User.java | 17 -- .../test/CircularDependencyTestCase.java | 17 -- .../test/ManuallyProvidedOutcomeTestCase.java | 17 -- ...roviderNotFoundForOutcomeTypeTestCase.java | 17 -- .../test/SimplePhaseSequenceTestCase.java | 17 -- .../outcome/test/SinglePhaseTestCase.java | 17 -- .../creator/outcome/test/TestResult.java | 17 -- core/deployment/pom.xml | 16 - .../deployment/ApplicationArchive.java | 16 - .../deployment/ApplicationArchiveImpl.java | 16 - .../quarkus/deployment/BuildProducerImpl.java | 16 - .../io/quarkus/deployment/Capabilities.java | 16 - .../io/quarkus/deployment/ClassOutput.java | 16 - .../quarkus/deployment/QuarkusAugmentor.java | 16 - .../deployment/QuarkusClassWriter.java | 16 - .../io/quarkus/deployment/QuarkusConfig.java | 16 - .../deployment/annotations/ExecutionTime.java | 16 - ...AdditionalApplicationArchiveBuildItem.java | 16 - ...onalApplicationArchiveMarkerBuildItem.java | 16 - .../ApplicationArchivesBuildItem.java | 16 - .../ApplicationClassNameBuildItem.java | 16 - .../builditem/ApplicationIndexBuildItem.java | 16 - .../builditem/ArchiveRootBuildItem.java | 16 - .../BytecodeTransformerBuildItem.java | 16 - .../builditem/CapabilityBuildItem.java | 16 - .../builditem/ClassOutputBuildItem.java | 16 - .../builditem/CombinedIndexBuildItem.java | 16 - .../builditem/ExecutorBuildItem.java | 16 - .../ExtensionSslNativeSupportBuildItem.java | 16 - .../builditem/GeneratedClassBuildItem.java | 16 - .../builditem/GeneratedResourceBuildItem.java | 16 - .../HotDeploymentWatchedFileBuildItem.java | 16 - .../MainBytecodeRecorderBuildItem.java | 16 - .../builditem/MainClassBuildItem.java | 16 - .../builditem/ProxyUnwrapperBuildItem.java | 16 - .../builditem/ServiceStartBuildItem.java | 16 - .../builditem/ShutdownContextBuildItem.java | 16 - .../builditem/SslNativeConfigBuildItem.java | 16 - .../StaticBytecodeRecorderBuildItem.java | 16 - .../builditem/SystemPropertyBuildItem.java | 16 - .../builditem/WiringClassBuildItem.java | 16 - .../substrate/ReflectiveClassBuildItem.java | 16 - .../substrate/ReflectiveFieldBuildItem.java | 16 - .../ReflectiveHierarchyBuildItem.java | 27 +- .../substrate/ReflectiveMethodBuildItem.java | 16 - .../RuntimeInitializedClassBuildItem.java | 16 - .../RuntimeReinitializedClassBuildItem.java | 16 - .../substrate/ServiceProviderBuildItem.java | 16 - .../substrate/SubstrateConfigBuildItem.java | 16 - .../substrate/SubstrateOutputBuildItem.java | 16 - .../SubstrateProxyDefinitionBuildItem.java | 16 - .../substrate/SubstrateResourceBuildItem.java | 16 - .../SubstrateResourceBundleBuildItem.java | 16 - .../SubstrateSystemPropertyBuildItem.java | 16 - .../configuration/ConfigurationError.java | 16 - .../index/ApplicationArchiveBuildStep.java | 16 - .../deployment/index/ArtifactIndex.java | 16 - .../deployment/index/ArtifactResolver.java | 16 - .../index/ClassPathArtifactResolver.java | 16 - .../index/IndexDependencyConfig.java | 16 - .../deployment/index/MapArtifactResolver.java | 16 - .../deployment/index/ResolvedArtifact.java | 16 - .../logging/LoggingResourceProcessor.java | 16 - .../recording/BytecodeRecorderImpl.java | 16 - .../deployment/recording/RecorderContext.java | 16 - .../steps/ApplicationIndexBuildStep.java | 16 - .../steps/CapabilityAggregationStep.java | 16 - .../steps/CombinedIndexBuildStep.java | 16 - .../deployment/steps/DevModeBuildStep.java | 16 - .../deployment/steps/MainClassBuildStep.java | 16 - .../steps/ReflectiveHierarchyStep.java | 44 +-- .../steps/RegisterForReflectionBuildStep.java | 16 - .../steps/SubstrateAutoFeatureStep.java | 16 - .../steps/SubstrateConfigBuildStep.java | 16 - .../SubstrateSystemPropertiesBuildStep.java | 16 - .../deployment/steps/ThreadPoolSetup.java | 16 - .../io/quarkus/runner/RuntimeClassLoader.java | 16 - .../java/io/quarkus/runner/RuntimeRunner.java | 16 - .../ApplicationArchiveBuildStepTestCase.java | 16 - .../ClassPathArtifactResolverTestCase.java | 16 - .../recording/BytecodeRecorderTestCase.java | 16 - .../deployment/recording/NonSerializable.java | 16 - .../deployment/recording/TestJavaBean.java | 16 - .../deployment/recording/TestTemplate.java | 16 - core/devmode/pom.xml | 16 - .../io/quarkus/dev/ClassLoaderCompiler.java | 16 - .../main/java/io/quarkus/dev/CopyUtils.java | 16 - .../main/java/io/quarkus/dev/DevModeMain.java | 16 - .../dev/HotDeploymentConfigFileBuildStep.java | 16 - .../quarkus/dev/RuntimeCompilationSetup.java | 16 - .../quarkus/dev/RuntimeUpdatesProcessor.java | 16 - core/pom.xml | 16 - .../ExtensionAnnotationProcessor.java | 16 - core/runtime/pom.xml | 16 - .../java/io/quarkus/runtime/Application.java | 16 - .../java/io/quarkus/runtime/ConfigHelper.java | 16 - .../io/quarkus/runtime/ExecutorTemplate.java | 16 - .../quarkus/runtime/ObjectSubstitution.java | 16 - .../main/java/io/quarkus/runtime/Quarkus.java | 16 - .../io/quarkus/runtime/ResourceHelper.java | 16 - .../java/io/quarkus/runtime/RuntimeValue.java | 16 - .../io/quarkus/runtime/ShutdownContext.java | 16 - .../io/quarkus/runtime/ShutdownEvent.java | 16 - .../io/quarkus/runtime/StartupContext.java | 16 - .../java/io/quarkus/runtime/StartupEvent.java | 16 - .../java/io/quarkus/runtime/StartupTask.java | 16 - .../main/java/io/quarkus/runtime/Timing.java | 16 - .../annotations/RegisterForReflection.java | 16 - .../quarkus/runtime/annotations/Template.java | 16 - .../runtime/graal/ConstructorReplacement.java | 16 - .../runtime/graal/FieldReplacement.java | 16 - .../runtime/graal/LoggingSubstitutions.java | 16 - .../graal/MappedByteBufferReplacement.java | 16 - .../runtime/graal/MethodReplacement.java | 16 - .../runtime/graal/ParameterReplacement.java | 16 - .../runtime/graal/QuarkusReplacement.java | 16 - .../graal/Target_javax_management_JMX.java | 16 - ...Target_javax_xml_TransformerException.java | 16 - .../runtime/graal/TimingReplacement.java | 16 - .../quarkus/runtime/logging/AsyncConfig.java | 16 - .../runtime/logging/CategoryConfig.java | 16 - .../runtime/logging/CleanupFilterConfig.java | 16 - .../runtime/logging/ConsoleConfig.java | 16 - .../quarkus/runtime/logging/FileConfig.java | 16 - core/test-extension/deployment/pom.xml | 16 - core/test-extension/pom.xml | 16 - core/test-extension/runtime/pom.xml | 16 - devtools/aesh/pom.xml | 16 - devtools/common-core/pom.xml | 16 - .../io/quarkus/dependencies/Extension.java | 16 - .../src/main/filtered/quarkus.properties | 17 -- .../io/quarkus/maven/utilities/MojoUtils.java | 17 -- .../io/quarkus/remotedev/AgentRunner.java | 17 -- .../remotedev/QuarkusWebsocketProtocol.java | 17 -- .../quarkus/templates/TemplateRegistry.java | 6 - devtools/extension-plugin/pom.xml | 16 - .../quarkus/maven/AbstractExtensionMojo.java | 16 - .../io/quarkus/maven/ExtensionRegistry.java | 16 - .../extensionlist/ExtensionListMojo.java | 16 - .../gradle/AppModelGradleResolver.java | 16 - .../java/io/quarkus/gradle/QuarkusPlugin.java | 15 - .../gradle/QuarkusPluginExtension.java | 15 - .../gradle/tasks/QuarkusAddExtension.java | 15 - .../io/quarkus/gradle/tasks/QuarkusBuild.java | 15 - .../io/quarkus/gradle/tasks/QuarkusDev.java | 15 - .../gradle/tasks/QuarkusGenerateConfig.java | 15 - .../gradle/tasks/QuarkusListExtensions.java | 15 - .../quarkus/gradle/tasks/QuarkusNative.java | 15 - .../io/quarkus/gradle/tasks/QuarkusTask.java | 15 - devtools/maven/pom.xml | 16 - .../maven/src/it/setup-on-min-pom-it/pom.xml | 17 -- .../io/quarkus/maven/AnalyseCallTreeMojo.java | 16 - .../main/java/io/quarkus/maven/BuildMojo.java | 17 -- .../main/java/io/quarkus/maven/CopyUtils.java | 16 - .../io/quarkus/maven/CreateProjectMojo.java | 17 -- .../java/io/quarkus/maven/CreateUtils.java | 15 - .../main/java/io/quarkus/maven/DevMojo.java | 16 - .../io/quarkus/maven/ExampleConfigMojo.java | 16 - .../io/quarkus/maven/GenerateConfigMojo.java | 17 -- .../java/io/quarkus/maven/MojoLogger.java | 18 -- .../io/quarkus/maven/NativeImageMojo.java | 16 - .../java/io/quarkus/maven/RemoteDevMojo.java | 16 - .../io/quarkus/maven/components/Prompter.java | 16 - .../io/quarkus/maven/it/ExtensionListIT.java | 16 - .../dummy-extension-deployment/pom.xml | 16 - .../extension-check/extension-list/pom.xml | 16 - .../projects/extension-check/pom.xml | 16 - .../src/main/resources/META-INF/beans.xml | 2 + devtools/pom.xml | 16 - docs/assembly.xml | 16 - docs/pom.xml | 16 - docs/src/main/asciidoc/ap4k.adoc | 2 - .../azure-functions-resteasy-guide.adoc | 120 ++++++++ docs/src/main/asciidoc/cdi-reference.adoc | 49 ++- docs/src/main/asciidoc/datasource-guide.adoc | 8 +- docs/src/main/asciidoc/sending-emails.adoc | 47 ++- .../src/main/asciidoc/undertow-reference.adoc | 7 +- extensions/agroal/deployment/pom.xml | 16 - .../agroal/deployment/AgroalProcessor.java | 16 - .../test/DefaultDataSourceConfigTest.java | 2 + .../test/NamedDataSourceConfigTest.java | 2 + .../io/quarkus/agroal/test/TestResources.java | 16 - .../application-default-datasource.properties | 1 + extensions/agroal/pom.xml | 16 - extensions/agroal/runtime/pom.xml | 16 - .../runtime/AbstractDataSourceProducer.java | 18 +- .../agroal/runtime/AgroalTemplate.java | 16 - .../runtime/DataSourceBuildTimeConfig.java | 16 - .../runtime/DataSourceRuntimeConfig.java | 21 +- .../runtime/TransactionIsolationLevel.java | 16 - .../graal/AgroalDataSourceReplacement.java | 16 - .../amazon-lambda-resteasy/deployment/pom.xml | 16 - .../AmazonLambdaResteasyProcessor.java | 15 - extensions/amazon-lambda-resteasy/pom.xml | 16 - .../amazon-lambda-resteasy/runtime/pom.xml | 16 - .../runtime/AmazonLambdaResteasyConfig.java | 15 - .../runtime/AmazonLambdaResteasyTemplate.java | 15 - .../ResteasyLambdaContainerHandler.java | 15 - .../container/ResteasyLambdaFilter.java | 15 - .../container/StreamLambdaHandler.java | 15 - .../adapter/test/EchoResteasyResource.java | 12 - .../adapter/test/ResteasyAwsProxyTest.java | 12 - .../adapter/test/model/MapResponseModel.java | 12 - .../adapter/test/model/SingleValueModel.java | 12 - extensions/arc/deployment/pom.xml | 16 - .../deployment/AdditionalBeanBuildItem.java | 16 - .../AdditionalStereotypeBuildItem.java | 16 - .../deployment/ArcAnnotationProcessor.java | 16 - .../deployment/BeanArchiveIndexBuildItem.java | 16 - .../arc/deployment/BeanArchiveProcessor.java | 16 - .../deployment/BeanContainerBuildItem.java | 16 - .../BeanContainerListenerBuildItem.java | 16 - .../BeanDefiningAnnotationBuildItem.java | 16 - .../deployment/BeanRegistrarBuildItem.java | 16 - .../deployment/ContextRegistrarBuildItem.java | 16 - .../deployment/GeneratedBeanBuildItem.java | 16 - .../arc/deployment/ProxyUnwrapProcessor.java | 16 - .../ResourceAnnotationBuildItem.java | 16 - .../java/io/quarkus/arc/test/SimpleBean.java | 15 - .../io/quarkus/arc/test/SimpleBeanTest.java | 16 - .../test/config/ConfigArrayConverterTest.java | 16 - .../config/ConfigImplicitConverterTest.java | 16 - ...ConfigPropertyInjectionValidationTest.java | 16 - .../InterceptorNoBindingsTest.java | 16 - .../metadata/InjectionPointMetadataTest.java | 16 - .../stereotype/DoubleScopedBeanTestCase.java | 16 - ...ubleScopedStereotypeHierarchyTestCase.java | 16 - .../DoubleScopedStereotypeTestCase.java | 16 - extensions/arc/pom.xml | 16 - extensions/arc/runtime/pom.xml | 16 - .../arc/runtime/ArcDeploymentTemplate.java | 16 - .../io/quarkus/arc/runtime/BeanContainer.java | 16 - .../arc/runtime/BeanContainerListener.java | 16 - .../arc/runtime/ClientProxyUnwrapper.java | 16 - .../arc/runtime/ConfigDeploymentTemplate.java | 16 - .../arc/runtime/InterceptorBindings.java | 16 - .../arc/runtime/LifecycleEventRunner.java | 16 - .../deployment/pom.xml | 81 +++++ .../AzureFunctionsResteasyProcessor.java | 25 ++ .../maven-archetype/pom.xml | 41 +++ .../META-INF/maven/archetype-metadata.xml | 44 +++ .../azure-config/function.json | 17 ++ .../azure-config/host.json | 3 + .../azure-config/local.settings.json | 7 + .../resources/archetype-resources/pom.xml | 212 +++++++++++++ extensions/azure-functions-resteasy/pom.xml | 38 +++ .../azure-functions-resteasy/runtime/pom.xml | 84 +++++ .../AzureFunctionsResteasyTemplate.java | 17 ++ .../resteasy/runtime/AzureHttpRequest.java | 136 +++++++++ .../functions/resteasy/runtime/Function.java | 76 +++++ extensions/caffeine/deployment/pom.xml | 16 - extensions/caffeine/pom.xml | 16 - extensions/caffeine/runtime/pom.xml | 16 - .../camel/camel-jdbc/deployment/pom.xml | 16 - extensions/camel/camel-jdbc/runtime/pom.xml | 16 - .../camel/camel-servlet/deployment/pom.xml | 16 - .../camel/camel-servlet/runtime/pom.xml | 16 - .../deployment/pom.xml | 16 - .../ElasticsearchRestClientProcessor.java | 16 - extensions/elasticsearch-rest-client/pom.xml | 16 - .../elasticsearch-rest-client/runtime/pom.xml | 16 - .../runtime/graal/Substitute_RestClient.java | 16 - .../elytron-security/deployment/pom.xml | 16 - .../SecurityDeploymentProcessor.java | 16 - .../deployment/SecurityDomainBuildItem.java | 16 - .../test/ParametrizedPathsResource.java | 15 - .../security/test/TestSecureServlet.java | 16 - extensions/elytron-security/pom.xml | 16 - extensions/elytron-security/runtime/pom.xml | 15 - .../security/runtime/ElytronAccount.java | 16 - .../runtime/ElytronIdentityManager.java | 16 - .../runtime/PropertiesRealmConfig.java | 16 - .../security/runtime/SecurityTemplate.java | 16 - extensions/flyway/deployment/pom.xml | 16 - .../io/quarkus/flyway/FlywayProcessor.java | 16 - .../test/FlywayExtensionFullConfigTest.java | 16 - .../FlywayExtensionMigrateAtStartTest.java | 16 - .../flyway/test/FlywayTestResources.java | 16 - .../src/test/resources/full-config.properties | 16 - .../migrate-at-start-config.properties | 16 - extensions/flyway/pom.xml | 16 - extensions/flyway/runtime/pom.xml | 16 - .../flyway/runtime/FlywayBuildConfig.java | 16 - .../flyway/runtime/FlywayProducer.java | 16 - .../flyway/runtime/FlywayRuntimeConfig.java | 16 - .../flyway/runtime/FlywayTemplate.java | 16 - ...mpositeMigrationResolverSubstitutions.java | 16 - .../graal/FeatureDetectorSubstitutions.java | 16 - ...reSQLSqlStatementBuilderSubstitutions.java | 16 - .../graal/QuarkusPathLocationScanner.java | 16 - .../runtime/graal/ScannerSubstitutions.java | 16 - extensions/hibernate-orm/deployment/pom.xml | 16 - .../AdditionalJpaModelBuildItem.java | 16 - .../orm/deployment/HibernateConfigUtil.java | 16 - .../deployment/HibernateEntityEnhancer.java | 16 - .../HibernateLogFilterBuildStep.java | 16 - .../orm/deployment/HibernateOrmProcessor.java | 16 - .../deployment/HibernateOrmReflections.java | 16 - .../orm/deployment/JpaEntitiesBuildItem.java | 16 - .../orm/deployment/JpaJandexScavenger.java | 16 - .../orm/deployment/NonJpaModelBuildItem.java | 16 - .../PersistenceUnitDescriptorBuildItem.java | 16 - .../hibernate/orm/HqlNodeScannerTestCase.java | 16 - .../quarkus/hibernate/orm/NoEntitiesTest.java | 16 - .../hibernate/orm/NoTransactionTest.java | 16 - .../orm/PersistenceAndQuarkusConfigTest.java | 16 - .../hibernate/orm/enhancer/Address.java | 16 - .../enhancer/HibernateEntityEnhancerTest.java | 16 - .../DefaultSqlLoadScriptTestCase.java | 16 - .../ImportSqlLoadScriptTestCase.java | 16 - .../orm/sql_load_script/MyEntity.java | 16 - .../SqlLoadScriptFileAbsentTestCase.java | 16 - .../SqlLoadScriptPresentTestCase.java | 16 - .../SqlLoadScriptTestResource.java | 16 - .../resources/META-INF/some-persistence.xml | 16 - extensions/hibernate-orm/pom.xml | 16 - extensions/hibernate-orm/runtime/pom.xml | 16 - .../DefaultEntityManagerFactoryProducer.java | 16 - .../runtime/DefaultEntityManagerProducer.java | 16 - .../FastBootHibernatePersistenceProvider.java | 16 - ...tHibernatePersistenceProviderResolver.java | 16 - .../hibernate/orm/runtime/Hibernate.java | 16 - .../orm/runtime/HibernateOrmTemplate.java | 16 - .../hibernate/orm/runtime/JPAConfig.java | 16 - .../runtime/JPAResourceReferenceProvider.java | 16 - .../orm/runtime/PersistenceProviderSetup.java | 16 - .../orm/runtime/PersistenceUnitsHolder.java | 16 - .../RequestScopedEntityManagerHolder.java | 16 - .../runtime/TransactionEntityManagers.java | 16 - .../FastBootEntityManagerFactoryBuilder.java | 16 - .../runtime/boot/FastBootMetadataBuilder.java | 16 - .../boot/LightPersistenceXmlDescriptor.java | 16 - .../registry/MirroringIntegratorService.java | 16 - .../PreconfiguredServiceRegistryBuilder.java | 16 - .../orm/runtime/boot/scan/QuarkusScanner.java | 16 - .../ForwardingEntityManager.java | 16 - .../TransactionScopedEntityManager.java | 16 - .../graal/Delete_ConfigXsdSupport.java | 16 - .../Delete_HibernatePersistenceProvider.java | 16 - .../graal/Substitute_JmxServiceImpl.java | 16 - .../recording/RecordableBootstrap.java | 16 - .../orm/runtime/recording/RecordedState.java | 16 - .../recording/RecordingDialectFactory.java | 16 - .../CfgXmlAccessServiceInitiatorQuarkus.java | 16 - .../service/DialectFactoryInitiator.java | 16 - .../runtime/service/DisabledJMXInitiator.java | 16 - .../service/FlatClassLoaderService.java | 16 - .../QuarkusJdbcEnvironmentInitiator.java | 16 - .../service/QuarkusJtaPlatformResolver.java | 16 - .../deployment/pom.xml | 16 - .../elasticsearch/HibernateSearchClasses.java | 16 - ...HibernateSearchElasticsearchProcessor.java | 16 - .../hibernate-search-elasticsearch/pom.xml | 16 - .../runtime/pom.xml | 16 - ...ateSearchElasticsearchBuildTimeConfig.java | 16 - ...rnateSearchElasticsearchRuntimeConfig.java | 16 - .../HibernateSearchElasticsearchTemplate.java | 16 - .../hibernate-validator/deployment/pom.xml | 16 - .../HibernateValidatorProcessor.java | 16 - extensions/hibernate-validator/pom.xml | 16 - .../hibernate-validator/runtime/pom.xml | 16 - .../runtime/HibernateValidatorTemplate.java | 16 - .../validator/runtime/ValidatorHolder.java | 16 - .../validator/runtime/ValidatorProvider.java | 16 - .../infinispan-client/deployment/pom.xml | 16 - .../deployment/InfinispanClientProcessor.java | 16 - .../InfinispanPropertiesBuildItem.java | 16 - extensions/infinispan-client/pom.xml | 16 - extensions/infinispan-client/runtime/pom.xml | 16 - extensions/jaeger/deployment/pom.xml | 16 - .../jaeger/deployment/JaegerProcessor.java | 16 - extensions/jaeger/pom.xml | 16 - extensions/jaeger/runtime/pom.xml | 16 - .../runtime/JaegerDeploymentTemplate.java | 16 - .../runtime/QuarkusJaegerMetricsFactory.java | 16 - .../jaeger/runtime/QuarkusJaegerTracer.java | 16 - .../runtime/graal/Target_JaegerTracer.java | 16 - .../runtime/graal/Target_LoggingReporter.java | 16 - .../jaeger/runtime/graal/Target_Metrics.java | 16 - .../runtime/graal/Target_SenderResolver.java | 16 - extensions/jaxb/deployment/pom.xml | 16 - extensions/jaxb/pom.xml | 16 - extensions/jaxb/runtime/pom.xml | 16 - .../jdbc/jdbc-h2/jdbc-h2-deployment/pom.xml | 16 - .../jdbc/h2/deployment/H2JDBCReflections.java | 16 - .../jdbc/jdbc-h2/jdbc-h2-runtime/pom.xml | 16 - extensions/jdbc/jdbc-h2/pom.xml | 16 - .../jdbc-mariadb-deployment/pom.xml | 16 - .../deployment/MariaDBJDBCReflections.java | 16 - .../jdbc-mariadb/jdbc-mariadb-runtime/pom.xml | 16 - extensions/jdbc/jdbc-mariadb/pom.xml | 16 - .../jdbc-mssql/jdbc-mssql-deployment/pom.xml | 16 - .../jdbc-mssql/jdbc-mssql-runtime/pom.xml | 16 - extensions/jdbc/jdbc-mssql/pom.xml | 16 - .../jdbc-postgresql-deployment/pom.xml | 16 - .../deployment/PostgreSQLJDBCReflections.java | 16 - .../jdbc-postgresql-runtime/pom.xml | 16 - extensions/jdbc/jdbc-postgresql/pom.xml | 16 - extensions/jdbc/pom.xml | 16 - .../jsonb/deployment/JsonbProcessor.java | 15 - .../jsonp/deployment/JsonpProcessor.java | 15 - extensions/kafka-streams/deployment/pom.xml | 16 - .../deployment/KafkaStreamsProcessor.java | 16 - extensions/kafka-streams/pom.xml | 16 - extensions/kafka-streams/runtime/pom.xml | 16 - .../streams/runtime/KafkaStreamsTemplate.java | 15 - .../graal/KafkaStreamsSubstitutions.java | 15 - extensions/keycloak/deployment/pom.xml | 16 - .../keycloak/KeycloakAdapterProcessor.java | 15 - .../io/quarkus/keycloak/KeycloakConfig.java | 15 - .../keycloak/KeycloakDeploymentProcessor.java | 15 - .../keycloak/KeycloakReflectionProcessor.java | 15 - extensions/keycloak/pom.xml | 16 - extensions/keycloak/runtime/pom.xml | 16 - .../KeycloakSecurityContextProducer.java | 15 - .../io/quarkus/keycloak/KeycloakTemplate.java | 15 - .../keycloak/QuarkusDeploymentContext.java | 15 - .../QuarkusKeycloakConfigResolver.java | 15 - extensions/kotlin/deployment/pom.xml | 15 - extensions/kotlin/pom.xml | 16 - extensions/kubernetes/deployment/pom.xml | 16 - extensions/kubernetes/pom.xml | 16 - extensions/mailer/deployment/pom.xml | 16 - .../mailer/deployment/MailerBuildItem.java | 16 - .../mailer/deployment/MailerProcessor.java | 4 +- extensions/mailer/pom.xml | 16 - extensions/mailer/runtime/pom.xml | 16 - .../java/io/quarkus/mailer/MockMailbox.java | 29 ++ .../io/quarkus/mailer/impl/MailConfig.java | 4 +- .../mailer/impl/MailConfigTemplate.java | 7 +- .../quarkus/mailer/impl/MockMailboxImpl.java | 68 +++++ .../mailer/impl/ReactiveMailerImpl.java | 13 +- .../mailer/impl/MockMailerImplTest.java | 67 ++++ extensions/narayana-jta/deployment/pom.xml | 16 - .../NarayanaJtaLogFilterBuildStep.java | 16 - .../jta/deployment/NarayanaJtaProcessor.java | 16 - extensions/narayana-jta/pom.xml | 16 - extensions/narayana-jta/runtime/pom.xml | 16 - .../jta/runtime/NarayanaJtaProducers.java | 16 - .../jta/runtime/NarayanaJtaTemplate.java | 16 - .../jta/runtime/QuarkusPropertiesFactory.java | 16 - .../graal/ConfigurationInfoSubstitution.java | 16 - .../graal/PropertiesFactorySubstitution.java | 16 - .../TransactionalInterceptorBase.java | 16 - .../TransactionalInterceptorMandatory.java | 16 - .../TransactionalInterceptorNever.java | 16 - .../TransactionalInterceptorNotSupported.java | 16 - .../TransactionalInterceptorRequired.java | 16 - .../TransactionalInterceptorRequiresNew.java | 16 - .../TransactionalInterceptorSupports.java | 16 - extensions/netty/deployment/pom.xml | 16 - .../netty/deployment/NettyProcessor.java | 16 - extensions/netty/pom.xml | 16 - extensions/netty/runtime/pom.xml | 16 - .../runtime/graal/NettySubstitutions.java | 16 - .../hibernate-orm-panache/deployment/pom.xml | 20 +- .../orm/panache/deployment/EntityField.java | 2 + .../PanacheFieldAccessMethodVisitor.java | 2 + .../deployment/PanacheJpaEntityEnhancer.java | 218 +++---------- .../PanacheJpaRepositoryEnhancer.java | 225 +++----------- .../deployment/PanacheResourceProcessor.java | 24 +- .../panache/hibernate-orm-panache/pom.xml | 16 - .../hibernate-orm-panache/runtime/pom.xml | 16 - .../orm/panache/PanacheEntityBase.java | 34 +++ .../orm/panache/PanacheRepositoryBase.java | 34 +++ .../panache/panache-common/deployment/pom.xml | 34 +++ .../panache/common/deployment/JandexUtil.java | 162 ++++++++++ .../common}/deployment/JavaBeanUtil.java | 2 +- extensions/panache/panache-common/pom.xml | 17 +- .../panache/panache-common/runtime/pom.xml | 16 - .../panache/common/impl/GenerateBridge.java | 20 ++ extensions/panache/pom.xml | 16 - extensions/pom.xml | 20 +- .../reactive-pg-client/deployment/pom.xml | 16 - .../pg/client/deployment/PgPoolBuildItem.java | 16 - .../deployment/ReactivePgClientProcessor.java | 16 - .../pg/client/PgPoolProducerTest.java | 16 - extensions/reactive-pg-client/pom.xml | 16 - extensions/reactive-pg-client/runtime/pom.xml | 16 - .../pg/client/runtime/DataSourceConfig.java | 16 - .../pg/client/runtime/PgPoolConfig.java | 16 - .../pg/client/runtime/PgPoolProducer.java | 16 - .../pg/client/runtime/PgPoolTemplate.java | 16 - extensions/reactive-streams-operators/pom.xml | 16 - .../deployment/pom.xml | 16 - ...lRyeReactiveStreamsOperatorsProcessor.java | 16 - .../pom.xml | 16 - .../runtime/pom.xml | 16 - ...allRyeReactiveTypeConvertersProcessor.java | 16 - .../runtime/pom.xml | 15 - extensions/resteasy-common/deployment/pom.xml | 16 - .../ResteasyJaxrsProviderBuildItem.java | 16 - extensions/resteasy-common/pom.xml | 16 - extensions/resteasy-common/runtime/pom.xml | 16 - .../runtime/graal/DeleteDocumentProvider.java | 16 - .../runtime/graal/DeleteIIOImageProvider.java | 16 - extensions/resteasy-jsonb/deployment/pom.xml | 16 - .../deployment/ResteasyJsonbProcessor.java | 15 - extensions/resteasy-jsonb/pom.xml | 16 - extensions/resteasy-jsonb/runtime/pom.xml | 16 - .../resteasy-server-common/deployment/pom.xml | 16 - .../ResteasyDeploymentBuildItem.java | 23 ++ .../ResteasyInjectionReadyBuildItem.java | 15 - .../ResteasyLogFilterBuildStep.java | 15 - .../ResteasyServerCommonProcessor.java | 73 +++-- .../ResteasyServerConfigBuildItem.java | 16 - extensions/resteasy-server-common/pom.xml | 16 - .../resteasy-server-common/runtime/pom.xml | 16 - .../runtime/QuarkusConstructorInjector.java | 16 - .../runtime/QuarkusInjectorFactory.java | 16 - .../runtime/ResteasyServerCommonTemplate.java | 16 - extensions/resteasy/deployment/pom.xml | 16 - .../ResteasyJaxrsConfigBuildItem.java | 16 - .../deployment/ResteasyProcessor.java | 15 - .../resteasy/test/RestEasyCORSTestCase.java | 15 - extensions/resteasy/pom.xml | 16 - extensions/resteasy/runtime/pom.xml | 16 - .../resteasy/runtime/ResteasyFilter.java | 15 - .../ScheduledBusinessMethodItem.java | 15 - .../deployment/SchedulerProcessor.java | 15 - .../test/InvalidCronExpressionTest.java | 15 - .../test/InvalidEveryExpressionTest.java | 15 - .../test/MissingConfigCronExpressionTest.java | 15 - .../scheduler/test/NoExpressionTest.java | 15 - .../scheduler/test/RequestContextJobs.java | 15 - .../test/RequestScheduledMethodTest.java | 15 - .../io/quarkus/scheduler/test/SimpleJobs.java | 15 - .../test/SimpleScheduledMethodTest.java | 15 - .../java/io/quarkus/scheduler/Scheduled.java | 15 - .../quarkus/scheduler/ScheduledExecution.java | 15 - .../java/io/quarkus/scheduler/Scheduler.java | 15 - .../java/io/quarkus/scheduler/Trigger.java | 15 - .../scheduler/runtime/QuartzScheduler.java | 15 - .../scheduler/runtime/ScheduledInvoker.java | 15 - .../runtime/SchedulerConfiguration.java | 15 - .../runtime/SchedulerDeploymentTemplate.java | 15 - .../runtime/graal/QuartzSubstitutions.java | 16 - .../deployment/pom.xml | 6 - .../SmallRyeContextPropagationProcessor.java | 16 - .../quarkus/context/test/TestResources.java | 16 - .../smallrye-context-propagation/pom.xml | 16 - .../runtime/pom.xml | 16 - .../deployment/pom.xml | 15 - .../SmallRyeFaultToleranceProcessor.java | 16 - .../substitutions/rxjava/UnsafeAccess.java | 16 - .../test/fallback/FallbackTest.java | 16 - extensions/smallrye-fault-tolerance/pom.xml | 16 - .../smallrye-fault-tolerance/runtime/pom.xml | 15 - .../QuarkusFallbackHandlerProvider.java | 16 - ...uarkusFaultToleranceOperationProvider.java | 16 - .../graal/FaultToleranceSubstitutions.java | 16 - extensions/smallrye-health/deployment/pom.xml | 16 - .../deployment/SmallRyeHealthProcessor.java | 16 - .../health/test/FailingHealthCheck.java | 16 - .../smallrye/health/test/FailingUnitTest.java | 16 - extensions/smallrye-health/pom.xml | 16 - extensions/smallrye-health/runtime/pom.xml | 16 - .../health/runtime/SmallRyeHealthServlet.java | 16 - extensions/smallrye-jwt/deployment/pom.xml | 18 +- .../jwt/deployment/SmallRyeJwtProcessor.java | 16 - .../jwt/test/DefaultGroupsEndpoint.java | 19 -- .../jwt/test/PrimitiveInjectionEndpoint.java | 19 -- .../io/quarkus/jwt/test/RolesEndpoint.java | 19 -- extensions/smallrye-jwt/pom.xml | 16 - extensions/smallrye-jwt/runtime/pom.xml | 18 +- .../jwt/runtime/auth/JWTAuthMechanism.java | 45 ++- .../smallrye-metrics/deployment/pom.xml | 16 - .../deployment/SmallRyeMetricsProcessor.java | 16 - extensions/smallrye-metrics/pom.xml | 16 - extensions/smallrye-metrics/runtime/pom.xml | 16 - .../metrics/runtime/LambdaCounter.java | 16 - .../smallrye/metrics/runtime/LambdaGauge.java | 16 - .../runtime/SmallRyeMetricsServlet.java | 16 - .../runtime/SmallRyeMetricsTemplate.java | 16 - .../deployment/pom.xml | 16 - .../deployment/SmallRyeOpenApiConfig.java | 15 - extensions/smallrye-openapi-common/pom.xml | 16 - .../smallrye-openapi/deployment/pom.xml | 26 +- .../deployment/SmallRyeOpenApiProcessor.java | 19 +- .../test/OpenApiDefaultPathTestCase.java | 26 ++ .../test/OpenApiPathWithSegmentsTestCase.java | 29 ++ .../OpenApiPathWithoutSegmentsTestCase.java | 29 ++ .../openapi/test/OpenApiResource.java | 13 + extensions/smallrye-openapi/pom.xml | 16 - extensions/smallrye-openapi/runtime/pom.xml | 24 -- .../runtime/OpenApiDocumentProducer.java | 16 - .../openapi/runtime/OpenApiServlet.java | 18 +- .../smallrye-opentracing/deployment/pom.xml | 16 - .../SmallRyeOpenTracingProcessor.java | 16 - .../opentracing/deployment/Service.java | 2 +- .../opentracing/deployment/TestResource.java | 2 +- extensions/smallrye-opentracing/pom.xml | 16 - .../smallrye-opentracing/runtime/pom.xml | 16 - .../QuarkusSmallRyeTracingDynamicFeature.java | 16 - .../opentracing/runtime/TracerProducer.java | 16 - .../deployment/EmitterBuildItem.java | 15 - .../deployment/MediatorBuildItem.java | 15 - .../SmallRyeReactiveMessagingProcessor.java | 15 - .../smallrye-rest-client/deployment/pom.xml | 16 - .../SmallRyeRestClientProcessor.java | 16 - extensions/smallrye-rest-client/pom.xml | 16 - .../smallrye-rest-client/runtime/pom.xml | 16 - .../restclient/runtime/BuilderResolver.java | 15 - .../runtime/ClientHeadersRequestFilter.java | 15 - .../runtime/IncomingHeadersProvider.java | 15 - .../runtime/ProxyInvocationHandler.java | 15 - .../restclient/runtime/RestClientBase.java | 38 ++- .../runtime/RestClientBuilderImpl.java | 15 - .../runtime/SmallRyeRestClientTemplate.java | 16 - .../graal/ClientBuilderReplacement.java | 16 - .../ComputedHeaderValueFillerReplacement.java | 16 - extensions/spring-di/deployment/pom.xml | 15 - .../di/deployment/SpringDIProcessor.java | 27 +- .../di/deployment/SpringDIProcessorTest.java | 29 +- extensions/spring-di/pom.xml | 16 - extensions/spring-di/runtime/pom.xml | 15 - .../undertow-websockets/deployment/pom.xml | 16 - .../UndertowWebsocketProcessor.java | 16 - extensions/undertow-websockets/pom.xml | 16 - .../undertow-websockets/runtime/pom.xml | 16 - .../runtime/UndertowWebsocketTemplate.java | 16 - .../websockets/runtime/WorkerSupplier.java | 16 - extensions/undertow/deployment/pom.xml | 16 - .../undertow/deployment/FilterBuildItem.java | 16 - .../GeneratedWebResourceBuildItem.java | 16 - .../HttpHandlerWrapperBuildItem.java | 16 - .../deployment/ListenerBuildItem.java | 16 - .../undertow/deployment/ServletBuildItem.java | 16 - .../ServletContainerInitializerBuildItem.java | 16 - .../ServletContextAttributeBuildItem.java | 16 - .../ServletDeploymentManagerBuildItem.java | 16 - .../deployment/ServletExtensionBuildItem.java | 16 - .../deployment/ServletInitParamBuildItem.java | 16 - .../UndertowArcIntegrationBuildStep.java | 16 - .../deployment/UndertowBuildItem.java | 16 - .../deployment/UndertowBuildStep.java | 16 - .../UndertowLogFilterBuildStep.java | 16 - .../undertow/test/AnnotatedFilter.java | 16 - .../undertow/test/AnnotatedListener.java | 16 - .../test/AnnotationServletTestCase.java | 16 - .../test/AnnotationWithWebXmlTestCase.java | 16 - .../test/CORSDisabledServletTestCase.java | 16 - .../test/CORSFullConfigServletTestCase.java | 16 - .../undertow/test/CORSServletTestCase.java | 16 - .../undertow/test/PreDestroyServlet.java | 16 - .../ServletContainerInitializerTestCase.java | 16 - .../undertow/test/ServletDestroyTestCase.java | 16 - .../test/ServletEmptyWebXmlTestCase.java | 16 - .../ServletWebFragmentXmlMergingTestCase.java | 16 - .../test/ServletWebFragmentXmlTestCase.java | 16 - .../undertow/test/ServletWebXmlTestCase.java | 16 - .../io/quarkus/undertow/test/TestServlet.java | 16 - .../quarkus/undertow/test/WebXmlFilter.java | 16 - .../quarkus/undertow/test/WebXmlListener.java | 16 - .../quarkus/undertow/test/WebXmlServlet.java | 16 - .../SessionContextTestCase.java | 16 - extensions/undertow/pom.xml | 16 - extensions/undertow/runtime/pom.xml | 16 - .../undertow/runtime/HttpBuildConfig.java | 16 - .../quarkus/undertow/runtime/HttpConfig.java | 16 - .../runtime/KnownPathResourceManager.java | 16 - .../runtime/QuarkusInstanceFactory.java | 16 - .../runtime/ServletSecurityInfoProxy.java | 16 - .../ServletSecurityInfoSubstitution.java | 16 - .../runtime/UndertowDeploymentTemplate.java | 16 - .../undertow/runtime/filters/CORSConfig.java | 15 - .../undertow/runtime/filters/CORSFilter.java | 15 - .../runtime/filters/CORSTemplate.java | 16 - .../graal/ALPNManagerSubstitution.java | 16 - .../runtime/graal/ChannelsSubstitution.java | 16 - .../graal/URLResourceSubstitution.java | 16 - .../runtime/graal/XnioSubstitution.java | 16 - extensions/vertx-web/deployment/pom.xml | 16 - extensions/vertx-web/pom.xml | 16 - extensions/vertx-web/runtime/pom.xml | 16 - .../web/runtime/VertxHttpConfiguration.java | 16 - extensions/vertx/deployment/pom.xml | 16 - .../vertx/deployment/VertxProcessor.java | 16 - .../vertx/MessageConsumerFailureTest.java | 16 - .../vertx/MessageConsumerMethodTest.java | 16 - .../io/quarkus/vertx/VertxProducerTest.java | 16 - extensions/vertx/pom.xml | 16 - extensions/vertx/runtime/pom.xml | 16 - .../vertx/runtime/EventConsumerInvoker.java | 15 - .../vertx/runtime/JsonArrayReader.java | 16 - .../vertx/runtime/JsonArrayWriter.java | 16 - .../vertx/runtime/JsonObjectReader.java | 16 - .../vertx/runtime/JsonObjectWriter.java | 16 - .../vertx/runtime/graal/JdkSubstitutions.java | 16 - .../runtime/graal/VertxSubstitutions.java | 16 - independent-projects/arc/pom.xml | 15 - independent-projects/arc/processor/pom.xml | 15 - .../arc/processor/AbstractGenerator.java | 16 - .../processor/AnnotationLiteralGenerator.java | 16 - .../processor/AnnotationLiteralProcessor.java | 16 - .../arc/processor/AnnotationStore.java | 16 - .../io/quarkus/arc/processor/Annotations.java | 16 - .../arc/processor/AnnotationsTransformer.java | 16 - .../arc/processor/BeanConfigurator.java | 16 - .../arc/processor/BeanDefiningAnnotation.java | 16 - .../quarkus/arc/processor/BeanDeployment.java | 26 +- .../processor/BeanDeploymentValidator.java | 16 - .../quarkus/arc/processor/BeanGenerator.java | 16 - .../io/quarkus/arc/processor/BeanInfo.java | 16 - .../quarkus/arc/processor/BeanProcessor.java | 16 - .../quarkus/arc/processor/BeanRegistrar.java | 16 - .../quarkus/arc/processor/BeanResolver.java | 16 - .../java/io/quarkus/arc/processor/Beans.java | 47 ++- .../quarkus/arc/processor/BuildExtension.java | 23 +- .../io/quarkus/arc/processor/BuiltinBean.java | 16 - .../arc/processor/BuiltinQualifier.java | 16 - .../arc/processor/ClientProxyGenerator.java | 48 +-- .../ComponentsProviderGenerator.java | 20 +- .../arc/processor/ContextConfigurator.java | 16 - .../arc/processor/ContextRegistrar.java | 16 - .../arc/processor/DeploymentEnhancer.java | 16 - .../quarkus/arc/processor/DisposerInfo.java | 16 - .../io/quarkus/arc/processor/DotNames.java | 16 - .../java/io/quarkus/arc/processor/Hashes.java | 15 - .../io/quarkus/arc/processor/Injection.java | 16 - .../arc/processor/InjectionPointInfo.java | 16 - .../arc/processor/InjectionPointModifier.java | 16 - .../processor/InjectionPointsTransformer.java | 16 - .../arc/processor/InterceptorGenerator.java | 16 - .../arc/processor/InterceptorInfo.java | 16 - .../arc/processor/InterceptorResolver.java | 16 - .../quarkus/arc/processor/Interceptors.java | 16 - .../arc/processor/MethodDescriptors.java | 18 +- .../io/quarkus/arc/processor/Methods.java | 19 -- .../arc/processor/ObserverGenerator.java | 16 - .../quarkus/arc/processor/ObserverInfo.java | 16 - .../arc/processor/ReflectionRegistration.java | 16 - .../arc/processor/ResourceClassOutput.java | 16 - .../quarkus/arc/processor/ResourceImpl.java | 16 - .../quarkus/arc/processor/ResourceOutput.java | 16 - .../io/quarkus/arc/processor/ScopeInfo.java | 24 +- .../quarkus/arc/processor/StereotypeInfo.java | 16 - .../arc/processor/SubclassGenerator.java | 37 +-- .../quarkus/arc/processor/Transformation.java | 16 - .../java/io/quarkus/arc/processor/Types.java | 16 - .../java/io/quarkus/arc/processor/Basics.java | 16 - .../arc/processor/BeanGeneratorTest.java | 16 - .../arc/processor/BeanInfoInjectionsTest.java | 16 - .../arc/processor/BeanInfoQualifiersTest.java | 16 - .../arc/processor/BeanInfoTypesTest.java | 16 - .../processor/ClientProxyGeneratorTest.java | 16 - .../processor/InterceptorGeneratorTest.java | 16 - .../arc/processor/SubclassGeneratorTest.java | 16 - .../quarkus/arc/processor/TruePredicate.java | 16 - .../io/quarkus/arc/processor/TypesTest.java | 16 - .../io/quarkus/arc/processor/types/Bar.java | 16 - .../io/quarkus/arc/processor/types/Baz.java | 16 - .../io/quarkus/arc/processor/types/Foo.java | 16 - .../arc/processor/types/FooQualifier.java | 16 - independent-projects/arc/runtime/pom.xml | 15 - .../io/quarkus/arc/AbstractSharedContext.java | 16 - .../ActivateRequestContextInterceptor.java | 16 - .../io/quarkus/arc/ApplicationContext.java | 16 - .../src/main/java/io/quarkus/arc/Arc.java | 16 - .../java/io/quarkus/arc/ArcCDIProvider.java | 15 - .../java/io/quarkus/arc/ArcContainer.java | 16 - .../java/io/quarkus/arc/ArcContainerImpl.java | 16 - .../quarkus/arc/AsyncEventDeliveryStage.java | 15 - .../main/java/io/quarkus/arc/BeanCreator.java | 16 - .../java/io/quarkus/arc/BeanDestroyer.java | 16 - .../java/io/quarkus/arc/BeanManagerImpl.java | 16 - .../io/quarkus/arc/BeanManagerProvider.java | 16 - .../io/quarkus/arc/BeanMetadataProvider.java | 16 - .../arc/BeanTypeAssignabilityRules.java | 15 - .../main/java/io/quarkus/arc/ClientProxy.java | 16 - .../main/java/io/quarkus/arc/Components.java | 16 - .../io/quarkus/arc/ComponentsProvider.java | 16 - .../java/io/quarkus/arc/ComputingCache.java | 16 - .../java/io/quarkus/arc/ContextCreator.java | 16 - .../arc/ContextInstanceHandleImpl.java | 16 - .../java/io/quarkus/arc/CovariantTypes.java | 16 - .../io/quarkus/arc/CreationalContextImpl.java | 16 - .../arc/CurrentInjectionPointProvider.java | 16 - .../main/java/io/quarkus/arc/EventImpl.java | 16 - .../arc/EventObjectTypeResolverBuilder.java | 16 - .../java/io/quarkus/arc/EventProvider.java | 16 - .../arc/EventTypeAssignabilityRules.java | 16 - .../io/quarkus/arc/GenericArrayTypeImpl.java | 16 - .../io/quarkus/arc/HierarchyDiscovery.java | 16 - .../quarkus/arc/InitializedInterceptor.java | 16 - .../java/io/quarkus/arc/InjectableBean.java | 16 - .../io/quarkus/arc/InjectableContext.java | 16 - .../io/quarkus/arc/InjectableInterceptor.java | 16 - .../quarkus/arc/InjectableObserverMethod.java | 16 - .../arc/InjectableReferenceProvider.java | 16 - .../quarkus/arc/InjectionPointProvider.java | 16 - .../java/io/quarkus/arc/InstanceHandle.java | 16 - .../io/quarkus/arc/InstanceHandleImpl.java | 16 - .../java/io/quarkus/arc/InstanceImpl.java | 16 - .../java/io/quarkus/arc/InstanceProvider.java | 16 - .../java/io/quarkus/arc/InvariantTypes.java | 16 - .../io/quarkus/arc/InvocationContextImpl.java | 16 - .../main/java/io/quarkus/arc/LazyValue.java | 16 - .../java/io/quarkus/arc/ManagedContext.java | 16 - .../io/quarkus/arc/ParameterizedTypeImpl.java | 16 - .../main/java/io/quarkus/arc/Qualifiers.java | 16 - .../main/java/io/quarkus/arc/Reflections.java | 16 - .../java/io/quarkus/arc/RequestContext.java | 16 - .../java/io/quarkus/arc/ResourceProvider.java | 16 - .../arc/ResourceReferenceProvider.java | 16 - .../java/io/quarkus/arc/SingletonContext.java | 16 - .../main/java/io/quarkus/arc/Subclass.java | 16 - .../java/io/quarkus/arc/TypeResolver.java | 16 - .../java/io/quarkus/arc/TypeVariableImpl.java | 16 - .../src/main/java/io/quarkus/arc/Types.java | 16 - .../java/io/quarkus/arc/WildcardTypeImpl.java | 16 - independent-projects/arc/tests/pom.xml | 15 - .../io/quarkus/arc/test/ArcTestContainer.java | 16 - .../java/io/quarkus/arc/test/MyQualifier.java | 16 - .../AlternativesPriorityTest.java | 16 - .../test/alternatives/AlternativesTest.java | 16 - .../beanmanager/BeanManagerEventTest.java | 16 - .../beanmanager/BeanManagerInstanceTest.java | 16 - .../arc/test/beanmanager/BeanManagerTest.java | 16 - .../annotations/AddObservesTest.java | 16 - ...ionsTransformerInterceptorBindingTest.java | 16 - .../AnnotationsTransformerTest.java | 16 - .../build/extension/annotations/Simple.java | 16 - .../annotations/SimpleInterceptor.java | 16 - .../extension/beans/BeanRegistrarTest.java | 16 - .../deployment/DeploymentEnhancerTest.java | 16 - .../BeanDeploymentValidatorTest.java | 16 - .../arc/test/cdiprovider/CDIProviderTest.java | 16 - .../ClientProxyGetContextualInstanceTest.java | 16 - .../clientproxy/ProducerClientProxyTest.java | 16 - .../ClientProxyConstructorGuardTest.java | 41 +++ .../ApplicationInitializedTest.java | 16 - .../arc/test/contexts/request/Controller.java | 16 - .../contexts/request/ControllerClient.java | 16 - .../contexts/request/RequestContextTest.java | 16 - .../RequestContextPropagationTest.java | 16 - .../request/propagation/SuperButton.java | 16 - .../request/propagation/SuperController.java | 16 - .../inheritance/ScopeInheritanceTest.java | 73 +++++ .../assignability/ListJdkElementTypeTest.java | 16 - .../OptionalAssignabilityTest.java | 16 - ...ingleNonNoArgConstructorInjectionTest.java | 16 - .../CircularInjectionNotSupportedTest.java | 54 ++++ .../PrivateConstructorInjectionTest.java | 16 - .../PrivateFieldInjectionTest.java | 16 - .../PrivateInitializerInjectionTest.java | 16 - .../resource/ResourceInjectionTest.java | 16 - .../superclass/SuperclassInjectionTest.java | 16 - .../superclass/foo/FooHarvester.java | 16 - .../instance/destroy/InstanceDestroyTest.java | 16 - .../frombean/InstanceFromBeanTest.java | 16 - .../arc/test/interceptors/Counter.java | 16 - .../arc/test/interceptors/Lifecycle.java | 16 - .../interceptors/LifecycleInterceptor.java | 16 - .../arc/test/interceptors/Logging.java | 16 - .../test/interceptors/LoggingInterceptor.java | 16 - .../quarkus/arc/test/interceptors/Simple.java | 16 - .../arc/test/interceptors/SimpleBean.java | 16 - .../test/interceptors/SimpleInterceptor.java | 16 - .../interceptors/SimpleInterceptorTest.java | 16 - .../AroundConstructReturningObjectTest.java | 16 - .../aroundconstruct/AroundConstructTest.java | 16 - .../aroundconstruct/MyTransactional.java | 16 - .../BindingDefaultValueTest.java | 16 - .../bindingdefaultvalue/MyTransactional.java | 16 - .../InvocationContextBindingsTest.java | 16 - .../bindings/MyTransactional.java | 16 - .../SubclassConstructorGuardTest.java | 59 ++++ .../ExceptionHandlingBean.java | 16 - .../ExceptionHandlingCase.java | 16 - .../ExceptionHandlingInterceptor.java | 16 - .../ExceptionHandlingInterceptorBinding.java | 16 - .../InterceptorExceptionHandlingTest.java | 16 - .../MyDeclaredException.java | 16 - .../exceptionhandling/MyOtherException.java | 16 - .../exceptionhandling/MyRuntimeException.java | 16 - .../PrivateInterceptorMethodTest.java | 16 - .../arc/test/metadata/BeanMetadataTest.java | 16 - .../quarkus/arc/test/metadata/Controller.java | 16 - .../metadata/InjectionPointMetadataTest.java | 16 - .../arc/test/name/AmbiguousNameTest.java | 16 - .../arc/test/name/NameResolutionTest.java | 16 - .../observers/ParameterizedPayloadTest.java | 16 - .../arc/test/observers/RuntimeClassTest.java | 16 - .../test/observers/SimpleObserverTest.java | 16 - .../async/AsyncObserverExceptionTest.java | 16 - .../observers/async/AsyncObserverTest.java | 16 - ...lassWithoutBeanDefiningAnnotationTest.java | 16 - .../ifexists/ReceptionIfExistsTest.java | 17 -- .../SimpleObserverInjectionTest.java | 16 - .../observers/metadata/EventMetadataTest.java | 16 - .../EventMetadataWrongInjectionTest.java | 16 - .../ordering/ObserverOrderingTest.java | 16 - .../producer/async/AsyncProducerTest.java | 16 - .../producer/dependent/DeclaringBeanTest.java | 16 - ...lassWithoutBeanDefiningAnnotationTest.java | 16 - .../test/producer/disposer/DisposerTest.java | 16 - .../primitive/PrimitiveProducerTest.java | 16 - .../PrivateProducerFieldTest.java | 16 - .../PrivateProducerMethodTest.java | 16 - .../resolution/RuntimeResolutionTest.java | 16 - .../arc/test/resolution/TypedTest.java | 16 - .../arc/test/stereotypes/SimpleBinding.java | 16 - .../test/stereotypes/SimpleInterceptor.java | 16 - .../StereotypeAlternativeTest.java | 16 - .../StereotypeInterceptorTest.java | 16 - .../test/stereotypes/StereotypeNamedTest.java | 16 - .../test/stereotypes/StereotypeScopeTest.java | 16 - .../ClassBeanMultipleScopesTest.java | 16 - .../ProducerFieldMultipleScopesTest.java | 16 - .../ProducerMethodMultipleScopesTest.java | 16 - .../quarkus/arc/test/validation/Simple.java | 16 - .../test/validation/SimpleInterceptor.java | 16 - .../quarkus/arc/test/vetoed/VetoedTest.java | 16 - independent-projects/bootstrap/core/pom.xml | 15 - .../BootstrapClassLoaderFactory.java | 16 - .../quarkus/bootstrap/BootstrapConstants.java | 16 - ...ootstrapDependencyProcessingException.java | 16 - .../quarkus/bootstrap/BootstrapException.java | 16 - .../quarkus/bootstrap/model/AppArtifact.java | 17 -- .../bootstrap/model/AppArtifactCoords.java | 16 - .../bootstrap/model/AppArtifactKey.java | 16 - .../bootstrap/model/AppDependency.java | 17 -- .../io/quarkus/bootstrap/model/AppModel.java | 16 - .../bootstrap/resolver/AppModelResolver.java | 17 -- .../resolver/AppModelResolverException.java | 16 - .../resolver/BootstrapAppModelResolver.java | 17 -- .../DeploymentInjectingDependencyVisitor.java | 16 - .../maven/DeploymentInjectionException.java | 16 - .../resolver/maven/MavenArtifactResolver.java | 18 +- .../maven/MavenLocalRepositoryManager.java | 17 -- .../resolver/maven/MavenModelBuilder.java | 16 - .../resolver/maven/MavenRepoInitializer.java | 64 +--- .../maven/ProxyAwareMirrorSelector.java | 73 ----- ...eDependencyGraphTransformationContext.java | 16 - .../maven/workspace/LocalProject.java | 16 - .../maven/workspace/LocalWorkspace.java | 16 - .../resolver/maven/workspace/ModelUtils.java | 17 -- .../bootstrap/util/BootstrapUtils.java | 16 - .../io/quarkus/bootstrap/util/IoUtils.java | 17 -- .../quarkus/bootstrap/util/PropertyUtils.java | 17 -- .../io/quarkus/bootstrap/util/ZipUtils.java | 16 - .../resolver/CollectDependenciesBase.java | 16 - .../bootstrap/resolver/PropsBuilder.java | 16 - .../resolver/ResolverSetupCleanup.java | 17 -- .../bootstrap/resolver/TsArtifact.java | 16 - .../bootstrap/resolver/TsDependency.java | 16 - .../io/quarkus/bootstrap/resolver/TsJar.java | 16 - .../bootstrap/resolver/TsRepoBuilder.java | 17 -- .../maven/test/MavenRepoInitializerTest.java | 286 +++++++++--------- .../SimpleReplacedDependencyTestCase.java | 16 - ...DifferentVersionsOfAnArtifactTestCase.java | 16 - ...aphInCompileAndProvidedScopesTestCase.java | 16 - ...heGraphInCompileAndTestScopesTestCase.java | 16 - ...endencyPresentTwiceInTheGraphTestCase.java | 16 - ...ithDifferentClassifierAndTypeTestCase.java | 16 - ...ionOverridesTransitiveVersionTestCase.java | 16 - ...sTransitiveNonOptionalVersionTestCase.java | 16 - .../resolver/test/ExclusionsTestCase.java | 16 - ...irectOptionalDepsAreCollectedTestCase.java | 16 - ...videdScopeDepsAreNotCollectedTestCase.java | 16 - ...IsNotAmongRuntimeDependenciesTestCase.java | 16 - .../TransitiveVersionOverridesTestCase.java | 16 - .../bootstrap/maven-plugin/pom.xml | 15 - .../maven/ExtensionDescriptorMojo.java | 16 - independent-projects/bootstrap/pom.xml | 15 - integration-tests/amazon-lambda/pom.xml | 16 - .../amazon/lambda/AmazonLambdaSimpleIT.java | 16 - .../lambda/AmazonLambdaSimpleTestCase.java | 16 - .../azure-functions-resteasy/pom.xml | 66 ++++ .../functions/resteasy/GreetingResource.java | 23 ++ .../test/java/io/quarkus/it/FunctionTest.java | 86 ++++++ .../io/quarkus/it/HttpRequestMessageMock.java | 75 +++++ .../quarkus/it/HttpResponseMessageMock.java | 83 +++++ integration-tests/camel-jdbc/pom.xml | 16 - .../quarkus/it/camel/jdbc/TestResources.java | 16 - integration-tests/camel-servlet/pom.xml | 16 - .../class-transformer/deployment/pom.xml | 16 - .../ClassTransformerProcessor.java | 16 - integration-tests/class-transformer/pom.xml | 16 - .../class-transformer/runtime/pom.xml | 16 - integration-tests/common-jpa-entities/pom.xml | 16 - .../main/java/io/quarkus/it/common/Clown.java | 16 - integration-tests/elytron-security/pom.xml | 16 - .../META-INF/microprofile-config.properties | 16 - integration-tests/flyway/pom.xml | 16 - .../java/io/quarkus/it/flyway/FlywayApp.java | 16 - .../flyway/FlywayFunctionalityResource.java | 16 - .../src/main/resources/application.properties | 15 - .../flyway/FlywayFunctionalityNativeIT.java | 16 - .../it/flyway/FlywayFunctionalityTest.java | 16 - .../it/flyway/FlywayTestResources.java | 16 - .../hibernate-orm-panache/pom.xml | 16 - .../io/quarkus/it/panache/AccessorEntity.java | 16 - .../java/io/quarkus/it/panache/Address.java | 16 - .../io/quarkus/it/panache/GenericEntity.java | 16 - .../java/io/quarkus/it/panache/Person.java | 16 - .../java/io/quarkus/it/panache/Status.java | 16 - .../io/quarkus/it/panache/TestEndpoint.java | 16 - .../src/main/resources/application.properties | 16 - .../PanacheFunctionalityInGraalITCase.java | 16 - .../it/panache/PanacheFunctionalityTest.java | 16 - .../io/quarkus/it/panache/TestResources.java | 16 - .../hibernate-search-elasticsearch/pom.xml | 16 - .../src/main/resources/META-INF/beans.xml | 16 +- .../src/main/resources/application.properties | 16 - .../ElasticsearchClientInGraalIT.java | 16 - .../ElasticsearchClientTest.java | 16 - .../HibernateSearchInGraalIT.java | 16 - .../elasticsearch/HibernateSearchTest.java | 16 - .../search/elasticsearch/TestResources.java | 16 - .../src/main/resources/META-INF/beans.xml | 2 + .../infinispan-cache-jpa/pom.xml | 16 - .../src/main/resources/META-INF/beans.xml | 2 + .../infinispan/cache/jpa/TestResources.java | 16 - integration-tests/infinispan-client/pom.xml | 16 - .../it/infinispan/client/TestServlet.java | 16 - integration-tests/jpa-h2/pom.xml | 16 - .../src/main/resources/META-INF/beans.xml | 2 + .../io/quarkus/it/jpa/h2/TestResources.java | 16 - integration-tests/jpa-mariadb/pom.xml | 16 - .../src/main/resources/META-INF/beans.xml | 16 +- .../main/resources/META-INF/persistence.xml | 16 - .../src/main/resources/application.properties | 16 - .../JPAFunctionalityInGraalITCase.java | 16 - .../it/jpa/mariadb/JPAFunctionalityTest.java | 16 - integration-tests/jpa-mssql/pom.xml | 16 - integration-tests/jpa-postgresql/pom.xml | 16 - .../io/quarkus/it/jpa/postgresql/Address.java | 16 - .../io/quarkus/it/jpa/postgresql/Animal.java | 16 - .../quarkus/it/jpa/postgresql/Customer.java | 16 - .../io/quarkus/it/jpa/postgresql/Human.java | 16 - .../JPAFunctionalityTestEndpoint.java | 16 - .../postgresql/JPATestReflectionEndpoint.java | 16 - .../postgresql/NotAnEntityNotReferenced.java | 16 - .../io/quarkus/it/jpa/postgresql/Person.java | 16 - .../it/jpa/postgresql/SequencedAddress.java | 16 - .../io/quarkus/it/jpa/postgresql/Status.java | 16 - .../it/jpa/postgresql/WorkAddress.java | 16 - .../src/main/resources/META-INF/beans.xml | 16 +- .../main/resources/META-INF/persistence.xml | 16 - .../src/main/resources/application.properties | 16 - .../JPAFunctionalityInGraalITCase.java | 16 - .../jpa/postgresql/JPAFunctionalityTest.java | 16 - .../JPAReflectionInGraalITCase.java | 16 - .../jpa/configurationless/TestResources.java | 16 - integration-tests/kafka/pom.xml | 16 - .../src/main/resources/application.properties | 16 - integration-tests/keycloak/pom.xml | 16 - .../io/quarkus/it/keycloak/AdminResource.java | 15 - .../it/keycloak/ConfidentialResource.java | 15 - .../io/quarkus/it/keycloak/UsersResource.java | 15 - ...BearerTokenAuthorizationInGraalITCase.java | 15 - .../BearerTokenAuthorizationTest.java | 15 - integration-tests/main/pom.xml | 16 - .../io/quarkus/it/arc/RequestScopedBean.java | 16 - .../it/arc/TestRequestScopeEndpoint.java | 16 - .../it/arc/somepackage/Superclass.java | 16 - .../it/config/MicroProfileConfigResource.java | 16 - .../it/corestuff/ReflectionTestEndpoint.java | 16 - .../it/corestuff/SomeReflectionObject.java | 16 - .../it/datasource/DatasourceResource.java | 16 - .../it/datasource/DatasourceSetup.java | 16 - .../io/quarkus/it/faulttolerance/Service.java | 16 - .../it/faulttolerance/TestResource.java | 16 - .../quarkus/it/health/SimpleHealthCheck.java | 16 - .../main/java/io/quarkus/it/jpa/Address.java | 16 - .../main/java/io/quarkus/it/jpa/Animal.java | 16 - .../main/java/io/quarkus/it/jpa/Customer.java | 16 - .../main/java/io/quarkus/it/jpa/Human.java | 16 - .../it/jpa/JPATestBootstrapEndpoint.java | 16 - .../it/jpa/JPATestEMInjectionEndpoint.java | 16 - .../it/jpa/JPATestReflectionEndpoint.java | 16 - .../java/io/quarkus/it/jpa/JpaProducer.java | 16 - .../it/jpa/NotAnEntityNotReferenced.java | 16 - .../main/java/io/quarkus/it/jpa/Person.java | 16 - .../io/quarkus/it/jpa/SequencedAddress.java | 16 - .../java/io/quarkus/it/jpa/WorkAddress.java | 16 - .../quarkus/it/metrics/MetricsResource.java | 16 - .../it/opentracing/OpenTracingResource.java | 16 - .../reactive/ReactiveStreamOpsResource.java | 16 - .../io/quarkus/it/rest/ClientResource.java | 16 - .../io/quarkus/it/rest/CollectionType.java | 16 - .../io/quarkus/it/rest/ComponentType.java | 16 - .../io/quarkus/it/rest/RestInterface.java | 16 - .../io/quarkus/it/rest/SslClientResource.java | 16 - .../io/quarkus/it/rest/SslRestInterface.java | 16 - .../java/io/quarkus/it/rest/SubComponent.java | 16 - .../java/io/quarkus/it/rest/TestResource.java | 16 - .../it/transaction/TransactionResource.java | 16 - .../it/validator/TestValidatorEndpoint.java | 16 - .../java/io/quarkus/it/web/TestFilter.java | 16 - .../io/quarkus/it/web/TestSecureServlet.java | 16 - .../java/io/quarkus/it/web/TestServlet.java | 16 - .../it/websocket/ClientCodingResource.java | 15 - .../it/websocket/ClientDtoDecoder.java | 15 - .../it/websocket/ClientDtoEncoder.java | 15 - .../io/quarkus/it/websocket/CodingClient.java | 15 - .../java/io/quarkus/it/websocket/Dto.java | 15 - .../io/quarkus/it/websocket/EchoSocket.java | 16 - .../quarkus/it/websocket/RecodingSocket.java | 15 - .../it/websocket/ServerDtoDecoder.java | 15 - .../it/websocket/ServerDtoEncoder.java | 15 - .../src/main/resources/META-INF/beans.xml | 16 +- .../main/resources/META-INF/persistence.xml | 16 - .../resources/META-INF/resources/index.html | 16 - .../src/main/resources/application.properties | 16 - .../it/main/ContextPropagationITCase.java | 16 - .../it/main/ContextPropagationTestCase.java | 16 - .../it/main/CoreReflectionInGraalITCase.java | 16 - .../it/main/DataSourceTransactionITCase.java | 16 - .../main/DataSourceTransactionTestCase.java | 16 - .../io/quarkus/it/main/DatasourceITCase.java | 16 - .../quarkus/it/main/DatasourceTestCase.java | 16 - .../quarkus/it/main/ExternalIndexITCase.java | 16 - .../it/main/ExternalIndexTestCase.java | 16 - .../quarkus/it/main/FaultToleranceITCase.java | 16 - .../it/main/FaultToleranceTestCase.java | 16 - .../quarkus/it/main/HealthCheckTestCase.java | 16 - .../java/io/quarkus/it/main/HealthITCase.java | 16 - .../io/quarkus/it/main/HealthTestCase.java | 16 - .../quarkus/it/main/JPABootstrapITCase.java | 16 - .../quarkus/it/main/JPABootstrapTestCase.java | 16 - .../JPAEntityManagerInjectionTestCase.java | 16 - .../it/main/JPAReflectionInGraalITCase.java | 16 - .../java/io/quarkus/it/main/JaxRSITCase.java | 16 - .../io/quarkus/it/main/JaxRSTestCase.java | 16 - .../io/quarkus/it/main/MetricsITCase.java | 16 - .../io/quarkus/it/main/MetricsTestCase.java | 16 - .../it/main/MicroProfileConfigITCase.java | 16 - .../it/main/MicroProfileConfigTestCase.java | 16 - .../io/quarkus/it/main/OpenApiITCase.java | 16 - .../io/quarkus/it/main/OpenApiTestCase.java | 16 - .../io/quarkus/it/main/OpenTracingITCase.java | 16 - .../quarkus/it/main/OpenTracingTestCase.java | 16 - .../main/ReactiveStreamsOperatorsITCase.java | 16 - .../ReactiveStreamsOperatorsTestCase.java | 16 - .../quarkus/it/main/RequestScopeITCase.java | 16 - .../quarkus/it/main/RequestScopeTestCase.java | 16 - .../io/quarkus/it/main/RestClientITCase.java | 16 - .../quarkus/it/main/RestClientTestCase.java | 16 - .../io/quarkus/it/main/ServletITCase.java | 16 - .../io/quarkus/it/main/ServletTestCase.java | 16 - .../io/quarkus/it/main/SwaggerUIITCase.java | 16 - .../io/quarkus/it/main/SwaggerUITestCase.java | 16 - .../io/quarkus/it/main/TestMockTestCase.java | 16 - .../io/quarkus/it/main/TestResources.java | 16 - .../io/quarkus/it/main/TransactionITCase.java | 16 - .../quarkus/it/main/TransactionTestCase.java | 16 - .../io/quarkus/it/main/ValidatorITCase.java | 16 - .../io/quarkus/it/main/ValidatorTestCase.java | 16 - .../io/quarkus/it/main/WebsocketITCase.java | 16 - .../io/quarkus/it/main/WebsocketTestCase.java | 16 - integration-tests/pom.xml | 17 +- integration-tests/reactive-pg-client/pom.xml | 16 - .../it/reactive/pg/client/FruitResource.java | 16 - .../pg/client/FruitsEndpointTest.java | 16 - .../pg/client/NativeFruitsEndpointIT.java | 16 - integration-tests/shared-library/pom.xml | 16 - .../io/quarkus/it/shared/SharedResource.java | 16 - .../src/main/resources/META-INF/beans.xml | 16 +- integration-tests/spring-di/pom.xml | 15 - .../quarkus/it/spring/AppConfiguration.java | 16 - .../main/java/io/quarkus/it/spring/Dummy.java | 16 - .../io/quarkus/it/spring/GreeterBean.java | 16 - .../spring/InjectedSpringBeansResource.java | 16 - .../io/quarkus/it/spring/MessageProducer.java | 16 - .../it/spring/MultiplierStringFunction.java | 16 - .../io/quarkus/it/spring/MyApplication.java | 16 - .../java/io/quarkus/it/spring/MyService.java | 16 - .../it/spring/NoOpSingleStringFunction.java | 16 - .../java/io/quarkus/it/spring/OtherDummy.java | 16 - .../quarkus/it/spring/PrototypeService.java | 16 - .../io/quarkus/it/spring/RequestBean.java | 16 - .../io/quarkus/it/spring/RequestService.java | 16 - .../io/quarkus/it/spring/SessionBean.java | 16 - .../io/quarkus/it/spring/SessionService.java | 16 - .../io/quarkus/it/spring/StringFunction.java | 16 - .../spring/InjectedSpringBeansResourceIT.java | 16 - .../InjectedSpringBeansResourceTest.java | 16 - integration-tests/test-extension/pom.xml | 16 - .../FinalFieldReflectionTestEndpoint.java | 16 - .../FinalFieldReflectionInGraalITCase.java | 16 - .../io/quarkus/it/vertx/JsonTestResource.java | 16 - .../src/main/resources/META-INF/beans.xml | 16 +- .../io/quarkus/it/vertx/JsonReaderIT.java | 16 - .../io/quarkus/it/vertx/JsonReaderTest.java | 16 - .../io/quarkus/it/vertx/JsonWriterIT.java | 16 - .../io/quarkus/it/vertx/JsonWriterTest.java | 16 - pom.xml | 18 +- tcks/microprofile-rest-client/pom.xml | 81 +++++ .../tck/restclient/SkipProblematicTests.java | 60 ++++ tcks/microprofile-rest-client/tck-suite.xml | 131 ++++++++ tcks/pom.xml | 1 + test-framework/arquillian/pom.xml | 16 - test-framework/common/pom.xml | 16 - .../test/common/NativeImageLauncher.java | 16 - .../quarkus/test/common/PathTestHelper.java | 16 - .../quarkus/test/common/PropertyTestUtil.java | 15 - .../test/common/QuarkusTestResource.java | 16 - .../QuarkusTestResourceLifecycleManager.java | 16 - .../test/common/TestResourceManager.java | 32 +- .../src/main/resources/META-INF/beans.xml | 2 + test-framework/h2/pom.xml | 16 - .../test/h2/H2DatabaseTestResource.java | 16 - test-framework/junit4/pom.xml | 16 - .../junit4/AbstractQuarkusRunListener.java | 16 - .../junit4/AbstractQuarkusTestRunner.java | 16 - .../io/quarkus/test/junit4/QuarkusTest.java | 16 - .../io/quarkus/test/junit4/SubstrateTest.java | 16 - test-framework/junit5-internal/pom.xml | 16 - .../java/io/quarkus/test/QuarkusUnitTest.java | 16 - test-framework/junit5/pom.xml | 16 - .../io/quarkus/test/junit/QuarkusTest.java | 16 - .../test/junit/QuarkusTestExtension.java | 22 +- .../io/quarkus/test/junit/SubstrateTest.java | 16 - test-framework/pom.xml | 16 - war-launcher/launcher/pom.xml | 16 - .../java/io/quarkus/legacy/launcher/Main.java | 16 - war-launcher/pom.xml | 16 - war-launcher/runner/pom.xml | 16 - .../src/main/java/io/quarkus/legacy/Main.java | 16 - 1304 files changed, 3008 insertions(+), 20475 deletions(-) create mode 100644 docs/src/main/asciidoc/azure-functions-resteasy-guide.adoc create mode 100644 extensions/azure-functions-resteasy/deployment/pom.xml create mode 100644 extensions/azure-functions-resteasy/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsResteasyProcessor.java create mode 100644 extensions/azure-functions-resteasy/maven-archetype/pom.xml create mode 100644 extensions/azure-functions-resteasy/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json create mode 100644 extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json create mode 100644 extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json create mode 100644 extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/pom.xml create mode 100644 extensions/azure-functions-resteasy/pom.xml create mode 100644 extensions/azure-functions-resteasy/runtime/pom.xml create mode 100644 extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureFunctionsResteasyTemplate.java create mode 100644 extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureHttpRequest.java create mode 100644 extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java create mode 100644 extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MockMailbox.java create mode 100644 extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MockMailboxImpl.java create mode 100644 extensions/mailer/runtime/src/test/java/io/quarkus/mailer/impl/MockMailerImplTest.java create mode 100644 extensions/panache/panache-common/deployment/pom.xml create mode 100644 extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JandexUtil.java rename extensions/panache/{hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache => panache-common/deployment/src/main/java/io/quarkus/panache/common}/deployment/JavaBeanUtil.java (96%) create mode 100644 extensions/panache/panache-common/runtime/src/main/java/io/quarkus/panache/common/impl/GenerateBridge.java create mode 100644 extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyDeploymentBuildItem.java create mode 100644 extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiDefaultPathTestCase.java create mode 100644 extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithSegmentsTestCase.java create mode 100644 extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithoutSegmentsTestCase.java create mode 100644 extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiResource.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java delete mode 100644 independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/ProxyAwareMirrorSelector.java create mode 100644 integration-tests/azure-functions-resteasy/pom.xml create mode 100644 integration-tests/azure-functions-resteasy/src/main/java/io/quarkus/it/azure/functions/resteasy/GreetingResource.java create mode 100644 integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/FunctionTest.java create mode 100644 integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpRequestMessageMock.java create mode 100644 integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpResponseMessageMock.java create mode 100644 tcks/microprofile-rest-client/pom.xml create mode 100644 tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/SkipProblematicTests.java create mode 100644 tcks/microprofile-rest-client/tck-suite.xml diff --git a/bom/pom.xml b/bom/pom.xml index 6cada6aa54fc1..97b0ae602e85d 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -1,19 +1,4 @@ - @@ -37,7 +22,7 @@ 0.1.5 0.2.0 0.34.0 - 2.0.19.Final + 2.0.21.Final 3.7.1.Final 1.0.0.Final 1.3 @@ -50,7 +35,7 @@ 1.1.3 1.3.0 2.0.4 - 1.1.4 + 1.0.0 1.0.7 1.0.4 1.0.4 @@ -145,6 +130,7 @@ 1.1.0 2.2.5 1.3.1 + 1.3.0 1.3.31 3.0.0-M2 0.4.0 @@ -178,15 +164,6 @@ import - - - org.jboss.resteasy - resteasy-bom - ${resteasy.version} - pom - import - - com.fasterxml.jackson @@ -195,6 +172,24 @@ import pom + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + + + + + org.jboss.resteasy + resteasy-bom + ${resteasy.version} + pom + import + @@ -428,6 +423,11 @@ quarkus-resteasy ${project.version} + + io.quarkus + quarkus-azure-functions-resteasy + ${project.version} + io.quarkus quarkus-resteasy-jsonb @@ -994,7 +994,7 @@ io.smallrye - smallrye-jwt + smallrye-jwt-1.1 ${smallrye-jwt.version} @@ -1889,6 +1889,11 @@ aws-serverless-java-container-core ${aws-lambda-serverless-java-container.version} + + com.microsoft.azure.functions + azure-functions-java-library + ${azure-functions-java-library.version} + org.apache.maven.shared diff --git a/build-parent/pom.xml b/build-parent/pom.xml index a03f491474e88..c3b56022dacd3 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -1,19 +1,4 @@ - @@ -63,6 +48,7 @@ 1.0 1.3 + 1.2.1 @@ -450,6 +436,16 @@ quarkus-resteasy-deployment ${project.version} + + io.quarkus + quarkus-azure-functions-resteasy-deployment + ${project.version} + + + io.quarkus + quarkus-azure-functions-resteasy + ${project.version} + io.quarkus quarkus-resteasy-server-common diff --git a/core/builder/pom.xml b/core/builder/pom.xml index a8cb43a671bce..6d814b4769451 100644 --- a/core/builder/pom.xml +++ b/core/builder/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildChain.java b/core/builder/src/main/java/io/quarkus/builder/BuildChain.java index d0aaf15047f12..896b56eba9b83 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildChain.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildChain.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.ArrayList; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java b/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java index 7a284377c3d85..ef614497d205c 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.io.BufferedWriter; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildContext.java b/core/builder/src/main/java/io/quarkus/builder/BuildContext.java index 2407188ce5b4f..f4b8738728bbe 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildContext.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import static io.quarkus.builder.Execution.*; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildException.java b/core/builder/src/main/java/io/quarkus/builder/BuildException.java index 78712e039657c..3f0b8bd3f5857 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildException.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.List; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildExecutionBuilder.java b/core/builder/src/main/java/io/quarkus/builder/BuildExecutionBuilder.java index 4ef1f6d3bbae2..59a9a0f9d233a 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildExecutionBuilder.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildExecutionBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.ArrayList; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildProvider.java b/core/builder/src/main/java/io/quarkus/builder/BuildProvider.java index cedc0fdf9a313..ebe480bde3616 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildProvider.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.ServiceLoader; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildResult.java b/core/builder/src/main/java/io/quarkus/builder/BuildResult.java index 1cc044f95d0d4..ddc0ac934675d 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildResult.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildResult.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.ArrayList; diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildStep.java b/core/builder/src/main/java/io/quarkus/builder/BuildStep.java index f9cbe17a09e90..b13ec641a4701 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildStep.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildStepBuilder.java b/core/builder/src/main/java/io/quarkus/builder/BuildStepBuilder.java index 14476877f6307..1a458fde723df 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildStepBuilder.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildStepBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.HashMap; diff --git a/core/builder/src/main/java/io/quarkus/builder/ChainBuildException.java b/core/builder/src/main/java/io/quarkus/builder/ChainBuildException.java index a19de2963338b..b116229dc7900 100644 --- a/core/builder/src/main/java/io/quarkus/builder/ChainBuildException.java +++ b/core/builder/src/main/java/io/quarkus/builder/ChainBuildException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/Constraint.java b/core/builder/src/main/java/io/quarkus/builder/Constraint.java index a7fded3c00035..97dfcf943b3e9 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Constraint.java +++ b/core/builder/src/main/java/io/quarkus/builder/Constraint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/Consume.java b/core/builder/src/main/java/io/quarkus/builder/Consume.java index 973cdae603ea3..a3aa18bced16a 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Consume.java +++ b/core/builder/src/main/java/io/quarkus/builder/Consume.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/ConsumeFlag.java b/core/builder/src/main/java/io/quarkus/builder/ConsumeFlag.java index e30f9628ab211..77774fa7dec35 100644 --- a/core/builder/src/main/java/io/quarkus/builder/ConsumeFlag.java +++ b/core/builder/src/main/java/io/quarkus/builder/ConsumeFlag.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/ConsumeFlags.java b/core/builder/src/main/java/io/quarkus/builder/ConsumeFlags.java index bcb4dadc4dc72..4ab63939cf045 100644 --- a/core/builder/src/main/java/io/quarkus/builder/ConsumeFlags.java +++ b/core/builder/src/main/java/io/quarkus/builder/ConsumeFlags.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import org.wildfly.common.Assert; diff --git a/core/builder/src/main/java/io/quarkus/builder/Execution.java b/core/builder/src/main/java/io/quarkus/builder/Execution.java index 1423fedd0a0a7..523b822dff3da 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Execution.java +++ b/core/builder/src/main/java/io/quarkus/builder/Execution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import static java.lang.Math.max; diff --git a/core/builder/src/main/java/io/quarkus/builder/FinalStep.java b/core/builder/src/main/java/io/quarkus/builder/FinalStep.java index 8b669c5540c35..058be03dc6171 100644 --- a/core/builder/src/main/java/io/quarkus/builder/FinalStep.java +++ b/core/builder/src/main/java/io/quarkus/builder/FinalStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/ItemId.java b/core/builder/src/main/java/io/quarkus/builder/ItemId.java index 51d93248b8b77..d9a2bebb98565 100644 --- a/core/builder/src/main/java/io/quarkus/builder/ItemId.java +++ b/core/builder/src/main/java/io/quarkus/builder/ItemId.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.Objects; diff --git a/core/builder/src/main/java/io/quarkus/builder/Messages.java b/core/builder/src/main/java/io/quarkus/builder/Messages.java index f56486e6d12a8..8ebe255e8c104 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Messages.java +++ b/core/builder/src/main/java/io/quarkus/builder/Messages.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/Produce.java b/core/builder/src/main/java/io/quarkus/builder/Produce.java index 9f64063ac5e7b..30f42ab264275 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Produce.java +++ b/core/builder/src/main/java/io/quarkus/builder/Produce.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/ProduceFlag.java b/core/builder/src/main/java/io/quarkus/builder/ProduceFlag.java index a536a04f7ec4c..c5215504c8061 100644 --- a/core/builder/src/main/java/io/quarkus/builder/ProduceFlag.java +++ b/core/builder/src/main/java/io/quarkus/builder/ProduceFlag.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/ProduceFlags.java b/core/builder/src/main/java/io/quarkus/builder/ProduceFlags.java index 57f288af6c383..8f8a8cf4e3488 100644 --- a/core/builder/src/main/java/io/quarkus/builder/ProduceFlags.java +++ b/core/builder/src/main/java/io/quarkus/builder/ProduceFlags.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import org.wildfly.common.Assert; diff --git a/core/builder/src/main/java/io/quarkus/builder/StepInfo.java b/core/builder/src/main/java/io/quarkus/builder/StepInfo.java index 32f56f8a26d2f..fb1fee58d24ef 100644 --- a/core/builder/src/main/java/io/quarkus/builder/StepInfo.java +++ b/core/builder/src/main/java/io/quarkus/builder/StepInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.util.Set; diff --git a/core/builder/src/main/java/io/quarkus/builder/Version.java b/core/builder/src/main/java/io/quarkus/builder/Version.java index 9ae6b6daca175..e49c505ac0e8a 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Version.java +++ b/core/builder/src/main/java/io/quarkus/builder/Version.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import java.io.IOException; diff --git a/core/builder/src/main/java/io/quarkus/builder/Version.properties b/core/builder/src/main/java/io/quarkus/builder/Version.properties index c9afd390fd35f..71ededdf7b7c8 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Version.properties +++ b/core/builder/src/main/java/io/quarkus/builder/Version.properties @@ -1,18 +1,2 @@ -# -# Copyright 2018 Red Hat, Inc. -# -# 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. -# - version=${project.version} jarName=${project.artifactId} diff --git a/core/builder/src/main/java/io/quarkus/builder/diag/Diagnostic.java b/core/builder/src/main/java/io/quarkus/builder/diag/Diagnostic.java index b7100b1d36f64..99730446bb7f3 100644 --- a/core/builder/src/main/java/io/quarkus/builder/diag/Diagnostic.java +++ b/core/builder/src/main/java/io/quarkus/builder/diag/Diagnostic.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.diag; import java.io.PrintStream; diff --git a/core/builder/src/main/java/io/quarkus/builder/item/BuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/BuildItem.java index d0c6610699169..2aaafe812e9c1 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/BuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/BuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; import java.lang.reflect.Modifier; diff --git a/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedBuildItem.java index fa79da1ba2e6c..cba00502af3f5 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedMultiBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedMultiBuildItem.java index ec60840a1425e..6d127a1615404 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedMultiBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/EnumNamedMultiBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/item/MultiBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/MultiBuildItem.java index 2b835569fab9b..a5829ab03bab1 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/MultiBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/MultiBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/item/NamedBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/NamedBuildItem.java index 714134b72f431..b156358bb708b 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/NamedBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/NamedBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/item/NamedMultiBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/NamedMultiBuildItem.java index 6a10eedeebaa5..512de226103ef 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/NamedMultiBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/NamedMultiBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/item/SimpleBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/SimpleBuildItem.java index 5815526ce04ae..2b0543ed552cd 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/SimpleBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/SimpleBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/item/SymbolicBuildItem.java b/core/builder/src/main/java/io/quarkus/builder/item/SymbolicBuildItem.java index 85fe698711b7a..ac53fadc6dd91 100644 --- a/core/builder/src/main/java/io/quarkus/builder/item/SymbolicBuildItem.java +++ b/core/builder/src/main/java/io/quarkus/builder/item/SymbolicBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.item; /** diff --git a/core/builder/src/main/java/io/quarkus/builder/location/Location.java b/core/builder/src/main/java/io/quarkus/builder/location/Location.java index b4866a4d7294f..0c783acae1119 100644 --- a/core/builder/src/main/java/io/quarkus/builder/location/Location.java +++ b/core/builder/src/main/java/io/quarkus/builder/location/Location.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder.location; import java.util.Objects; diff --git a/core/builder/src/test/java/io/quarkus/builder/BasicTests.java b/core/builder/src/test/java/io/quarkus/builder/BasicTests.java index e3097b07a537b..b83ed41a80c05 100644 --- a/core/builder/src/test/java/io/quarkus/builder/BasicTests.java +++ b/core/builder/src/test/java/io/quarkus/builder/BasicTests.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.builder; import static org.junit.Assert.*; diff --git a/core/creator/pom.xml b/core/creator/pom.xml index 9d09f791b7c56..2ae2f151d3af1 100644 --- a/core/creator/pom.xml +++ b/core/creator/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/creator/src/main/java/io/quarkus/creator/AppCreationPhase.java b/core/creator/src/main/java/io/quarkus/creator/AppCreationPhase.java index 0710a0617e2ab..b42f48a954216 100644 --- a/core/creator/src/main/java/io/quarkus/creator/AppCreationPhase.java +++ b/core/creator/src/main/java/io/quarkus/creator/AppCreationPhase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator; import io.quarkus.creator.config.Configurable; diff --git a/core/creator/src/main/java/io/quarkus/creator/AppCreator.java b/core/creator/src/main/java/io/quarkus/creator/AppCreator.java index 26e3a1cf3f9e0..e94d391f881ec 100644 --- a/core/creator/src/main/java/io/quarkus/creator/AppCreator.java +++ b/core/creator/src/main/java/io/quarkus/creator/AppCreator.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator; import java.io.IOException; diff --git a/core/creator/src/main/java/io/quarkus/creator/AppCreatorException.java b/core/creator/src/main/java/io/quarkus/creator/AppCreatorException.java index a15743ef66f9e..f17488068a58e 100644 --- a/core/creator/src/main/java/io/quarkus/creator/AppCreatorException.java +++ b/core/creator/src/main/java/io/quarkus/creator/AppCreatorException.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/Configurable.java b/core/creator/src/main/java/io/quarkus/creator/config/Configurable.java index 7d75ea1aac39a..81bbcdbf19b50 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/Configurable.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/Configurable.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config; import io.quarkus.creator.config.reader.PropertiesHandler; diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/MappedPropertiesHandler.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/MappedPropertiesHandler.java index e42a972a61e67..86b9493ec03d0 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/MappedPropertiesHandler.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/MappedPropertiesHandler.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; import java.util.Collections; diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/MultirootedConfigHandler.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/MultirootedConfigHandler.java index 6a4d8866bd51b..4254e28006924 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/MultirootedConfigHandler.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/MultirootedConfigHandler.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReader.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReader.java index 00193f3c43e96..a4cf66457213d 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReader.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReader.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; import java.io.BufferedReader; diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReaderException.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReaderException.java index df615f3b3070a..af2979d0ff916 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReaderException.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigReaderException.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigUtils.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigUtils.java index 5042fc3780657..f2aa14335621e 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigUtils.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesConfigUtils.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesHandler.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesHandler.java index 59202c29c52a2..b38f5f5e4586a 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesHandler.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertiesHandler.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyContext.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyContext.java index f46e1519d6315..8c7a55c0d0a72 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyContext.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyContext.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLine.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLine.java index 2fab1dff8184f..aaaf9fd93b356 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLine.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLine.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLineConverter.java b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLineConverter.java index 255139ec36335..3be8f3f592bb1 100644 --- a/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLineConverter.java +++ b/core/creator/src/main/java/io/quarkus/creator/config/reader/PropertyLineConverter.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.reader; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/Errors.java b/core/creator/src/main/java/io/quarkus/creator/outcome/Errors.java index fe27bae9201ac..0d396f8e504cd 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/Errors.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/Errors.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeMap.java b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeMap.java index bbb2ea0fc9f13..48aedec956237 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeMap.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeMap.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; import java.util.HashMap; diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProvider.java b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProvider.java index 128c8ccec0dd0..a545803a2c0c5 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProvider.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProvider.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; import io.quarkus.creator.AppCreatorException; diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderDescription.java b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderDescription.java index 52df853d2749d..6829f958b986d 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderDescription.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderDescription.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; import java.util.ArrayList; diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderRegistration.java b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderRegistration.java index 0c80cd4e11d8d..ec8e42b74c5c3 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderRegistration.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeProviderRegistration.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; import io.quarkus.creator.AppCreatorException; diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolver.java b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolver.java index 2b6f753505a21..7ba08a75bd12d 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolver.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolver.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; import java.util.Collections; diff --git a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolverFactory.java b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolverFactory.java index 78cb71f44ba32..f3a8b1d184a08 100644 --- a/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolverFactory.java +++ b/core/creator/src/main/java/io/quarkus/creator/outcome/OutcomeResolverFactory.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome; import java.util.HashMap; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentOutcome.java b/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentOutcome.java index b6f874aa2ccf9..f74faa3b5cb79 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentOutcome.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentOutcome.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.augment; import java.nio.file.Path; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentPhase.java b/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentPhase.java index 9cad57f4e469d..11135e6019db5 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentPhase.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/augment/AugmentPhase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.augment; import java.io.ByteArrayInputStream; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/CurateOutcome.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/CurateOutcome.java index 1c70577d4d528..bf9fb92ab4ebb 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/CurateOutcome.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/CurateOutcome.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; import java.nio.file.Path; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/CuratePhase.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/CuratePhase.java index 5565faf980a11..e3a87def8fe9c 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/CuratePhase.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/CuratePhase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; import java.io.IOException; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultArtifactVersion.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultArtifactVersion.java index fb35cab53b24a..497a9924ca75c 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultArtifactVersion.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultArtifactVersion.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; import java.math.BigInteger; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultUpdateDiscovery.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultUpdateDiscovery.java index d9e2f3d640863..5e2b3ce7b8982 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultUpdateDiscovery.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/DefaultUpdateDiscovery.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; import java.util.List; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/DependenciesOrigin.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/DependenciesOrigin.java index 9c1b4f1bf136f..22e8ef180eae4 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/DependenciesOrigin.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/DependenciesOrigin.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/UpdateDiscovery.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/UpdateDiscovery.java index 68c8cee776433..efb52d1a01f42 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/UpdateDiscovery.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/UpdateDiscovery.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; import java.util.List; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdate.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdate.java index 71666be83d097..8e91eb3edd888 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdate.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdateNumber.java b/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdateNumber.java index a873776917599..f7ce3a51a1fe9 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdateNumber.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/curate/VersionUpdateNumber.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.curate; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/generateconfig/GenerateConfigPhase.java b/core/creator/src/main/java/io/quarkus/creator/phase/generateconfig/GenerateConfigPhase.java index 0baa5008b2b3f..19f5f5cdfd0ef 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/generateconfig/GenerateConfigPhase.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/generateconfig/GenerateConfigPhase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.generateconfig; import java.io.FileInputStream; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ErrorReplacingProcessReader.java b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ErrorReplacingProcessReader.java index ce794669d98cc..ac11f19389785 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ErrorReplacingProcessReader.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ErrorReplacingProcessReader.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.creator.phase.nativeimage; import java.io.BufferedReader; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImageOutcome.java b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImageOutcome.java index 297b9200cee30..050fd1fe5ff76 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImageOutcome.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImageOutcome.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.nativeimage; /** diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImagePhase.java b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImagePhase.java index 9d9d1ead98354..f7193b020b855 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImagePhase.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImagePhase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.nativeimage; import java.io.BufferedReader; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ReportAnalyzer.java b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ReportAnalyzer.java index 9d3b7fb835678..0b042d2570730 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ReportAnalyzer.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/ReportAnalyzer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.creator.phase.nativeimage; import java.io.BufferedReader; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarOutcome.java b/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarOutcome.java index 879f4ed4bdcd0..561f45264daf5 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarOutcome.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarOutcome.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.runnerjar; import java.nio.file.Path; diff --git a/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarPhase.java b/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarPhase.java index b7aaef1a44013..d8d5044f1d463 100644 --- a/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarPhase.java +++ b/core/creator/src/main/java/io/quarkus/creator/phase/runnerjar/RunnerJarPhase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.phase.runnerjar; import java.io.ByteArrayOutputStream; diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/Address.java b/core/creator/src/test/java/io/quarkus/creator/config/test/Address.java index dbebb77a63694..1bafdb4fc2526 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/Address.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/Address.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; /** diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/MappingTestCase.java b/core/creator/src/test/java/io/quarkus/creator/config/test/MappingTestCase.java index 9b6af1f10031e..45944ba5503fb 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/MappingTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/MappingTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; import io.quarkus.creator.config.reader.MappedPropertiesHandler; diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/Person.java b/core/creator/src/test/java/io/quarkus/creator/config/test/Person.java index 1fe1c08c6322a..91453828ef1d5 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/Person.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/Person.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; /** diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/PersonAddressTestBase.java b/core/creator/src/test/java/io/quarkus/creator/config/test/PersonAddressTestBase.java index c709cbd54e365..c44453e8b80ab 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/PersonAddressTestBase.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/PersonAddressTestBase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/SmallryeTestCase.java b/core/creator/src/test/java/io/quarkus/creator/config/test/SmallryeTestCase.java index 42d7953e98a7f..a90426f8cdaeb 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/SmallryeTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/SmallryeTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/SwitchTestCase.java b/core/creator/src/test/java/io/quarkus/creator/config/test/SwitchTestCase.java index f725c1924e659..cef528e1e71b1 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/SwitchTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/SwitchTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; import io.quarkus.creator.config.reader.PropertiesConfigReaderException; diff --git a/core/creator/src/test/java/io/quarkus/creator/config/test/User.java b/core/creator/src/test/java/io/quarkus/creator/config/test/User.java index 43e69b6849e3d..0909ef03a2e5f 100644 --- a/core/creator/src/test/java/io/quarkus/creator/config/test/User.java +++ b/core/creator/src/test/java/io/quarkus/creator/config/test/User.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.config.test; import java.nio.file.Path; diff --git a/core/creator/src/test/java/io/quarkus/creator/outcome/test/CircularDependencyTestCase.java b/core/creator/src/test/java/io/quarkus/creator/outcome/test/CircularDependencyTestCase.java index cbde010a02b68..596c10fbd2c19 100644 --- a/core/creator/src/test/java/io/quarkus/creator/outcome/test/CircularDependencyTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/outcome/test/CircularDependencyTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/outcome/test/ManuallyProvidedOutcomeTestCase.java b/core/creator/src/test/java/io/quarkus/creator/outcome/test/ManuallyProvidedOutcomeTestCase.java index 52626354c3fc5..acfb5d5751004 100644 --- a/core/creator/src/test/java/io/quarkus/creator/outcome/test/ManuallyProvidedOutcomeTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/outcome/test/ManuallyProvidedOutcomeTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/outcome/test/ProviderNotFoundForOutcomeTypeTestCase.java b/core/creator/src/test/java/io/quarkus/creator/outcome/test/ProviderNotFoundForOutcomeTypeTestCase.java index 0b71a20b5483d..0fef3ebfe6f6b 100644 --- a/core/creator/src/test/java/io/quarkus/creator/outcome/test/ProviderNotFoundForOutcomeTypeTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/outcome/test/ProviderNotFoundForOutcomeTypeTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/outcome/test/SimplePhaseSequenceTestCase.java b/core/creator/src/test/java/io/quarkus/creator/outcome/test/SimplePhaseSequenceTestCase.java index 010c87ed90ed4..1b0769ee6b8e4 100644 --- a/core/creator/src/test/java/io/quarkus/creator/outcome/test/SimplePhaseSequenceTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/outcome/test/SimplePhaseSequenceTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/outcome/test/SinglePhaseTestCase.java b/core/creator/src/test/java/io/quarkus/creator/outcome/test/SinglePhaseTestCase.java index 157cf90071018..35649451ca8eb 100644 --- a/core/creator/src/test/java/io/quarkus/creator/outcome/test/SinglePhaseTestCase.java +++ b/core/creator/src/test/java/io/quarkus/creator/outcome/test/SinglePhaseTestCase.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome.test; import static org.junit.Assert.assertEquals; diff --git a/core/creator/src/test/java/io/quarkus/creator/outcome/test/TestResult.java b/core/creator/src/test/java/io/quarkus/creator/outcome/test/TestResult.java index 7041a0bb62598..c04cfacc6d44a 100644 --- a/core/creator/src/test/java/io/quarkus/creator/outcome/test/TestResult.java +++ b/core/creator/src/test/java/io/quarkus/creator/outcome/test/TestResult.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.creator.outcome.test; /** diff --git a/core/deployment/pom.xml b/core/deployment/pom.xml index 022d3a3b97453..ab5e46b076ff5 100644 --- a/core/deployment/pom.xml +++ b/core/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchive.java b/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchive.java index a17316ddf5372..0064eb39c7891 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchive.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchive.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import java.io.Closeable; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchiveImpl.java b/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchiveImpl.java index ed1b2f1df0707..052063b9037d4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchiveImpl.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ApplicationArchiveImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import java.io.Closeable; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/BuildProducerImpl.java b/core/deployment/src/main/java/io/quarkus/deployment/BuildProducerImpl.java index 779324933906d..5d19fd37682d7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/BuildProducerImpl.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/BuildProducerImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import io.quarkus.builder.BuildContext; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/Capabilities.java b/core/deployment/src/main/java/io/quarkus/deployment/Capabilities.java index 2270b6abf7fe1..f6f44823d3fdd 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/Capabilities.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/Capabilities.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import java.util.Set; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ClassOutput.java b/core/deployment/src/main/java/io/quarkus/deployment/ClassOutput.java index f210528992eec..8fdd59e17352f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ClassOutput.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ClassOutput.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import java.io.IOException; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java index 7da91289d8f7e..a757a6bc13db6 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import java.nio.file.Path; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusClassWriter.java b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusClassWriter.java index 1c95562b475d0..198829dc44ce7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusClassWriter.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusClassWriter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import org.objectweb.asm.ClassReader; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusConfig.java index de94604617876..96d949aa42914 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusConfig.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment; import java.util.HashSet; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/annotations/ExecutionTime.java b/core/deployment/src/main/java/io/quarkus/deployment/annotations/ExecutionTime.java index dcaf9981159a7..ceddc6e37100e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/annotations/ExecutionTime.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/annotations/ExecutionTime.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.annotations; /** diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveBuildItem.java index 2a7b6fd212a03..9738a6f10f381 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.nio.file.Path; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveMarkerBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveMarkerBuildItem.java index 3ae03c495fb4a..8dec21ed2c4bb 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveMarkerBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalApplicationArchiveMarkerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationArchivesBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationArchivesBuildItem.java index 047dade211259..1a048da1e5d87 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationArchivesBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationArchivesBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.util.Collection; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationClassNameBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationClassNameBuildItem.java index 434946c8a1ea3..62d7385b2237e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationClassNameBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationClassNameBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationIndexBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationIndexBuildItem.java index 3d2b42c75af08..b93ce3d12d0b4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationIndexBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ApplicationIndexBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import org.jboss.jandex.Index; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ArchiveRootBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ArchiveRootBuildItem.java index a4f18cab668b8..08d3d3fdefd47 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ArchiveRootBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ArchiveRootBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.nio.file.Path; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/BytecodeTransformerBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/BytecodeTransformerBuildItem.java index a55c4cf9f8322..3fe906494d69e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/BytecodeTransformerBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/BytecodeTransformerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.util.function.BiFunction; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/CapabilityBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/CapabilityBuildItem.java index bdf21d2acd7b0..fefdc17b3f3cb 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/CapabilityBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/CapabilityBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ClassOutputBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ClassOutputBuildItem.java index d81dde0d1be6d..0aaf92beb206e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ClassOutputBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ClassOutputBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/CombinedIndexBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/CombinedIndexBuildItem.java index 37b2da0c5fbca..f6c76ff475723 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/CombinedIndexBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/CombinedIndexBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import org.jboss.jandex.IndexView; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExecutorBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExecutorBuildItem.java index 9b860237f5743..a09811145bfc0 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExecutorBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExecutorBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.util.concurrent.ExecutorService; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExtensionSslNativeSupportBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExtensionSslNativeSupportBuildItem.java index 0e2469dcfd094..64106557e92fa 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExtensionSslNativeSupportBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ExtensionSslNativeSupportBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedClassBuildItem.java index 09c5df651a24f..56018b5018a49 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedClassBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedResourceBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedResourceBuildItem.java index c4d10261c859d..4c2d8fd242e53 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedResourceBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/GeneratedResourceBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/HotDeploymentWatchedFileBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/HotDeploymentWatchedFileBuildItem.java index a63efa6b048e3..1420d88a75e82 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/HotDeploymentWatchedFileBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/HotDeploymentWatchedFileBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainBytecodeRecorderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainBytecodeRecorderBuildItem.java index b13ad5ed99a58..95ef1b46e21a4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainBytecodeRecorderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainBytecodeRecorderBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainClassBuildItem.java index 3d160267c98a6..b587597f99ed4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/MainClassBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ProxyUnwrapperBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ProxyUnwrapperBuildItem.java index b66e6dfc9c593..d18fcfd6c23d6 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ProxyUnwrapperBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ProxyUnwrapperBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.util.function.Function; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ServiceStartBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ServiceStartBuildItem.java index d48716a627432..9acef96e066ab 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ServiceStartBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ServiceStartBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ShutdownContextBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ShutdownContextBuildItem.java index 4481c86ab2327..8771d03645f0d 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/ShutdownContextBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/ShutdownContextBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/SslNativeConfigBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/SslNativeConfigBuildItem.java index 7373929fa7f00..3271c0853afc3 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/SslNativeConfigBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/SslNativeConfigBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import java.util.Optional; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticBytecodeRecorderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticBytecodeRecorderBuildItem.java index 76dc7b8ef2e46..5e29203b0d388 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticBytecodeRecorderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticBytecodeRecorderBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/SystemPropertyBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/SystemPropertyBuildItem.java index cf82c979d1126..f9bf5add7638f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/SystemPropertyBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/SystemPropertyBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/WiringClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/WiringClassBuildItem.java index b31bad26fb068..cac592cb17a9d 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/WiringClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/WiringClassBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveClassBuildItem.java index b39642cd8044a..4d808671a9c7f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveClassBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import static java.util.Arrays.stream; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveFieldBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveFieldBuildItem.java index 2ebb0584e1a3b..7a2c79c5c28ae 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveFieldBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveFieldBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import java.lang.reflect.Field; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveHierarchyBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveHierarchyBuildItem.java index 678be658117a0..f2c0eddd6b36e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveHierarchyBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveHierarchyBuildItem.java @@ -1,21 +1,6 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; +import org.jboss.jandex.IndexView; import org.jboss.jandex.Type; import io.quarkus.builder.item.MultiBuildItem; @@ -40,12 +25,22 @@ public final class ReflectiveHierarchyBuildItem extends MultiBuildItem { private final Type type; + private IndexView index; public ReflectiveHierarchyBuildItem(Type type) { this.type = type; } + public ReflectiveHierarchyBuildItem(Type type, IndexView index) { + this.type = type; + this.index = index; + } + public Type getType() { return type; } + + public IndexView getIndex() { + return index; + } } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveMethodBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveMethodBuildItem.java index 9ad97f23c60f6..cc5d9deb2d588 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveMethodBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ReflectiveMethodBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import java.lang.reflect.Method; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeInitializedClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeInitializedClassBuildItem.java index 8785ab3acb698..1837c82aa86ac 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeInitializedClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeInitializedClassBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeReinitializedClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeReinitializedClassBuildItem.java index e60e8967174b5..427ecfefb2865 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeReinitializedClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/RuntimeReinitializedClassBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ServiceProviderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ServiceProviderBuildItem.java index e186d350f935d..a465d97f71bb1 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ServiceProviderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/ServiceProviderBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import java.util.Arrays; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateConfigBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateConfigBuildItem.java index 6f042d3af6c47..f3a1a2a37320e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateConfigBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateConfigBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import java.util.Arrays; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateOutputBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateOutputBuildItem.java index 347391eca5b3a..10e98a0c4099b 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateOutputBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateOutputBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateProxyDefinitionBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateProxyDefinitionBuildItem.java index 840e4f6a405a0..e2f87a3cd5276 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateProxyDefinitionBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateProxyDefinitionBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import java.util.ArrayList; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBuildItem.java index a8cd3d425f61e..1b0c73e8819d5 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import java.util.ArrayList; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBundleBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBundleBuildItem.java index 45c3720119e09..120950481c47c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBundleBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateResourceBundleBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateSystemPropertyBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateSystemPropertyBuildItem.java index e7638d286375f..986d9e21aa969 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateSystemPropertyBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/substrate/SubstrateSystemPropertyBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.builditem.substrate; import io.quarkus.builder.item.MultiBuildItem; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/configuration/ConfigurationError.java b/core/deployment/src/main/java/io/quarkus/deployment/configuration/ConfigurationError.java index c637bfa20e8ac..8ef5b96d22efe 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/configuration/ConfigurationError.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/configuration/ConfigurationError.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.configuration; public class ConfigurationError extends RuntimeException { diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java index ebb8b9d64efc8..a0c7b82228223 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/ApplicationArchiveBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import java.io.FileInputStream; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactIndex.java b/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactIndex.java index b69f0be826c05..5b33e5bd0f9c4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactIndex.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactIndex.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import java.nio.file.Path; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactResolver.java b/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactResolver.java index 61b34498d34d1..4199ff40d15bb 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactResolver.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/ArtifactResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; /** diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/ClassPathArtifactResolver.java b/core/deployment/src/main/java/io/quarkus/deployment/index/ClassPathArtifactResolver.java index d78e4a202c173..730730e1f1b48 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/ClassPathArtifactResolver.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/ClassPathArtifactResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import java.io.IOException; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/IndexDependencyConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/index/IndexDependencyConfig.java index 347a95bec1e0f..bb8c39099d7a3 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/IndexDependencyConfig.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/IndexDependencyConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import io.quarkus.runtime.annotations.ConfigGroup; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/MapArtifactResolver.java b/core/deployment/src/main/java/io/quarkus/deployment/index/MapArtifactResolver.java index 0315519128949..04d8907bfd09f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/MapArtifactResolver.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/MapArtifactResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import java.util.HashMap; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/index/ResolvedArtifact.java b/core/deployment/src/main/java/io/quarkus/deployment/index/ResolvedArtifact.java index 9d8eb11d6f1d6..fdef1ff8483bb 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/index/ResolvedArtifact.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/index/ResolvedArtifact.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import java.nio.file.Path; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java index b720c844c890f..93e9bf4f70ccc 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.logging; import java.util.List; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java b/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java index 34c4c0dac56c3..cbadd56ad2dcf 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.recording; import static io.quarkus.gizmo.MethodDescriptor.ofConstructor; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/recording/RecorderContext.java b/core/deployment/src/main/java/io/quarkus/deployment/recording/RecorderContext.java index e0eb8af9dee18..178a15d4081da 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/recording/RecorderContext.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/recording/RecorderContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.recording; import java.lang.reflect.Constructor; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ApplicationIndexBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ApplicationIndexBuildStep.java index 2cb367d6df1ac..c052add0a5fff 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ApplicationIndexBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ApplicationIndexBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.io.IOException; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/CapabilityAggregationStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/CapabilityAggregationStep.java index 95de5ba3e2c55..89bd01ff71b4a 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/CapabilityAggregationStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/CapabilityAggregationStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.util.HashSet; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/CombinedIndexBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/CombinedIndexBuildStep.java index 3651e5c6c0e14..4973674ba99c3 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/CombinedIndexBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/CombinedIndexBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.util.ArrayList; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/DevModeBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/DevModeBuildStep.java index c43fa0183304d..15bae550d4ad9 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/DevModeBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/DevModeBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.util.Arrays; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/MainClassBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/MainClassBuildStep.java index af95a00ca2e7e..10750ead13fc4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/MainClassBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/MainClassBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import static io.quarkus.gizmo.MethodDescriptor.ofConstructor; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java index 8ff4e9f085004..79a62475d4d90 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.lang.reflect.Modifier; @@ -63,7 +47,7 @@ public void build() throws Exception { Set processedReflectiveHierarchies = new HashSet<>(); Set unindexedClasses = new TreeSet<>(); for (ReflectiveHierarchyBuildItem i : hierarchy) { - addReflectiveHierarchy(i.getType(), processedReflectiveHierarchies, unindexedClasses); + addReflectiveHierarchy(i, i.getType(), processedReflectiveHierarchies, unindexedClasses); } if (!unindexedClasses.isEmpty()) { @@ -76,7 +60,8 @@ public void build() throws Exception { } } - private void addReflectiveHierarchy(Type type, Set processedReflectiveHierarchies, Set unindexedClasses) { + private void addReflectiveHierarchy(ReflectiveHierarchyBuildItem i, Type type, Set processedReflectiveHierarchies, + Set unindexedClasses) { if (type instanceof VoidType || type instanceof PrimitiveType || type instanceof UnresolvedTypeVariable) { @@ -86,44 +71,45 @@ private void addReflectiveHierarchy(Type type, Set processedReflectiveH return; } - addClassTypeHierarchy(type.name(), processedReflectiveHierarchies, unindexedClasses); + addClassTypeHierarchy(i, type.name(), processedReflectiveHierarchies, unindexedClasses); for (ClassInfo subclass : combinedIndexBuildItem.getIndex().getAllKnownSubclasses(type.name())) { - addClassTypeHierarchy(subclass.name(), processedReflectiveHierarchies, unindexedClasses); + addClassTypeHierarchy(i, subclass.name(), processedReflectiveHierarchies, unindexedClasses); } for (ClassInfo subclass : combinedIndexBuildItem.getIndex().getAllKnownImplementors(type.name())) { - addClassTypeHierarchy(subclass.name(), processedReflectiveHierarchies, unindexedClasses); + addClassTypeHierarchy(i, subclass.name(), processedReflectiveHierarchies, unindexedClasses); } } else if (type instanceof ArrayType) { - addReflectiveHierarchy(type.asArrayType().component(), processedReflectiveHierarchies, unindexedClasses); + addReflectiveHierarchy(i, type.asArrayType().component(), processedReflectiveHierarchies, unindexedClasses); } else if (type instanceof ParameterizedType) { ParameterizedType p = (ParameterizedType) type; - addReflectiveHierarchy(p.owner(), processedReflectiveHierarchies, unindexedClasses); + addReflectiveHierarchy(i, p.owner(), processedReflectiveHierarchies, unindexedClasses); for (Type arg : p.arguments()) { - addReflectiveHierarchy(arg, processedReflectiveHierarchies, unindexedClasses); + addReflectiveHierarchy(i, arg, processedReflectiveHierarchies, unindexedClasses); } } } - private void addClassTypeHierarchy(DotName name, Set processedReflectiveHierarchies, + private void addClassTypeHierarchy(ReflectiveHierarchyBuildItem i, DotName name, + Set processedReflectiveHierarchies, Set unindexedClasses) { if (skipClass(name, processedReflectiveHierarchies)) { return; } processedReflectiveHierarchies.add(name); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, name.toString())); - ClassInfo info = combinedIndexBuildItem.getIndex().getClassByName(name); + ClassInfo info = (i.getIndex() != null ? i.getIndex() : combinedIndexBuildItem.getIndex()).getClassByName(name); if (info == null) { unindexedClasses.add(name); } else { - addClassTypeHierarchy(info.superName(), processedReflectiveHierarchies, unindexedClasses); + addClassTypeHierarchy(i, info.superName(), processedReflectiveHierarchies, unindexedClasses); for (FieldInfo field : info.fields()) { if (Modifier.isStatic(field.flags()) || field.name().startsWith("this$") || field.name().startsWith("val$")) { // skip the static fields (especially loggers) // also skip the outer class elements (unfortunately, we don't have a way to test for synthetic fields in Jandex) continue; } - addReflectiveHierarchy(field.type(), processedReflectiveHierarchies, unindexedClasses); + addReflectiveHierarchy(i, field.type(), processedReflectiveHierarchies, unindexedClasses); } for (MethodInfo method : info.methods()) { if (method.parameters().size() > 0 || Modifier.isStatic(method.flags()) @@ -131,7 +117,7 @@ private void addClassTypeHierarchy(DotName name, Set processedReflectiv // we will only consider potential getters continue; } - addReflectiveHierarchy(method.returnType(), processedReflectiveHierarchies, unindexedClasses); + addReflectiveHierarchy(i, method.returnType(), processedReflectiveHierarchies, unindexedClasses); } } } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java index d6b1c95accc9f..a6a4987ad577c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import javax.inject.Inject; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateAutoFeatureStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateAutoFeatureStep.java index d4c726ae2ab70..c19a33832d69b 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateAutoFeatureStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateAutoFeatureStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import static io.quarkus.gizmo.MethodDescriptor.ofMethod; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateConfigBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateConfigBuildStep.java index a50d9e5b20b40..b45683527dd29 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateConfigBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateConfigBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.nio.file.Files; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateSystemPropertiesBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateSystemPropertiesBuildStep.java index 41a38e630f8c4..1ca0ca2aac2fb 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateSystemPropertiesBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateSystemPropertiesBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import java.io.File; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ThreadPoolSetup.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ThreadPoolSetup.java index 872307136325c..d72fcb681c011 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ThreadPoolSetup.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ThreadPoolSetup.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.steps; import io.quarkus.deployment.annotations.BuildStep; diff --git a/core/deployment/src/main/java/io/quarkus/runner/RuntimeClassLoader.java b/core/deployment/src/main/java/io/quarkus/runner/RuntimeClassLoader.java index dd145b38c80ff..9f77c68c343b4 100644 --- a/core/deployment/src/main/java/io/quarkus/runner/RuntimeClassLoader.java +++ b/core/deployment/src/main/java/io/quarkus/runner/RuntimeClassLoader.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runner; import java.io.BufferedInputStream; diff --git a/core/deployment/src/main/java/io/quarkus/runner/RuntimeRunner.java b/core/deployment/src/main/java/io/quarkus/runner/RuntimeRunner.java index 349be691d1fe9..4ac8a707aef0f 100644 --- a/core/deployment/src/main/java/io/quarkus/runner/RuntimeRunner.java +++ b/core/deployment/src/main/java/io/quarkus/runner/RuntimeRunner.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runner; import java.io.Closeable; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/index/ApplicationArchiveBuildStepTestCase.java b/core/deployment/src/test/java/io/quarkus/deployment/index/ApplicationArchiveBuildStepTestCase.java index 15daa24bf5cf4..0df051e2cd3fd 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/index/ApplicationArchiveBuildStepTestCase.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/index/ApplicationArchiveBuildStepTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import static io.quarkus.deployment.index.ApplicationArchiveBuildStep.urlToPath; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/index/ClassPathArtifactResolverTestCase.java b/core/deployment/src/test/java/io/quarkus/deployment/index/ClassPathArtifactResolverTestCase.java index 4c222a1c4ddc0..f5961df3aef85 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/index/ClassPathArtifactResolverTestCase.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/index/ClassPathArtifactResolverTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.index; import static org.junit.Assert.assertNotNull; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/recording/BytecodeRecorderTestCase.java b/core/deployment/src/test/java/io/quarkus/deployment/recording/BytecodeRecorderTestCase.java index 7268b65c2cb78..a3644a5931766 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/recording/BytecodeRecorderTestCase.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/recording/BytecodeRecorderTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.recording; import java.io.IOException; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/recording/NonSerializable.java b/core/deployment/src/test/java/io/quarkus/deployment/recording/NonSerializable.java index db3ff2f34ee69..b148c3a1cc490 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/recording/NonSerializable.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/recording/NonSerializable.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.recording; import java.util.Objects; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestJavaBean.java b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestJavaBean.java index 71ba8c07a11d5..c81b2542ae0e9 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestJavaBean.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestJavaBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.recording; import java.util.Objects; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestTemplate.java b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestTemplate.java index b7a45512e7fd9..f148a2a18586b 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestTemplate.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.deployment.recording; import java.util.ArrayDeque; diff --git a/core/devmode/pom.xml b/core/devmode/pom.xml index 49452486a4c6a..028c2dcd12333 100644 --- a/core/devmode/pom.xml +++ b/core/devmode/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/devmode/src/main/java/io/quarkus/dev/ClassLoaderCompiler.java b/core/devmode/src/main/java/io/quarkus/dev/ClassLoaderCompiler.java index dd33e20723eb8..aba40e4656782 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/ClassLoaderCompiler.java +++ b/core/devmode/src/main/java/io/quarkus/dev/ClassLoaderCompiler.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.dev; import java.io.File; diff --git a/core/devmode/src/main/java/io/quarkus/dev/CopyUtils.java b/core/devmode/src/main/java/io/quarkus/dev/CopyUtils.java index fe671220f525c..e1acba498e53a 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/CopyUtils.java +++ b/core/devmode/src/main/java/io/quarkus/dev/CopyUtils.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.dev; import java.io.ByteArrayOutputStream; diff --git a/core/devmode/src/main/java/io/quarkus/dev/DevModeMain.java b/core/devmode/src/main/java/io/quarkus/dev/DevModeMain.java index 1bdd671e9c96d..50805f3986db0 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/DevModeMain.java +++ b/core/devmode/src/main/java/io/quarkus/dev/DevModeMain.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.dev; import java.io.Closeable; diff --git a/core/devmode/src/main/java/io/quarkus/dev/HotDeploymentConfigFileBuildStep.java b/core/devmode/src/main/java/io/quarkus/dev/HotDeploymentConfigFileBuildStep.java index 27b60c7b83e0d..f2bfbf64ce35d 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/HotDeploymentConfigFileBuildStep.java +++ b/core/devmode/src/main/java/io/quarkus/dev/HotDeploymentConfigFileBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.dev; import java.util.List; diff --git a/core/devmode/src/main/java/io/quarkus/dev/RuntimeCompilationSetup.java b/core/devmode/src/main/java/io/quarkus/dev/RuntimeCompilationSetup.java index 8397123e73439..59d8b5628f38b 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/RuntimeCompilationSetup.java +++ b/core/devmode/src/main/java/io/quarkus/dev/RuntimeCompilationSetup.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.dev; import java.util.ArrayList; diff --git a/core/devmode/src/main/java/io/quarkus/dev/RuntimeUpdatesProcessor.java b/core/devmode/src/main/java/io/quarkus/dev/RuntimeUpdatesProcessor.java index 89443bebae376..03d74491d148a 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/RuntimeUpdatesProcessor.java +++ b/core/devmode/src/main/java/io/quarkus/dev/RuntimeUpdatesProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.dev; import static java.util.stream.Collectors.groupingBy; diff --git a/core/pom.xml b/core/pom.xml index 686418af0e02b..ae8a9896c860a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/processor/src/main/java/io/quarkus/annotation/processor/ExtensionAnnotationProcessor.java b/core/processor/src/main/java/io/quarkus/annotation/processor/ExtensionAnnotationProcessor.java index 538d452e5be4c..6094dd666de3a 100644 --- a/core/processor/src/main/java/io/quarkus/annotation/processor/ExtensionAnnotationProcessor.java +++ b/core/processor/src/main/java/io/quarkus/annotation/processor/ExtensionAnnotationProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.annotation.processor; import static javax.lang.model.util.ElementFilter.constructorsIn; diff --git a/core/runtime/pom.xml b/core/runtime/pom.xml index 52401e7cc11bb..2d955387b20cd 100644 --- a/core/runtime/pom.xml +++ b/core/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/runtime/src/main/java/io/quarkus/runtime/Application.java b/core/runtime/src/main/java/io/quarkus/runtime/Application.java index 1a945d47e99ac..19da83a928b0a 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/Application.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/Application.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.util.concurrent.locks.Condition; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ConfigHelper.java b/core/runtime/src/main/java/io/quarkus/runtime/ConfigHelper.java index 875c957b68810..015e77867c987 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ConfigHelper.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ConfigHelper.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.util.Optional; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ExecutorTemplate.java b/core/runtime/src/main/java/io/quarkus/runtime/ExecutorTemplate.java index 857cf2393bebe..1a4d971a04118 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ExecutorTemplate.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ExecutorTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.time.Duration; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ObjectSubstitution.java b/core/runtime/src/main/java/io/quarkus/runtime/ObjectSubstitution.java index a050785dc6313..fe801307f3ae6 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ObjectSubstitution.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ObjectSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/Quarkus.java b/core/runtime/src/main/java/io/quarkus/runtime/Quarkus.java index ee20f08ab0f1a..9bd568f1c8ef4 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/Quarkus.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/Quarkus.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.lang.reflect.Method; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java b/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java index 53b8581c10798..f6365583402cc 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.io.InputStream; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/RuntimeValue.java b/core/runtime/src/main/java/io/quarkus/runtime/RuntimeValue.java index cff91dfce6d1f..ae24f96972246 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/RuntimeValue.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/RuntimeValue.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ShutdownContext.java b/core/runtime/src/main/java/io/quarkus/runtime/ShutdownContext.java index 9949731d2659c..0c8df5c4472a8 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ShutdownContext.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ShutdownContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ShutdownEvent.java b/core/runtime/src/main/java/io/quarkus/runtime/ShutdownEvent.java index e57820acc8c5b..4583447e96430 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ShutdownEvent.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ShutdownEvent.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/StartupContext.java b/core/runtime/src/main/java/io/quarkus/runtime/StartupContext.java index c5a152746514f..104d9d56a5261 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/StartupContext.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/StartupContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.io.Closeable; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/StartupEvent.java b/core/runtime/src/main/java/io/quarkus/runtime/StartupEvent.java index 94453ecb844fb..9b52ec65d4998 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/StartupEvent.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/StartupEvent.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/StartupTask.java b/core/runtime/src/main/java/io/quarkus/runtime/StartupTask.java index 8053653f6967c..a3c74d52f344a 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/StartupTask.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/StartupTask.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/Timing.java b/core/runtime/src/main/java/io/quarkus/runtime/Timing.java index cd56d555d891c..9b42d5c55196f 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/Timing.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/Timing.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime; import java.math.BigDecimal; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java b/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java index 9c1de432695bf..dbe91b9fcf4d2 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.annotations; import java.lang.annotation.ElementType; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/annotations/Template.java b/core/runtime/src/main/java/io/quarkus/runtime/annotations/Template.java index 14ab9d81480cc..c456a572e136a 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/annotations/Template.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/annotations/Template.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.annotations; import java.lang.annotation.ElementType; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java index 036f55c8be0f0..a1c689e895dd9 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import java.lang.annotation.Annotation; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/FieldReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/FieldReplacement.java index 80a278f5b3d77..6231575c27ec6 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/FieldReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/FieldReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import java.lang.annotation.Annotation; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/LoggingSubstitutions.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/LoggingSubstitutions.java index d48ae4884ded9..1e77e2262270e 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/LoggingSubstitutions.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/LoggingSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import java.util.logging.Handler; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/MappedByteBufferReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/MappedByteBufferReplacement.java index 682ae0bd3ddc5..f98382534aabb 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/MappedByteBufferReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/MappedByteBufferReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import java.io.FileDescriptor; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java index 3d6d0e46cfd0c..bf8fba1148b1f 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import java.lang.annotation.Annotation; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java index 5720cb1ead770..962f7cff887e3 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import java.lang.annotation.Annotation; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/QuarkusReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/QuarkusReplacement.java index 79ef2d1e1942c..be39359fca2f4 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/QuarkusReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/QuarkusReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import com.oracle.svm.core.annotate.Alias; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_management_JMX.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_management_JMX.java index 9bdf92f8defef..3f9c30fd00185 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_management_JMX.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_management_JMX.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import javax.management.JMX; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_xml_TransformerException.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_xml_TransformerException.java index 8cbdab4a757e7..ebbc187c4163c 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_xml_TransformerException.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/Target_javax_xml_TransformerException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import com.oracle.svm.core.annotate.Substitute; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/TimingReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/TimingReplacement.java index 5d46cf73f95df..50ff35be872d1 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/TimingReplacement.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/graal/TimingReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.graal; import com.oracle.svm.core.annotate.Alias; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/AsyncConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/AsyncConfig.java index 1a3a60ec9ad7d..a802a7e2c789a 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/AsyncConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/AsyncConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.logging; import org.jboss.logmanager.handlers.AsyncHandler.OverflowAction; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/CategoryConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/CategoryConfig.java index f7d88cf7ad229..136fc3686b219 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/CategoryConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/CategoryConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.logging; import io.quarkus.runtime.annotations.ConfigGroup; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/CleanupFilterConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/CleanupFilterConfig.java index 42bb56a85a99a..3a76d8748c530 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/CleanupFilterConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/CleanupFilterConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.logging; import java.util.List; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/ConsoleConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/ConsoleConfig.java index 561b11b38b064..e647663798997 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/ConsoleConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/ConsoleConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.logging; import java.util.logging.Level; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java index 3856c3488a1dd..58ed4b16893be 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.runtime.logging; import java.io.File; diff --git a/core/test-extension/deployment/pom.xml b/core/test-extension/deployment/pom.xml index a7eba5e23f574..3d56e24c01066 100644 --- a/core/test-extension/deployment/pom.xml +++ b/core/test-extension/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/test-extension/pom.xml b/core/test-extension/pom.xml index 076d3e4f1254e..a657ea36f5d66 100644 --- a/core/test-extension/pom.xml +++ b/core/test-extension/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/core/test-extension/runtime/pom.xml b/core/test-extension/runtime/pom.xml index 172bed93524ea..2c78d80f4e89d 100644 --- a/core/test-extension/runtime/pom.xml +++ b/core/test-extension/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/devtools/aesh/pom.xml b/devtools/aesh/pom.xml index 9eec5c1d00e0d..736112516bfc9 100644 --- a/devtools/aesh/pom.xml +++ b/devtools/aesh/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/devtools/common-core/pom.xml b/devtools/common-core/pom.xml index 89f870297f077..855c7c8d796b2 100644 --- a/devtools/common-core/pom.xml +++ b/devtools/common-core/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/devtools/common-core/src/main/java/io/quarkus/dependencies/Extension.java b/devtools/common-core/src/main/java/io/quarkus/dependencies/Extension.java index 10f5932935a0e..5eab82a4d33e2 100644 --- a/devtools/common-core/src/main/java/io/quarkus/dependencies/Extension.java +++ b/devtools/common-core/src/main/java/io/quarkus/dependencies/Extension.java @@ -1,19 +1,3 @@ -/* - * - * Copyright (c) 2016-2018 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.dependencies; import java.util.ArrayList; diff --git a/devtools/common/src/main/filtered/quarkus.properties b/devtools/common/src/main/filtered/quarkus.properties index c3dc008a42069..77cf02a6a571a 100644 --- a/devtools/common/src/main/filtered/quarkus.properties +++ b/devtools/common/src/main/filtered/quarkus.properties @@ -1,20 +1,3 @@ -# -# -# Copyright (c) 2016-2018 Red Hat, Inc. -# -# Red Hat 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 -# -# 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. -# - # Values used in the generated projects doc-root=https://quarkus.io bom-artifactId=quarkus-bom diff --git a/devtools/common/src/main/java/io/quarkus/maven/utilities/MojoUtils.java b/devtools/common/src/main/java/io/quarkus/maven/utilities/MojoUtils.java index b009a0d376d89..8d4a2c5b20dd1 100644 --- a/devtools/common/src/main/java/io/quarkus/maven/utilities/MojoUtils.java +++ b/devtools/common/src/main/java/io/quarkus/maven/utilities/MojoUtils.java @@ -1,20 +1,3 @@ -/* - * - * Copyright (c) 2016-2018 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven.utilities; import java.io.File; diff --git a/devtools/common/src/main/java/io/quarkus/remotedev/AgentRunner.java b/devtools/common/src/main/java/io/quarkus/remotedev/AgentRunner.java index a33874174a4c5..5128ac1491058 100644 --- a/devtools/common/src/main/java/io/quarkus/remotedev/AgentRunner.java +++ b/devtools/common/src/main/java/io/quarkus/remotedev/AgentRunner.java @@ -1,20 +1,3 @@ -/* - * Copyright 2016, Stuart Douglas, and individual contributors as indicated - * by the @authors tag. - * - * 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 io.quarkus.remotedev; import java.io.ByteArrayOutputStream; diff --git a/devtools/common/src/main/java/io/quarkus/remotedev/QuarkusWebsocketProtocol.java b/devtools/common/src/main/java/io/quarkus/remotedev/QuarkusWebsocketProtocol.java index 27576f7ddb8c6..27523a07b22db 100644 --- a/devtools/common/src/main/java/io/quarkus/remotedev/QuarkusWebsocketProtocol.java +++ b/devtools/common/src/main/java/io/quarkus/remotedev/QuarkusWebsocketProtocol.java @@ -1,20 +1,3 @@ -/* - * Copyright 2016, Stuart Douglas, and individual contributors as indicated - * by the @authors tag. - * - * 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 io.quarkus.remotedev; import java.io.DataOutputStream; diff --git a/devtools/common/src/main/java/io/quarkus/templates/TemplateRegistry.java b/devtools/common/src/main/java/io/quarkus/templates/TemplateRegistry.java index 06a3eee99bf43..a68565bdd514a 100644 --- a/devtools/common/src/main/java/io/quarkus/templates/TemplateRegistry.java +++ b/devtools/common/src/main/java/io/quarkus/templates/TemplateRegistry.java @@ -1,9 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - *

- * Licensed under the Eclipse Public License version 1.0, available at - * http://www.eclipse.org/legal/epl-v10.html - */ package io.quarkus.templates; import java.util.Map; diff --git a/devtools/extension-plugin/pom.xml b/devtools/extension-plugin/pom.xml index 8c00feec8be39..0e443394ba638 100644 --- a/devtools/extension-plugin/pom.xml +++ b/devtools/extension-plugin/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/devtools/extension-plugin/src/main/java/io/quarkus/maven/AbstractExtensionMojo.java b/devtools/extension-plugin/src/main/java/io/quarkus/maven/AbstractExtensionMojo.java index 8b8d0dd25612d..5eef4efdbc1c0 100644 --- a/devtools/extension-plugin/src/main/java/io/quarkus/maven/AbstractExtensionMojo.java +++ b/devtools/extension-plugin/src/main/java/io/quarkus/maven/AbstractExtensionMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven; import java.util.Collections; diff --git a/devtools/extension-plugin/src/main/java/io/quarkus/maven/ExtensionRegistry.java b/devtools/extension-plugin/src/main/java/io/quarkus/maven/ExtensionRegistry.java index ea850c90727cd..31cfca377a7d2 100644 --- a/devtools/extension-plugin/src/main/java/io/quarkus/maven/ExtensionRegistry.java +++ b/devtools/extension-plugin/src/main/java/io/quarkus/maven/ExtensionRegistry.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven; import java.util.HashMap; diff --git a/devtools/extension-plugin/src/main/java/io/quarkus/maven/extensionlist/ExtensionListMojo.java b/devtools/extension-plugin/src/main/java/io/quarkus/maven/extensionlist/ExtensionListMojo.java index 67eb67c7bbe67..2d27e9dd3d2ee 100644 --- a/devtools/extension-plugin/src/main/java/io/quarkus/maven/extensionlist/ExtensionListMojo.java +++ b/devtools/extension-plugin/src/main/java/io/quarkus/maven/extensionlist/ExtensionListMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven.extensionlist; import java.io.BufferedWriter; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java b/devtools/gradle/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java index b115532b35b3b..ee1314e77ec62 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/AppModelGradleResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.gradle; import java.io.BufferedReader; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPlugin.java b/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPlugin.java index 38b01705334ed..67b74acdc1be7 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPlugin.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPlugin.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle; import org.gradle.api.GradleException; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPluginExtension.java b/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPluginExtension.java index 32f9aaa3dcd60..1d21f84db74f5 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPluginExtension.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/QuarkusPluginExtension.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle; import java.io.File; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusAddExtension.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusAddExtension.java index a5cf49f679cec..f4bf9f7bae79c 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusAddExtension.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusAddExtension.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import org.gradle.api.tasks.TaskAction; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java index f73b9d0f1af85..b4dbe78d551be 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import java.io.File; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java index 2c66ea988ec22..c3382692fa381 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import java.io.BufferedReader; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusGenerateConfig.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusGenerateConfig.java index ec1e9323195df..0589ccaecc4e7 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusGenerateConfig.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusGenerateConfig.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import java.io.File; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusListExtensions.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusListExtensions.java index e8586759090f6..63e4801a72b6b 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusListExtensions.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusListExtensions.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import org.gradle.api.tasks.TaskAction; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusNative.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusNative.java index 9133f2d106127..40fe7119d11b7 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusNative.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusNative.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import java.nio.file.Path; diff --git a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java index e2e8e935bb437..157ba08fad5fc 100644 --- a/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java +++ b/devtools/gradle/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.gradle.tasks; import org.gradle.api.DefaultTask; diff --git a/devtools/maven/pom.xml b/devtools/maven/pom.xml index f76b7df4e4b93..e715fc92ecac3 100644 --- a/devtools/maven/pom.xml +++ b/devtools/maven/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/devtools/maven/src/it/setup-on-min-pom-it/pom.xml b/devtools/maven/src/it/setup-on-min-pom-it/pom.xml index 80316a5e21def..c958ee67a2a88 100644 --- a/devtools/maven/src/it/setup-on-min-pom-it/pom.xml +++ b/devtools/maven/src/it/setup-on-min-pom-it/pom.xml @@ -1,21 +1,4 @@ - - 4.0.0 diff --git a/devtools/maven/src/main/java/io/quarkus/maven/AnalyseCallTreeMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/AnalyseCallTreeMojo.java index 057f93f0863bf..37c2c64685436 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/AnalyseCallTreeMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/AnalyseCallTreeMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.File; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java index 34b0df3924f43..6d0a310a05921 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.maven; import java.io.File; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/CopyUtils.java b/devtools/maven/src/main/java/io/quarkus/maven/CopyUtils.java index 787e5dd1fae90..6f5f55f3ebc6a 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/CopyUtils.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/CopyUtils.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.ByteArrayOutputStream; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java index 1ccdbd9ab2b28..d3e1eb4ec6a1b 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo.java @@ -1,20 +1,3 @@ -/* - * - * Copyright (c) 2016-2018 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven; import static org.fusesource.jansi.Ansi.ansi; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/CreateUtils.java b/devtools/maven/src/main/java/io/quarkus/maven/CreateUtils.java index 242983548f248..ccf519bf618bc 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/CreateUtils.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/CreateUtils.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import org.apache.commons.lang3.StringUtils; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java index 4f87e457724c2..31182373269bd 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.ByteArrayOutputStream; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/ExampleConfigMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/ExampleConfigMojo.java index dc4d6d95e8d74..c8621b9abd0bc 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/ExampleConfigMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/ExampleConfigMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.File; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/GenerateConfigMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/GenerateConfigMojo.java index 82187eb66fb3f..1c830a8088737 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/GenerateConfigMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/GenerateConfigMojo.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.maven; import java.io.File; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/MojoLogger.java b/devtools/maven/src/main/java/io/quarkus/maven/MojoLogger.java index 809af24f62b72..14a9be230ba24 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/MojoLogger.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/MojoLogger.java @@ -1,21 +1,3 @@ -/* - * JBoss, Home of Professional Open Source. - * Copyright 2018 Red Hat, Inc., and individual contributors - * as indicated by the @author tags. - * - * 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 io.quarkus.maven; import java.text.MessageFormat; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java index ce82b06a50995..066651971c444 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/NativeImageMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.File; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/RemoteDevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/RemoteDevMojo.java index 8628a942e0801..c4c57bf92dd9c 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/RemoteDevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/RemoteDevMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.File; diff --git a/devtools/maven/src/main/java/io/quarkus/maven/components/Prompter.java b/devtools/maven/src/main/java/io/quarkus/maven/components/Prompter.java index d45d920bbf26a..017f8ecfc5fec 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/components/Prompter.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/components/Prompter.java @@ -1,19 +1,3 @@ -/* - * - * Copyright (c) 2016-2018 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven.components; import java.io.IOException; diff --git a/devtools/maven/src/test/java/io/quarkus/maven/it/ExtensionListIT.java b/devtools/maven/src/test/java/io/quarkus/maven/it/ExtensionListIT.java index 51010943de628..ad142dcc14f59 100644 --- a/devtools/maven/src/test/java/io/quarkus/maven/it/ExtensionListIT.java +++ b/devtools/maven/src/test/java/io/quarkus/maven/it/ExtensionListIT.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.maven.it; import static org.assertj.core.api.Assertions.assertThat; diff --git a/devtools/maven/src/test/resources/projects/extension-check/dummy-extension-deployment/pom.xml b/devtools/maven/src/test/resources/projects/extension-check/dummy-extension-deployment/pom.xml index 378707637a322..d70c3a98e17c3 100644 --- a/devtools/maven/src/test/resources/projects/extension-check/dummy-extension-deployment/pom.xml +++ b/devtools/maven/src/test/resources/projects/extension-check/dummy-extension-deployment/pom.xml @@ -1,20 +1,4 @@ - - 4.0.0 diff --git a/devtools/maven/src/test/resources/projects/extension-check/extension-list/pom.xml b/devtools/maven/src/test/resources/projects/extension-check/extension-list/pom.xml index aab3927cd4c28..c9df41e90f1fd 100644 --- a/devtools/maven/src/test/resources/projects/extension-check/extension-list/pom.xml +++ b/devtools/maven/src/test/resources/projects/extension-check/extension-list/pom.xml @@ -1,20 +1,4 @@ - - 4.0.0 diff --git a/devtools/maven/src/test/resources/projects/extension-check/pom.xml b/devtools/maven/src/test/resources/projects/extension-check/pom.xml index cc51e24c28c3a..f5863929430ea 100644 --- a/devtools/maven/src/test/resources/projects/extension-check/pom.xml +++ b/devtools/maven/src/test/resources/projects/extension-check/pom.xml @@ -1,20 +1,4 @@ - - 4.0.0 diff --git a/devtools/maven/src/test/resources/projects/multimodule/rest/src/main/resources/META-INF/beans.xml b/devtools/maven/src/test/resources/projects/multimodule/rest/src/main/resources/META-INF/beans.xml index e69de29bb2d1d..139597f9cb07c 100644 --- a/devtools/maven/src/test/resources/projects/multimodule/rest/src/main/resources/META-INF/beans.xml +++ b/devtools/maven/src/test/resources/projects/multimodule/rest/src/main/resources/META-INF/beans.xml @@ -0,0 +1,2 @@ + + diff --git a/devtools/pom.xml b/devtools/pom.xml index 70ecf874ab216..b7f2d0a304722 100644 --- a/devtools/pom.xml +++ b/devtools/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/docs/assembly.xml b/docs/assembly.xml index 22d3ad5466f7c..b852c1508f91a 100644 --- a/docs/assembly.xml +++ b/docs/assembly.xml @@ -1,20 +1,4 @@ - - quarkus-docs diff --git a/docs/pom.xml b/docs/pom.xml index b6f3c72855864..056e1640405dc 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/docs/src/main/asciidoc/ap4k.adoc b/docs/src/main/asciidoc/ap4k.adoc index c7d42660946f7..2eca99912459f 100644 --- a/docs/src/main/asciidoc/ap4k.adoc +++ b/docs/src/main/asciidoc/ap4k.adoc @@ -125,5 +125,3 @@ The full source of the `kubernetes.json` file looks something like this: An important thing to note about the `Deployment` is that is uses `yourDockerUsername/test-quarkus-app:1.0-SNAPSHOT` as the Docker image of the `Pod`. Also the `Service` is configured to use container port `8080` (which is automatically picked up by the standard Quarkus configuration). - -An important thing to keep in mind is that so far, all {project-name} has done is generate the `Kubernetes` resources, it has not applied them. The next section will walk you through how this can be done. diff --git a/docs/src/main/asciidoc/azure-functions-resteasy-guide.adoc b/docs/src/main/asciidoc/azure-functions-resteasy-guide.adoc new file mode 100644 index 0000000000000..50b73212f49cd --- /dev/null +++ b/docs/src/main/asciidoc/azure-functions-resteasy-guide.adoc @@ -0,0 +1,120 @@ +//// +This guide is maintained in the main Quarkus repository +and pull requests should be submitted there: +https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc +//// + +include::./attributes.adoc[] += {project-name} - Using Resteasy with Azure Functions (Serverless) + +Writing in Java standards rather than cloud provider specific frameworks like Azure Functions for Java keeps your REST +microservices portable to other cloud providers and other environments. + +This guide demonstrates how you can deploy a {project-name} JAX-RS microservice as +an Azure Function. You can develop your REST endpoints using JAX-RS and Resteasy, but still +be able to leverage the cheaper price points, scalability, and ease of deployment of Azure Functions. + +== Prerequisites + +To complete this guide, you need: + +* less than 15 minutes +* JDK 1.8 (Azure requires JDK 1.8) +* Apache Maven 3.5.3+ +* A completed https://quarkus.io/getting-started[Getting Started Guide] for Quarkus. +* https://azure.microsoft.com[An Azure Account]. Free accounts work. +* https://docs.microsoft.com/en-us/cli/azure/install-azure-cli[Azure CLI Installed] + +== Solution + +This guide requires that you have finished creating the JAX-RS application in the Getting Started Guide. +You will create a simple maven project whose sole purpose is to deploy the existing Quarkus application +you created within the Getting Started Guide. + +== Creating the Maven Deployment Project + +First create a new directory called `azure` and change your terminal's working directory to it. + +[source, subs=attributes+] +---- +$ mkdir azure +$ cd azure +---- + + +Next create the azure maven project for your Quarkus application. + +[source, subs=attributes+] +---- +mvn archetype:generate \ + -DarchetypeGroupId=io.quarkus \ + -DarchetypeArtifactId=quarkus-azure-functions-resteasy-archetype \ + -DarchetypeVersion={quarkus-version} +---- + +Running this command will run maven in interactive mode and it will ask you to fill in some build properties: + +* `groupId` - The `groupId` of your existing quarkus application. Since we are deploying the Getting Started Guide to + azure, this will be `org.acme`. +* `artifactId` - The `artifactId` of your existing quarkus application. Since we are deploying the Getting Started Guide + this will be `getting-started` +* `version` - Version that should match your existing quarkus application artifact. +* `package` - use the default value +* `azureFunction` - Name of your azure function. Can be anything you want. Type in `getting-started`. +* `azureFunctionAppName` - Application name of your azure function. Must be unique subdomain name under *.azurewebsites.net`. Otherwise deploying to Azure will fail. +* `azureFunctionAppRegion` - Dependent on your azure region. You can try `westus` if you don't know this value. +* `azureFunctionResourceGroup` - Any value you want. + +This will generate a `pom.xml` that generates an artifactId with a suffix of `-azure`. You can modify any of the values specified +above in the `pom.xml` file, but you will need to completely rerun the build. + +== Login to Azure + +If you don't login to Azure you won't be able to deploy. + +[source, subs=attributes+] +---- +az login +---- + +== Build and Deploy to Azure + +The `pom.xml` you generated in the previous step pulls in the `azure-functions-maven-plugin`. Running maven install +generates config files and a staging directory required by the `azure-functions-maven-plugin`. Here's +how to execute it. + +[source, subs=attributes+] +---- +mvn clean install azure-functions:deploy +---- + +If you haven't already created your function up at azure, the will build an uber-jar, package it, create the function +at Azure, and deploy it. + +If deployment is a success, the azure plugin will tell you the base URL to access your function. + +i.e. +[source] +---- +Successfully deployed the artifact to https://tutorials-resteasy-1.azurewebsites.net +---- + +The URL to access the service would be https://{azureFunctionAppName}.azurewebsites.net/api/hello + +== Configuring Root paths + +The default route prefix for an Azure Function is `/api`. Quarkus assumes the `/api` prefix. + +If your application defines a root path via +`@ApplicationPath` or the property `quarkus.resteasy.path`, then it must include the Azure route prefix. + +i.e. + +[source] +---- +@ApplicationPath("/api/myapp") +---- + +Furthermore, if you modify the `path` or add a `routePrefix` within the `azure-config/function.json` +deployment descriptor your ``@ApplicationPath` or `quarkus.resteasy.path` config must reflect this as well. Otherwise requests +will not route correctly. \ No newline at end of file diff --git a/docs/src/main/asciidoc/cdi-reference.adoc b/docs/src/main/asciidoc/cdi-reference.adoc index 371af94644d5c..1462cb3ef7465 100644 --- a/docs/src/main/asciidoc/cdi-reference.adoc +++ b/docs/src/main/asciidoc/cdi-reference.adoc @@ -59,14 +59,14 @@ You can use for example package-private modifiers: public class CounterBean { @Inject - CounterService counterService; // <1> + CounterService counterService; <1> - void onMessage(@Observes Event msg) { // <2> + void onMessage(@Observes Event msg) { <2> } } ---- -1. A package-private injection field -2. A package-private observer method +<1> A package-private injection field. +<2> A package-private observer method. Or constructor injection: @@ -75,19 +75,14 @@ Or constructor injection: @ApplicationScoped public class CounterBean { - private final CounterService service; + private CounterService service; - CounterBean() { // <1> - } - - @Inject - CounterBean(CounterService service) { // <2> + CounterBean(CounterService service) { <1> this.service = service; } } ---- -1. Dummy constructor needed for CDI beans with a normal scope -2. A package-private constructor injection +<1> A package-private constructor injection. [[supported_features]] @@ -120,7 +115,7 @@ public class CounterBean { * `@ConversationScoped` is not supported * Decorators are not supported * Portable Extensions are not supported -* `BeanManager` - only the following methods are implemented: `getBeans()`, `createCreationalContext()`, `getReference()`, `resolve()`, `getContext()`, `getEvent()` and `createInstance()` +* `BeanManager` - only the following methods are implemented: `getBeans()`, `createCreationalContext()`, `getReference()`, `getInjectableReference()` , `resolve()`, `getContext()`, `fireEvent()`, `getEvent()` and `createInstance()` * Specialization is not supported * `beans.xml` descriptor content is ignored * Passivation and passivating scopes are not supported @@ -231,6 +226,34 @@ AnnotationsTransformerBuildItem transform() { } ---- +=== Injection Point Transformation + +Every now and then it is handy to be able to change qualifiers of an injection point programmatically. +You can do just that with `InjectionPointTransformerBuildItem`. +The following sample shows how to apply transformation to injection points with type `Foo` that contain qualifier `MyQualifier`: + +[source,java] +---- +@BuildStep +InjectionPointTransformerBuildItem transform() { + return new InjectionPointTransformerBuildItem(new InjectionPointsTransformer() { + + public boolean appliesTo(Type requiredType) { + return requiredType.equals(Type.create(DotName.createSimple(Foo.class.getName()), Type.Kind.CLASS)); + } + + public void transform(TransformationContext transformationContext) { + if (transformationContext.getQualifiers().stream() + .anyMatch(a -> a.name().equals(DotName.createSimple(MyQualifier.class.getName())))) { + transformationContext.transform().removeAll() + .add(DotName.createSimple(MyOtherQualifier.class.getName())) + .done(); + } + } + }); +} +---- + === Bean Deployment Validation Once the bean deployment is ready an extension can perform additional validations and inspect the found beans, observers and injection points. diff --git a/docs/src/main/asciidoc/datasource-guide.adoc b/docs/src/main/asciidoc/datasource-guide.adoc index 0b7d11d5bdc7c..46384bd8a9a8b 100644 --- a/docs/src/main/asciidoc/datasource-guide.adoc +++ b/docs/src/main/asciidoc/datasource-guide.adoc @@ -259,7 +259,7 @@ AgroalDataSource dataSource2; |quarkus.datasource.background-validation-interval |java.time.Duration -|PT3M, PT56S, +|PT3M, PT56S, |quarkus.datasource.acquisition-timeout |java.time.Duration @@ -277,9 +277,13 @@ AgroalDataSource dataSource2; |io.quarkus.agroal.runtime.TransactionIsolationLevel (enum) |none, read-committed, read-uncommitted, repeatable-read, serializable +|quarkus.datasource.enable-metrics +|Boolean +|true or false + |quarkus.datasource.xa |Boolean -|True or False +|true or false |=== [NOTE] diff --git a/docs/src/main/asciidoc/sending-emails.adoc b/docs/src/main/asciidoc/sending-emails.adoc index 4b8fd1a3acc60..5c2202a699d6d 100644 --- a/docs/src/main/asciidoc/sending-emails.adoc +++ b/docs/src/main/asciidoc/sending-emails.adoc @@ -69,7 +69,7 @@ The following table lists the properties that can be configured: | Property | Type | Comment | Default | from | String | the default _from_ address, without, all emails will need an explicit value | -| mock | Boolean | if set to `true`, the emails are not sent, just printed on the console. | `false` +| mock | Boolean | if set to `true`, the emails are not sent, but printed on the console and collected in a `MockMailbox` bean. | `false` in `PROD` mode, true in `DEV` and `TEST` modes | bounce-address | String | the default bounce address | | host | String | the SMTP server host name | _mandatory_ | port | Integer | the SMTP server port | `25` @@ -202,6 +202,50 @@ By spec, when you create the inline attachment, the content-id must be structure If you don't wrap your content-id between `<>`, it is automatically wrapped for you. When you want to reference your attachment, for instance in the `src` attribute, use `cid:id@domain` (without the `<` and `>`). +== Testing email sending + +Because it is very inconvenient to send emails during development and testing, you can set the `quarkus.mailer.mock` boolean +configuration to `true` to not actually send emails but print them on stdout and collect them in a `MockMailbox` bean instead. +This is the default if you are running Quarkus in `DEV` or `TEST` mode. + +You can then write tests to verify that your emails were sent, for example, by a REST endpoint: + +[source, java] +---- +class MailTest { + + private static final String TO = "foo@quarkus.io"; + + @Inject + MockMailbox mailbox; + + @BeforeEach + void init() { + mailbox.clear(); + } + + @Test + void testTextMail() throws MessagingException, IOException { + // call a REST endpoint that sends email + given() + .when() + .get("/send-email") + .then() + .statusCode(200) + .body(is("OK")); + + // verify that it was sent + List sent = mailbox.getMessagesSentTo(TO); + assertThat(sent).hasSize(1); + Mail actual = sent.get(0); + assertThat(actual.getText()).contains("Wake up!"); + assertThat(actual.getSubject()).isEqualTo("Alarm!"); + + assertThat(mailbox.getTotalMessagesSent()).isEqualTo(6); + } +} +---- + == Using the underlying Vert.x Mail Client The Quarkus Mailer is implemented on top of the https://vertx.io/docs/vertx-mail-client/java/[Vert.x Mail Client], providing an asynchronous and non-blocking way to send emails. @@ -223,7 +267,6 @@ Check the link:using-vertx.html[Using Vert.x guide] for further details about th The retrieved `MailClient` is configured using the configuration key presented above. You can also create your own instance, and pass your own configuration. - == Conclusion This guide has shown how you can send emails from a Quarkus application. diff --git a/docs/src/main/asciidoc/undertow-reference.adoc b/docs/src/main/asciidoc/undertow-reference.adoc index 033bf137dbec5..4e7fe69cba93b 100644 --- a/docs/src/main/asciidoc/undertow-reference.adoc +++ b/docs/src/main/asciidoc/undertow-reference.adoc @@ -18,15 +18,14 @@ include::./attributes.adoc[] This document explains various Undertow features that you can use in Quarkus. - -=== Serving Static Resources +== Serving Static Resources To serve static resources you must place them in the `META-INF/resources` directory of your application. This is because Quarkus applications are jar files rather than war files, and this location is the standard location for resources in jar files as defined by the Servlet spec. -=== undertow-handlers.conf +== undertow-handlers.conf You can make use of the Undertow predicate language using an `undertow-handlers.conf` file. This file should be placed in the `META-INF` directory of your application jar. This file contains handlers defined using the -link:http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#predicates-attributes-and-handlers[Undertow predicate language]. \ No newline at end of file +link:http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#predicates-attributes-and-handlers[Undertow predicate language]. diff --git a/extensions/agroal/deployment/pom.xml b/extensions/agroal/deployment/pom.xml index 26ace6e486951..4eab036379e5f 100644 --- a/extensions/agroal/deployment/pom.xml +++ b/extensions/agroal/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java index 4b91fedeb813a..8aae23feb13f1 100644 --- a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java +++ b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.agroal.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java index 7aa750c167ab6..189c9f4a9e5c9 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java @@ -1,6 +1,7 @@ package io.quarkus.agroal.test; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; import java.sql.Connection; import java.sql.SQLException; @@ -55,6 +56,7 @@ private static void testDataSource(AgroalDataSource dataSource, String username, assertEquals(idleRemovalInterval, configuration.reapTimeout()); assertEquals(AgroalConnectionFactoryConfiguration.TransactionIsolation.SERIALIZABLE, agroalConnectionFactoryConfiguration.jdbcTransactionIsolation()); + assertTrue(dataSource.getConfiguration().metricsEnabled()); try (Connection connection = dataSource.getConnection()) { } diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java index 2e02e9598c8bd..c44d4b91ea6c1 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java @@ -1,6 +1,7 @@ package io.quarkus.agroal.test; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.fail; import java.sql.Connection; @@ -50,6 +51,7 @@ private static void dataSourceAssert(String dataSourceName, AgroalDataSource dat assertEquals(username, configuration.connectionFactoryConfiguration().principal().getName()); assertEquals(minSize, configuration.minSize()); assertEquals(maxSize, configuration.maxSize()); + assertFalse(dataSource.getConfiguration().metricsEnabled()); // metrics not enabled by default try (Connection connection = dataSource.getConnection()) { } diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/TestResources.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/TestResources.java index b3fb355b620c1..54f8f8c569b5a 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/TestResources.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.agroal.test; import io.quarkus.test.common.QuarkusTestResource; diff --git a/extensions/agroal/deployment/src/test/resources/application-default-datasource.properties b/extensions/agroal/deployment/src/test/resources/application-default-datasource.properties index 21f8859b07b08..a6835f5c66155 100644 --- a/extensions/agroal/deployment/src/test/resources/application-default-datasource.properties +++ b/extensions/agroal/deployment/src/test/resources/application-default-datasource.properties @@ -4,6 +4,7 @@ quarkus.datasource.driver=org.h2.Driver quarkus.datasource.username=username-default quarkus.datasource.min-size=3 quarkus.datasource.max-size=13 +quarkus.datasource.enable-metrics=true #end::basic[] quarkus.datasource.initial-size=7 quarkus.datasource.background-validation-interval=53 diff --git a/extensions/agroal/pom.xml b/extensions/agroal/pom.xml index bb441fd736dde..47b4f6984e30d 100644 --- a/extensions/agroal/pom.xml +++ b/extensions/agroal/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/agroal/runtime/pom.xml b/extensions/agroal/runtime/pom.xml index 5f0c8336e1a64..9f48ad064f9a5 100644 --- a/extensions/agroal/runtime/pom.xml +++ b/extensions/agroal/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AbstractDataSourceProducer.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AbstractDataSourceProducer.java index e2594deedd11e..296d8d815612a 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AbstractDataSourceProducer.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AbstractDataSourceProducer.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.agroal.runtime; import java.sql.Driver; @@ -123,6 +108,9 @@ public AgroalDataSource createDataSource(String dataSourceName, transactionSynchronizationRegistry); poolConfiguration.transactionIntegration(txIntegration); + // metrics + dataSourceConfiguration.metricsEnabled(dataSourceRuntimeConfig.enableMetrics); + // Authentication if (dataSourceRuntimeConfig.username.isPresent()) { agroalConnectionFactoryConfigurationSupplier diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AgroalTemplate.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AgroalTemplate.java index 3ad053f8402c6..614f9588c90fb 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AgroalTemplate.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/AgroalTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.agroal.runtime; import io.quarkus.arc.Arc; diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceBuildTimeConfig.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceBuildTimeConfig.java index 6554e178baf11..2207d0754c591 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceBuildTimeConfig.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceBuildTimeConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.agroal.runtime; import java.util.Optional; diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceRuntimeConfig.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceRuntimeConfig.java index 62d29140fa6c5..444abe8f1c327 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceRuntimeConfig.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSourceRuntimeConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.agroal.runtime; import java.time.Duration; @@ -91,4 +75,9 @@ public class DataSourceRuntimeConfig { @ConfigItem public Optional transactionIsolationLevel; + /** + * Enable datasource metrics collection. + */ + @ConfigItem + public boolean enableMetrics; } diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/TransactionIsolationLevel.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/TransactionIsolationLevel.java index b38ef55084e8c..d857d9279617a 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/TransactionIsolationLevel.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/TransactionIsolationLevel.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.agroal.runtime; import io.agroal.api.configuration.AgroalConnectionFactoryConfiguration.TransactionIsolation; diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/graal/AgroalDataSourceReplacement.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/graal/AgroalDataSourceReplacement.java index 5451877502b4f..e8f1f58303cb0 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/graal/AgroalDataSourceReplacement.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/graal/AgroalDataSourceReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.agroal.runtime.graal; import java.sql.SQLException; diff --git a/extensions/amazon-lambda-resteasy/deployment/pom.xml b/extensions/amazon-lambda-resteasy/deployment/pom.xml index fa48c28c0fc20..f30d360812f75 100644 --- a/extensions/amazon-lambda-resteasy/deployment/pom.xml +++ b/extensions/amazon-lambda-resteasy/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/amazon-lambda-resteasy/deployment/src/main/java/io/quarkus/amazon/lambda/resteasy/deployment/AmazonLambdaResteasyProcessor.java b/extensions/amazon-lambda-resteasy/deployment/src/main/java/io/quarkus/amazon/lambda/resteasy/deployment/AmazonLambdaResteasyProcessor.java index 36835bc363070..b75de024d4637 100755 --- a/extensions/amazon-lambda-resteasy/deployment/src/main/java/io/quarkus/amazon/lambda/resteasy/deployment/AmazonLambdaResteasyProcessor.java +++ b/extensions/amazon-lambda-resteasy/deployment/src/main/java/io/quarkus/amazon/lambda/resteasy/deployment/AmazonLambdaResteasyProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.amazon.lambda.resteasy.deployment; import java.util.Optional; diff --git a/extensions/amazon-lambda-resteasy/pom.xml b/extensions/amazon-lambda-resteasy/pom.xml index f64f04b3ae330..fd8f6b852bf31 100644 --- a/extensions/amazon-lambda-resteasy/pom.xml +++ b/extensions/amazon-lambda-resteasy/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/amazon-lambda-resteasy/runtime/pom.xml b/extensions/amazon-lambda-resteasy/runtime/pom.xml index e7cee59ed6735..e0e26f9316402 100644 --- a/extensions/amazon-lambda-resteasy/runtime/pom.xml +++ b/extensions/amazon-lambda-resteasy/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyConfig.java b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyConfig.java index b5c2eabd043ee..8d343f9bc9eb7 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyConfig.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyConfig.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.amazon.lambda.resteasy.runtime; import io.quarkus.runtime.annotations.ConfigItem; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyTemplate.java b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyTemplate.java index 173e2f40655f4..326543da54e6c 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyTemplate.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/AmazonLambdaResteasyTemplate.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.amazon.lambda.resteasy.runtime; import java.util.Map; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaContainerHandler.java b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaContainerHandler.java index ebe606761b71a..38dfe2b6afbf9 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaContainerHandler.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaContainerHandler.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.amazon.lambda.resteasy.runtime.container; import java.util.Collections; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaFilter.java b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaFilter.java index be207a74500a1..8af09c39b144d 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaFilter.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/ResteasyLambdaFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.amazon.lambda.resteasy.runtime.container; import java.io.IOException; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/StreamLambdaHandler.java b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/StreamLambdaHandler.java index 6aa948355d3c8..bd59c56e33497 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/StreamLambdaHandler.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/main/java/io/quarkus/amazon/lambda/resteasy/runtime/container/StreamLambdaHandler.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.amazon.lambda.resteasy.runtime.container; import java.io.IOException; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/EchoResteasyResource.java b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/EchoResteasyResource.java index 8d7ece0841024..01789fbe3f7f6 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/EchoResteasyResource.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/EchoResteasyResource.java @@ -1,15 +1,3 @@ -/* - * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance - * with the License. A copy of the License is located at - * - * http://aws.amazon.com/apache2.0/ - * - * or in the "license" file accompanying this file. This file 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 io.quarkus.amazon.lambda.resteasy.adapter.test; import java.io.IOException; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/ResteasyAwsProxyTest.java b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/ResteasyAwsProxyTest.java index 96fa7eeb937dd..55d2a25c740e7 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/ResteasyAwsProxyTest.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/ResteasyAwsProxyTest.java @@ -1,15 +1,3 @@ -/* - * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance - * with the License. A copy of the License is located at - * - * http://aws.amazon.com/apache2.0/ - * - * or in the "license" file accompanying this file. This file 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 io.quarkus.amazon.lambda.resteasy.adapter.test; import static org.junit.Assert.assertEquals; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/MapResponseModel.java b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/MapResponseModel.java index 2d2d019e6e802..ddaccc0bb7647 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/MapResponseModel.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/MapResponseModel.java @@ -1,15 +1,3 @@ -/* - * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance - * with the License. A copy of the License is located at - * - * http://aws.amazon.com/apache2.0/ - * - * or in the "license" file accompanying this file. This file 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 io.quarkus.amazon.lambda.resteasy.adapter.test.model; import java.util.HashMap; diff --git a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/SingleValueModel.java b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/SingleValueModel.java index e73bc77619c25..e5d282ad1df86 100644 --- a/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/SingleValueModel.java +++ b/extensions/amazon-lambda-resteasy/runtime/src/test/java/io/quarkus/amazon/lambda/resteasy/adapter/test/model/SingleValueModel.java @@ -1,15 +1,3 @@ -/* - * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance - * with the License. A copy of the License is located at - * - * http://aws.amazon.com/apache2.0/ - * - * or in the "license" file accompanying this file. This file 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 io.quarkus.amazon.lambda.resteasy.adapter.test.model; /** diff --git a/extensions/arc/deployment/pom.xml b/extensions/arc/deployment/pom.xml index b35647038922e..6f09f246065d3 100644 --- a/extensions/arc/deployment/pom.xml +++ b/extensions/arc/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalBeanBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalBeanBuildItem.java index 234ae8eecef2f..6766f2d6b5d24 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalBeanBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalBeanBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import java.util.ArrayList; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalStereotypeBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalStereotypeBuildItem.java index a399d2bf9e540..979825edea548 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalStereotypeBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AdditionalStereotypeBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import java.util.Collection; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcAnnotationProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcAnnotationProcessor.java index ab83b4db2147a..ca12b19deec64 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcAnnotationProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcAnnotationProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveIndexBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveIndexBuildItem.java index 2416117fe53f3..1f7cc46743b36 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveIndexBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveIndexBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import java.util.List; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java index dc5a587915fce..15206343f95f3 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchiveProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import java.util.ArrayList; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerBuildItem.java index 6472db47bfd29..ccdfe476bc33d 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import io.quarkus.arc.runtime.BeanContainer; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerListenerBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerListenerBuildItem.java index 8252f35b77183..36afcaeed9a87 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerListenerBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanContainerListenerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import io.quarkus.arc.runtime.BeanContainerListener; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanDefiningAnnotationBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanDefiningAnnotationBuildItem.java index 549af87f73dd7..dcbc12bad66cf 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanDefiningAnnotationBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanDefiningAnnotationBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import org.jboss.jandex.DotName; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanRegistrarBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanRegistrarBuildItem.java index 463ce4637aa54..d16ec5951b266 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanRegistrarBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanRegistrarBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import io.quarkus.arc.processor.BeanRegistrar; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ContextRegistrarBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ContextRegistrarBuildItem.java index 7cca6b6e2ea16..89edc8db78909 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ContextRegistrarBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ContextRegistrarBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import io.quarkus.arc.processor.ContextRegistrar; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/GeneratedBeanBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/GeneratedBeanBuildItem.java index 81dd7c09ddb92..388e46559e775 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/GeneratedBeanBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/GeneratedBeanBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ProxyUnwrapProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ProxyUnwrapProcessor.java index 24c7ce668f8cf..b0864cff5566e 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ProxyUnwrapProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ProxyUnwrapProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import io.quarkus.arc.runtime.ClientProxyUnwrapper; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ResourceAnnotationBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ResourceAnnotationBuildItem.java index 9c339d28c6e97..6d10e7b620fa3 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ResourceAnnotationBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ResourceAnnotationBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.deployment; import org.jboss.jandex.DotName; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java index 02815c1df1fe5..35c473f0c65bb 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test; import java.util.Optional; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java index 00dec102e0fac..e0ee25e2792d0 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java index 886be29e9f261..bc4db74e7eaa7 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.config; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java index d9ca212cae95e..ec32bc4961fcc 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.config; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java index 9d9418451b3ff..dd2ce609e9e6e 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.config; import javax.enterprise.context.ApplicationScoped; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java index 013e3af7471b0..4cb75368cc573 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptor; import javax.annotation.Priority; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java index b2b786e946d08..a6e933ed1c4e3 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.metadata; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java index b3312fa58c834..48547050f1b47 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotype; import static org.junit.jupiter.api.Assertions.fail; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java index 36c9e61015c69..3d3dde57e232c 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotype; import static org.junit.jupiter.api.Assertions.fail; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java index 95eef1fe169c1..cc96855f7f0fe 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotype; import static org.junit.jupiter.api.Assertions.fail; diff --git a/extensions/arc/pom.xml b/extensions/arc/pom.xml index df8b083093703..c4f0708fb8b7f 100644 --- a/extensions/arc/pom.xml +++ b/extensions/arc/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/arc/runtime/pom.xml b/extensions/arc/runtime/pom.xml index d5f012460f92f..ddaf16f354f07 100644 --- a/extensions/arc/runtime/pom.xml +++ b/extensions/arc/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcDeploymentTemplate.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcDeploymentTemplate.java index f912972a9b23a..0cd517adaf8b5 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcDeploymentTemplate.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcDeploymentTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; import java.lang.annotation.Annotation; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java index 5cc610997653d..7d9fb6bdf07ca 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; import java.lang.annotation.Annotation; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainerListener.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainerListener.java index 7ac3f697dc567..e6772fdcedd16 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainerListener.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainerListener.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; /** diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ClientProxyUnwrapper.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ClientProxyUnwrapper.java index 3597e3c935a1d..83adb8a67321e 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ClientProxyUnwrapper.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ClientProxyUnwrapper.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; import java.util.function.Function; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigDeploymentTemplate.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigDeploymentTemplate.java index 18a898136ef08..6dcdfbd7c2c62 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigDeploymentTemplate.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigDeploymentTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; import java.util.Map; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java index 6b5ed3b6666a5..56d1a76c3493c 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; import java.lang.annotation.Annotation; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LifecycleEventRunner.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LifecycleEventRunner.java index 8b10860c5b387..1708172ba4d4d 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LifecycleEventRunner.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LifecycleEventRunner.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.runtime; import javax.enterprise.context.Dependent; diff --git a/extensions/azure-functions-resteasy/deployment/pom.xml b/extensions/azure-functions-resteasy/deployment/pom.xml new file mode 100644 index 0000000000000..69eaca791a420 --- /dev/null +++ b/extensions/azure-functions-resteasy/deployment/pom.xml @@ -0,0 +1,81 @@ + + + + + + quarkus-azure-functions-resteasy-parent + io.quarkus + 999-SNAPSHOT + ../ + + 4.0.0 + + quarkus-azure-functions-resteasy-deployment + Quarkus - RESTEasy Azure Functions - Deployment + + + + io.quarkus + quarkus-core-deployment + + + io.quarkus + quarkus-resteasy-server-common-deployment + + + io.quarkus + quarkus-arc-deployment + + + io.quarkus + quarkus-azure-functions-resteasy + + + com.oracle.substratevm + svm + + + io.quarkus + quarkus-junit5-internal + test + + + io.rest-assured + rest-assured + test + + + + + + + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + ${project.version} + + + + + + + diff --git a/extensions/azure-functions-resteasy/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsResteasyProcessor.java b/extensions/azure-functions-resteasy/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsResteasyProcessor.java new file mode 100644 index 0000000000000..b59aeb24f258e --- /dev/null +++ b/extensions/azure-functions-resteasy/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsResteasyProcessor.java @@ -0,0 +1,25 @@ +package io.quarkus.azure.functions.resteasy.deployment; + +import org.jboss.logging.Logger; + +import io.quarkus.azure.functions.resteasy.runtime.AzureFunctionsResteasyTemplate; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.annotations.ExecutionTime; +import io.quarkus.deployment.annotations.Record; +import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.resteasy.server.common.deployment.ResteasyDeploymentBuildItem; + +public class AzureFunctionsResteasyProcessor { + private static final Logger log = Logger.getLogger(AzureFunctionsResteasyProcessor.class); + + @BuildStep + FeatureBuildItem featureBuildItem() { + return new FeatureBuildItem("azure-resteasy"); + } + + @BuildStep + @Record(ExecutionTime.RUNTIME_INIT) + public void build(ResteasyDeploymentBuildItem deployment, AzureFunctionsResteasyTemplate template) { + template.start(deployment.getRootPath(), deployment.getDeployment()); + } +} diff --git a/extensions/azure-functions-resteasy/maven-archetype/pom.xml b/extensions/azure-functions-resteasy/maven-archetype/pom.xml new file mode 100644 index 0000000000000..6d4fb6731574d --- /dev/null +++ b/extensions/azure-functions-resteasy/maven-archetype/pom.xml @@ -0,0 +1,41 @@ + + + + + quarkus-azure-functions-resteasy-parent + io.quarkus + 999-SNAPSHOT + ../ + + 4.0.0 + + quarkus-azure-functions-resteasy-archetype + maven-archetype + + Quarkus - Azure Functions RESTEasy Archetype + + + + + org.apache.maven.archetype + archetype-packaging + 3.0.1 + + + + diff --git a/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000000..b7b24a395909e --- /dev/null +++ b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + azure-config + + *.json + + + + diff --git a/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json new file mode 100644 index 0000000000000..86d9f31b56892 --- /dev/null +++ b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json @@ -0,0 +1,17 @@ +{ + "scriptFile" : "../${project.build.finalName}-runner.jar", + "entryPoint" : "io.quarkus.azure.functions.resteasy.runtime.Function.run", + "bindings" : [ { + "type" : "httpTrigger", + "direction" : "in", + "name" : "req", + "route" : "{*path}", + "methods" : [ "GET", "POST", "HEAD", "PUT", "OPTIONS", "DELETE" ], + "dataType" : "binary", + "authLevel" : "ANONYMOUS" + }, { + "type" : "http", + "direction" : "out", + "name" : "$return" + } ] +} \ No newline at end of file diff --git a/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json new file mode 100644 index 0000000000000..a8fe8c4c8e513 --- /dev/null +++ b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json @@ -0,0 +1,3 @@ +{ + "version": "2.0" +} diff --git a/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json new file mode 100644 index 0000000000000..8804ca029cf22 --- /dev/null +++ b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json @@ -0,0 +1,7 @@ +{ + "IsEncrypted": false, + "Values": { + "AzureWebJobsStorage": "", + "FUNCTIONS_WORKER_RUNTIME": "java" + } +} diff --git a/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/pom.xml b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000000..60346c8fe8412 --- /dev/null +++ b/extensions/azure-functions-resteasy/maven-archetype/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,212 @@ + + + 4.0.0 + ${groupId} + ${artifactId}-azure + ${version} + + 1.8 + 1.8 + 999-SNAPSHOT + 1.3.2 + ${azureFunctionAppName} + ${azureFunctionAppRegion} + ${azureFunctionResourceGroup} + ${azureFunction} + ${project.build.directory}/azure-functions/${functionAppName} + + + + + io.quarkus + quarkus-bom + ${quarkus.version} + pom + import + + + + + + + ${groupId} + ${artifactId} + ${version} + + + + io.quarkus + quarkus-resteasy + + + + + + io.quarkus + quarkus-azure-functions-resteasy + ${quarkus.version} + + + + + + + com.microsoft.azure + azure-functions-maven-plugin + ${azure.functions.maven.plugin.version} + + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.1 + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack + compile + + unpack + + + + + + ${groupId} + ${artifactId} + ${version} + jar + true + ${project.build.directory}/classes + + + + + + + + io.quarkus + quarkus-maven-plugin + ${quarkus.version} + + true + + + + + build + + + + + + + com.microsoft.azure + azure-functions-maven-plugin + + ${functionResourceGroup} + ${functionAppName} + ${functionAppRegion} + + + + WEBSITE_RUN_FROM_PACKAGE + 1 + + + FUNCTIONS_EXTENSION_VERSION + ~2 + + + FUNCTIONS_WORKER_RUNTIME + java + + + + + + org.apache.maven.plugins + maven-resources-plugin + + + + copy-base-azure-config + package + + copy-resources + + + true + ${stagingDirectory} + + + ${project.basedir}/azure-config + + host.json + local.settings.json + + + + + + + + copy-function-json + install + + copy-resources + + + true + ${stagingDirectory}/${function} + + + ${project.basedir}/azure-config + true + + function.json + + + + + + + + copy-uberjar + install + + copy-resources + + + true + ${stagingDirectory} + + + ${project.build.directory} + + ${project.artifactId}-${project.version}-runner.jar + + + + + + + + + + diff --git a/extensions/azure-functions-resteasy/pom.xml b/extensions/azure-functions-resteasy/pom.xml new file mode 100644 index 0000000000000..b45938af7cd46 --- /dev/null +++ b/extensions/azure-functions-resteasy/pom.xml @@ -0,0 +1,38 @@ + + + + + + quarkus-build-parent + io.quarkus + 999-SNAPSHOT + ../../build-parent/pom.xml + + 4.0.0 + + quarkus-azure-functions-resteasy-parent + Quarkus - RESTEasy Azure Functions + pom + + runtime + deployment + maven-archetype + + + diff --git a/extensions/azure-functions-resteasy/runtime/pom.xml b/extensions/azure-functions-resteasy/runtime/pom.xml new file mode 100644 index 0000000000000..7d9b01321d0e6 --- /dev/null +++ b/extensions/azure-functions-resteasy/runtime/pom.xml @@ -0,0 +1,84 @@ + + + + + + quarkus-azure-functions-resteasy-parent + io.quarkus + 999-SNAPSHOT + ../ + + 4.0.0 + + quarkus-azure-functions-resteasy + Quarkus - RESTEasy Azure Functions - Runtime + + + + + + + io.quarkus + quarkus-arc + + + io.quarkus + quarkus-core + + + io.quarkus + quarkus-resteasy-server-common + + + javax.enterprise + cdi-api + + + com.oracle.substratevm + svm + + + com.microsoft.azure.functions + azure-functions-java-library + provided + + + + + + + io.quarkus + quarkus-bootstrap-maven-plugin + + + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + ${project.version} + + + + + + + + diff --git a/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureFunctionsResteasyTemplate.java b/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureFunctionsResteasyTemplate.java new file mode 100644 index 0000000000000..be26ee84d7ad5 --- /dev/null +++ b/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureFunctionsResteasyTemplate.java @@ -0,0 +1,17 @@ +package io.quarkus.azure.functions.resteasy.runtime; + +import org.jboss.resteasy.spi.ResteasyDeployment; + +import io.quarkus.runtime.annotations.Template; + +@Template +public class AzureFunctionsResteasyTemplate { + public static ResteasyDeployment deployment; + public static String rootPath; + + public void start(String path, ResteasyDeployment dep) { + deployment = dep; + deployment.start(); + rootPath = path; + } +} diff --git a/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureHttpRequest.java b/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureHttpRequest.java new file mode 100644 index 0000000000000..1e8ebd22e8d31 --- /dev/null +++ b/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/AzureHttpRequest.java @@ -0,0 +1,136 @@ +package io.quarkus.azure.functions.resteasy.runtime; + +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Optional; + +import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.core.MultivaluedMap; + +import org.jboss.resteasy.core.SynchronousDispatcher; +import org.jboss.resteasy.core.SynchronousExecutionContext; +import org.jboss.resteasy.plugins.server.BaseHttpRequest; +import org.jboss.resteasy.specimpl.ResteasyHttpHeaders; +import org.jboss.resteasy.specimpl.ResteasyUriInfo; +import org.jboss.resteasy.spi.HttpResponse; +import org.jboss.resteasy.spi.NotImplementedYetException; +import org.jboss.resteasy.spi.ResteasyAsynchronousContext; +import org.jboss.resteasy.util.CaseInsensitiveMap; + +import com.microsoft.azure.functions.HttpRequestMessage; + +/** + * @author Bill Burke + * @version $Revision: 1 $ + */ +public class AzureHttpRequest extends BaseHttpRequest { + protected HttpRequestMessage> azureRequest; + protected SynchronousDispatcher dispatcher; + protected HttpResponse httpResponse; + protected ResteasyHttpHeaders httpHeaders; + protected Map attributes = new HashMap(); + protected String httpMethod; + protected InputStream inputStream; + + public AzureHttpRequest(final SynchronousDispatcher dispatcher, final HttpResponse httpResponse, + final HttpRequestMessage> azureRequest) { + this(new ResteasyUriInfo(azureRequest.getUri()), dispatcher, httpResponse, azureRequest); + } + + public AzureHttpRequest(final ResteasyUriInfo uriInfo, final SynchronousDispatcher dispatcher, + final HttpResponse httpResponse, final HttpRequestMessage> azureRequest) { + super(uriInfo); + this.dispatcher = dispatcher; + this.httpResponse = httpResponse; + this.azureRequest = azureRequest; + CaseInsensitiveMap h = new CaseInsensitiveMap<>(); + azureRequest.getHeaders().forEach((k, v) -> h.add(k, v)); + this.httpHeaders = new ResteasyHttpHeaders(h); + this.httpMethod = azureRequest.getHttpMethod().name().toUpperCase(); + } + + @Override + public MultivaluedMap getMutableHeaders() { + return httpHeaders.getMutableHeaders(); + } + + @Override + public HttpHeaders getHttpHeaders() { + return httpHeaders; + } + + @Override + public InputStream getInputStream() { + if (inputStream == null && azureRequest.getBody().isPresent()) { + this.inputStream = new ByteArrayInputStream(azureRequest.getBody().get()); + } + return inputStream; + } + + @Override + public void setInputStream(InputStream stream) { + this.inputStream = stream; + } + + @Override + public String getHttpMethod() { + return httpMethod; + } + + @Override + public void setHttpMethod(String method) { + this.httpMethod = method; + } + + @Override + public Object getAttribute(String attribute) { + return attributes.get(attribute); + } + + @Override + public void setAttribute(String name, Object value) { + attributes.put(name, value); + } + + @Override + public void removeAttribute(String name) { + attributes.remove(name); + } + + @Override + public Enumeration getAttributeNames() { + Enumeration en = new Enumeration() { + private Iterator it = attributes.keySet().iterator(); + + @Override + public boolean hasMoreElements() { + return it.hasNext(); + } + + @Override + public String nextElement() { + return it.next(); + } + }; + return en; + } + + @Override + public ResteasyAsynchronousContext getAsyncContext() { + return new SynchronousExecutionContext(dispatcher, this, httpResponse); + } + + @Override + public void forward(String path) { + throw new NotImplementedYetException(); + } + + @Override + public boolean wasForwarded() { + return false; + } +} diff --git a/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java b/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java new file mode 100644 index 0000000000000..aecd74d245dba --- /dev/null +++ b/extensions/azure-functions-resteasy/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java @@ -0,0 +1,76 @@ +package io.quarkus.azure.functions.resteasy.runtime; + +import java.util.Optional; + +import javax.ws.rs.ext.RuntimeDelegate; + +import org.jboss.resteasy.core.SynchronousDispatcher; +import org.jboss.resteasy.mock.MockHttpResponse; +import org.jboss.resteasy.specimpl.ResteasyUriInfo; + +import com.microsoft.azure.functions.ExecutionContext; +import com.microsoft.azure.functions.HttpRequestMessage; +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.annotation.HttpTrigger; + +import io.quarkus.runtime.Application; + +public class Function { + + public HttpResponseMessage run( + @HttpTrigger(name = "req") HttpRequestMessage> request, + final ExecutionContext context) { + if (request.getUri().getPath().endsWith("quarkus-status")) { + HttpResponseMessage.Builder responseBuilder = request + .createResponseBuilder(HttpStatus.valueOf(200)).body(deploymentStatus.getBytes()); + return responseBuilder.build(); + } + return resteasyDispatch(request); + } + + static String deploymentStatus = "ok"; + + static { + String[] args = {}; + try { + Class appClass = Class.forName("io.quarkus.runner.ApplicationImpl1"); + Application app = (Application) appClass.newInstance(); + app.start(args); + deploymentStatus = "STARTED"; + } catch (ClassNotFoundException e) { + deploymentStatus = "Quarkus Application class not found"; + } catch (Exception ex) { + deploymentStatus = "Unknown exception: " + ex.getMessage(); + } + } + + protected HttpResponseMessage resteasyDispatch(HttpRequestMessage> request) { + MockHttpResponse httpResponse = new MockHttpResponse(); + String contextPath = "/api"; + String rootPath = AzureFunctionsResteasyTemplate.rootPath; + if (rootPath != null && rootPath.length() > 0 && !"/".equals(rootPath)) { + contextPath = rootPath; + } + ResteasyUriInfo uriInfo = new ResteasyUriInfo(request.getUri().toString(), request.getUri().getRawQuery(), contextPath); + AzureHttpRequest httpRequest = new AzureHttpRequest(uriInfo, + (SynchronousDispatcher) AzureFunctionsResteasyTemplate.deployment.getDispatcher(), + httpResponse, request); + AzureFunctionsResteasyTemplate.deployment.getDispatcher().invoke(httpRequest, httpResponse); + HttpResponseMessage.Builder responseBuilder = request + .createResponseBuilder(HttpStatus.valueOf(httpResponse.getStatus())); + httpResponse.getOutputHeaders().forEach((name, values) -> { + values.forEach(o -> { + RuntimeDelegate.HeaderDelegate delegate = AzureFunctionsResteasyTemplate.deployment.getProviderFactory() + .getHeaderDelegate(o.getClass()); + if (delegate != null) { + responseBuilder.header(name, delegate.toString(o)); + } else { + responseBuilder.header(name, o.toString()); + } + }); + }); + responseBuilder.body(httpResponse.getOutput()); + return responseBuilder.build(); + } +} diff --git a/extensions/caffeine/deployment/pom.xml b/extensions/caffeine/deployment/pom.xml index d4c4f31e3a0b3..cc8dcc6e1ca5e 100644 --- a/extensions/caffeine/deployment/pom.xml +++ b/extensions/caffeine/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/caffeine/pom.xml b/extensions/caffeine/pom.xml index c9685ab6a302b..9c308239e0512 100644 --- a/extensions/caffeine/pom.xml +++ b/extensions/caffeine/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/caffeine/runtime/pom.xml b/extensions/caffeine/runtime/pom.xml index 32fd48fc93d6f..cfe6a913da52b 100644 --- a/extensions/caffeine/runtime/pom.xml +++ b/extensions/caffeine/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/camel/camel-jdbc/deployment/pom.xml b/extensions/camel/camel-jdbc/deployment/pom.xml index 2a0ef530a524b..ae5259548e557 100644 --- a/extensions/camel/camel-jdbc/deployment/pom.xml +++ b/extensions/camel/camel-jdbc/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/camel/camel-jdbc/runtime/pom.xml b/extensions/camel/camel-jdbc/runtime/pom.xml index f3a31c5cf8474..48358b43cbfae 100644 --- a/extensions/camel/camel-jdbc/runtime/pom.xml +++ b/extensions/camel/camel-jdbc/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/camel/camel-servlet/deployment/pom.xml b/extensions/camel/camel-servlet/deployment/pom.xml index 99c9def37fe34..bc932918ffc26 100644 --- a/extensions/camel/camel-servlet/deployment/pom.xml +++ b/extensions/camel/camel-servlet/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/camel/camel-servlet/runtime/pom.xml b/extensions/camel/camel-servlet/runtime/pom.xml index 218f9a910e591..c653fc8710bd7 100644 --- a/extensions/camel/camel-servlet/runtime/pom.xml +++ b/extensions/camel/camel-servlet/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/elasticsearch-rest-client/deployment/pom.xml b/extensions/elasticsearch-rest-client/deployment/pom.xml index 2b14e4ee87db3..85a3dd27bcb66 100644 --- a/extensions/elasticsearch-rest-client/deployment/pom.xml +++ b/extensions/elasticsearch-rest-client/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/elasticsearch-rest-client/deployment/src/main/java/io/quarkus/elasticsearch/restclient/deployment/ElasticsearchRestClientProcessor.java b/extensions/elasticsearch-rest-client/deployment/src/main/java/io/quarkus/elasticsearch/restclient/deployment/ElasticsearchRestClientProcessor.java index 98494572732fd..7b8c1fbcfc222 100644 --- a/extensions/elasticsearch-rest-client/deployment/src/main/java/io/quarkus/elasticsearch/restclient/deployment/ElasticsearchRestClientProcessor.java +++ b/extensions/elasticsearch-rest-client/deployment/src/main/java/io/quarkus/elasticsearch/restclient/deployment/ElasticsearchRestClientProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.elasticsearch.restclient.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/elasticsearch-rest-client/pom.xml b/extensions/elasticsearch-rest-client/pom.xml index e1c4ae28322a1..6fecd9de4e686 100644 --- a/extensions/elasticsearch-rest-client/pom.xml +++ b/extensions/elasticsearch-rest-client/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/elasticsearch-rest-client/runtime/pom.xml b/extensions/elasticsearch-rest-client/runtime/pom.xml index efd0c71e290d9..280f505567e3f 100644 --- a/extensions/elasticsearch-rest-client/runtime/pom.xml +++ b/extensions/elasticsearch-rest-client/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/runtime/graal/Substitute_RestClient.java b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/runtime/graal/Substitute_RestClient.java index 8873741efb56d..1d730e80f53e6 100644 --- a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/runtime/graal/Substitute_RestClient.java +++ b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/runtime/graal/Substitute_RestClient.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.elasticsearch.restclient.runtime.graal; import java.util.ArrayList; diff --git a/extensions/elytron-security/deployment/pom.xml b/extensions/elytron-security/deployment/pom.xml index 118b7143fc7f2..6ff24c2e96677 100644 --- a/extensions/elytron-security/deployment/pom.xml +++ b/extensions/elytron-security/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDeploymentProcessor.java b/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDeploymentProcessor.java index 53c710883bf93..9ac37cb770513 100644 --- a/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDeploymentProcessor.java +++ b/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDeploymentProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.elytron.security.deployment; import java.security.Provider; diff --git a/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDomainBuildItem.java b/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDomainBuildItem.java index 7ce753d0fa3c0..aabcd560a7315 100644 --- a/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDomainBuildItem.java +++ b/extensions/elytron-security/deployment/src/main/java/io/quarkus/elytron/security/deployment/SecurityDomainBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.elytron.security.deployment; import org.wildfly.security.auth.server.SecurityDomain; diff --git a/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java b/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java index 8606ece37dc1b..aa608206efdec 100644 --- a/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java +++ b/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2018 Red Hat, Inc, and individual contributors. - *

- * 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 io.quarkus.security.test; import javax.annotation.security.RolesAllowed; diff --git a/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java b/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java index b39b9851ee6b2..c589eb74e1788 100644 --- a/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java +++ b/extensions/elytron-security/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.security.test; import java.io.IOException; diff --git a/extensions/elytron-security/pom.xml b/extensions/elytron-security/pom.xml index e3a79ce11c189..91bd24f698a15 100644 --- a/extensions/elytron-security/pom.xml +++ b/extensions/elytron-security/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/elytron-security/runtime/pom.xml b/extensions/elytron-security/runtime/pom.xml index 13fbeff60b7da..74f89d2599844 100644 --- a/extensions/elytron-security/runtime/pom.xml +++ b/extensions/elytron-security/runtime/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronAccount.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronAccount.java index c861e6fbd9126..25be8924dbbcd 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronAccount.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronAccount.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.elytron.security.runtime; import java.security.Principal; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronIdentityManager.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronIdentityManager.java index 52c779c73038c..0fb4dece7b791 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronIdentityManager.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronIdentityManager.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.elytron.security.runtime; import org.jboss.logging.Logger; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/PropertiesRealmConfig.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/PropertiesRealmConfig.java index cca80b764658f..e836a064f9502 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/PropertiesRealmConfig.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/PropertiesRealmConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.elytron.security.runtime; import io.quarkus.runtime.annotations.ConfigGroup; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/SecurityTemplate.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/SecurityTemplate.java index b55b8ff95ca1a..53adc5b17b8c1 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/SecurityTemplate.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/SecurityTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.elytron.security.runtime; import java.net.URL; diff --git a/extensions/flyway/deployment/pom.xml b/extensions/flyway/deployment/pom.xml index 4d6958de46111..91cd181b47599 100644 --- a/extensions/flyway/deployment/pom.xml +++ b/extensions/flyway/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java b/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java index 1e508087bb000..60e00d6ae42e1 100644 --- a/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java +++ b/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFullConfigTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFullConfigTest.java index be69cbcc6a283..8b3c98754865c 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFullConfigTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFullConfigTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java index b5e4e4107e1f9..6c9a6014cc3b6 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayTestResources.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayTestResources.java index ea9d2f0dfa4f5..21512e52f6ffb 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayTestResources.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayTestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.test; import io.quarkus.test.common.QuarkusTestResource; diff --git a/extensions/flyway/deployment/src/test/resources/full-config.properties b/extensions/flyway/deployment/src/test/resources/full-config.properties index d9a1d4dfba3f9..3394d118aabb9 100644 --- a/extensions/flyway/deployment/src/test/resources/full-config.properties +++ b/extensions/flyway/deployment/src/test/resources/full-config.properties @@ -1,19 +1,3 @@ -# -# Copyright 2019 Red Hat, Inc. -# -# 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. -# -# Agroal config quarkus.datasource.url=jdbc:h2:tcp://localhost/mem:test_quarkus;DB_CLOSE_DELAY=-1 quarkus.datasource.driver=org.h2.Driver quarkus.datasource.username=sa diff --git a/extensions/flyway/deployment/src/test/resources/migrate-at-start-config.properties b/extensions/flyway/deployment/src/test/resources/migrate-at-start-config.properties index aadbcebe2cee8..a6690b9c0fd2d 100644 --- a/extensions/flyway/deployment/src/test/resources/migrate-at-start-config.properties +++ b/extensions/flyway/deployment/src/test/resources/migrate-at-start-config.properties @@ -1,19 +1,3 @@ -# -# Copyright 2019 Red Hat, Inc. -# -# 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. -# -# Agroal config quarkus.datasource.url=jdbc:h2:tcp://localhost/mem:test_quarkus;DB_CLOSE_DELAY=-1 quarkus.datasource.driver=org.h2.Driver quarkus.datasource.username=sa diff --git a/extensions/flyway/pom.xml b/extensions/flyway/pom.xml index aa278b51322f2..a17086ab33233 100644 --- a/extensions/flyway/pom.xml +++ b/extensions/flyway/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/flyway/runtime/pom.xml b/extensions/flyway/runtime/pom.xml index 51ce34f15a383..73c3d4b16cf6c 100644 --- a/extensions/flyway/runtime/pom.xml +++ b/extensions/flyway/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayBuildConfig.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayBuildConfig.java index b12af3b185212..8c2d21f0c05ec 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayBuildConfig.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayBuildConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime; import java.util.List; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayProducer.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayProducer.java index 5a1dc5a97be17..f408ce5e97dac 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayProducer.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime; import java.util.List; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRuntimeConfig.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRuntimeConfig.java index bbced29e8d1d6..be8401fc89b4f 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRuntimeConfig.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRuntimeConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime; import java.util.List; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayTemplate.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayTemplate.java index ee030c14a64a0..bd65b932d2ec1 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayTemplate.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime; import org.flywaydb.core.Flyway; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/CompositeMigrationResolverSubstitutions.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/CompositeMigrationResolverSubstitutions.java index e0f9f20c3ca04..ae1a108228bc2 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/CompositeMigrationResolverSubstitutions.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/CompositeMigrationResolverSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime.graal; import java.util.ArrayList; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/FeatureDetectorSubstitutions.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/FeatureDetectorSubstitutions.java index b41f1efaeedb9..b6b67c38fab8b 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/FeatureDetectorSubstitutions.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/FeatureDetectorSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime.graal; import com.oracle.svm.core.annotate.Substitute; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/PostgreSQLSqlStatementBuilderSubstitutions.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/PostgreSQLSqlStatementBuilderSubstitutions.java index f5a9434a3d193..289beb5b0c64c 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/PostgreSQLSqlStatementBuilderSubstitutions.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/PostgreSQLSqlStatementBuilderSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime.graal; import java.util.ArrayList; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/QuarkusPathLocationScanner.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/QuarkusPathLocationScanner.java index 2872d60364960..3e19ac296b414 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/QuarkusPathLocationScanner.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/QuarkusPathLocationScanner.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime.graal; import java.io.BufferedReader; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java index af34432a2597f..8e200950b7113 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.flyway.runtime.graal; import java.nio.charset.Charset; diff --git a/extensions/hibernate-orm/deployment/pom.xml b/extensions/hibernate-orm/deployment/pom.xml index 6c795ddbe7fad..f31c250d7a37e 100644 --- a/extensions/hibernate-orm/deployment/pom.xml +++ b/extensions/hibernate-orm/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/AdditionalJpaModelBuildItem.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/AdditionalJpaModelBuildItem.java index f666ab79cc009..f60667c39c171 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/AdditionalJpaModelBuildItem.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/AdditionalJpaModelBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateConfigUtil.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateConfigUtil.java index 9a4d612748870..01392e0f4789c 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateConfigUtil.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateConfigUtil.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import java.util.HashMap; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateEntityEnhancer.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateEntityEnhancer.java index b91a6768e3970..7a74069a4a3aa 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateEntityEnhancer.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateEntityEnhancer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import java.util.function.BiFunction; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateLogFilterBuildStep.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateLogFilterBuildStep.java index 62330b8a8f819..9a2e2db7f5f69 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateLogFilterBuildStep.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateLogFilterBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java index f23d70a393329..66a0435caaa5b 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.RUNTIME_INIT; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmReflections.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmReflections.java index 0c1e7ae669c71..c418deb4f41fd 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmReflections.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmReflections.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import org.hibernate.type.EnumType; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaEntitiesBuildItem.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaEntitiesBuildItem.java index b97b995a41a72..f40df3527fc38 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaEntitiesBuildItem.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaEntitiesBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import java.util.HashSet; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java index 7b60c068f36b9..b83df8d5ddbaa 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import java.io.IOException; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/NonJpaModelBuildItem.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/NonJpaModelBuildItem.java index d072a6366488b..c0cd617479402 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/NonJpaModelBuildItem.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/NonJpaModelBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/PersistenceUnitDescriptorBuildItem.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/PersistenceUnitDescriptorBuildItem.java index 39e73ec42acca..fdb6fa4939f32 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/PersistenceUnitDescriptorBuildItem.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/PersistenceUnitDescriptorBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.deployment; import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HqlNodeScannerTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HqlNodeScannerTestCase.java index 319db7d89cb29..76774804b3e46 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HqlNodeScannerTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HqlNodeScannerTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm; import java.io.FileInputStream; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoEntitiesTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoEntitiesTest.java index 25f01e2e5ca68..dc2a4327af8c4 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoEntitiesTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoEntitiesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java index d6c21594cd6af..f0fec7faf92eb 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm; import javax.inject.Inject; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/PersistenceAndQuarkusConfigTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/PersistenceAndQuarkusConfigTest.java index e328fd9bb5ecf..b76ea9e9b402f 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/PersistenceAndQuarkusConfigTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/PersistenceAndQuarkusConfigTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java index 17e4cff6ddd4f..d378a84c78179 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.enhancer; import javax.persistence.Entity; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerTest.java index f35df2daadabc..48b6d7f357683 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.enhancer; import java.io.IOException; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/DefaultSqlLoadScriptTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/DefaultSqlLoadScriptTestCase.java index 1136eaf229144..278f76579aa35 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/DefaultSqlLoadScriptTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/DefaultSqlLoadScriptTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.sql_load_script; import org.hamcrest.Matchers; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/ImportSqlLoadScriptTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/ImportSqlLoadScriptTestCase.java index 440ad1d774f7d..f2ef549f727f3 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/ImportSqlLoadScriptTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/ImportSqlLoadScriptTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.sql_load_script; import org.hamcrest.Matchers; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/MyEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/MyEntity.java index d7cd25a559dae..50735314b946e 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/MyEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/MyEntity.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.sql_load_script; import javax.persistence.Entity; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptFileAbsentTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptFileAbsentTestCase.java index a739e0fd3b623..cf22d733e2cff 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptFileAbsentTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptFileAbsentTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.sql_load_script; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptPresentTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptPresentTestCase.java index 662ce87ce0ea1..1860be625a077 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptPresentTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptPresentTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.sql_load_script; import org.hamcrest.Matchers; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java index 8a2b284dffc4a..7e2095759c49a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.sql_load_script; import javax.inject.Inject; diff --git a/extensions/hibernate-orm/deployment/src/test/resources/META-INF/some-persistence.xml b/extensions/hibernate-orm/deployment/src/test/resources/META-INF/some-persistence.xml index fd68110f59a85..312a2c1dcb840 100644 --- a/extensions/hibernate-orm/deployment/src/test/resources/META-INF/some-persistence.xml +++ b/extensions/hibernate-orm/deployment/src/test/resources/META-INF/some-persistence.xml @@ -1,19 +1,3 @@ - - - - diff --git a/extensions/hibernate-orm/runtime/pom.xml b/extensions/hibernate-orm/runtime/pom.xml index 3e87fffb58372..6ab782e25330c 100644 --- a/extensions/hibernate-orm/runtime/pom.xml +++ b/extensions/hibernate-orm/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerFactoryProducer.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerFactoryProducer.java index faa46e3a141a4..21c60b166e111 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerFactoryProducer.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerFactoryProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import javax.enterprise.inject.Produces; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerProducer.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerProducer.java index 9593d61a2055e..9a5f32b2a7010 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerProducer.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/DefaultEntityManagerProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import javax.enterprise.inject.Produces; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java index 5055e2ffa1e8d..96a7894a858cf 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.Collections; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProviderResolver.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProviderResolver.java index dd92daff9344c..73fccddda1f22 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProviderResolver.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProviderResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.Collections; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/Hibernate.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/Hibernate.java index d406d1afe69c0..99f6bee38e7bd 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/Hibernate.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/Hibernate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import org.hibernate.cfg.AvailableSettings; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmTemplate.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmTemplate.java index 01f27672e738d..b0a216a0c8d1e 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmTemplate.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.ArrayList; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java index 20f5bdcc19354..ddd17b6edbf8e 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAResourceReferenceProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAResourceReferenceProvider.java index eddf605932e0c..3d0a3142f3c0e 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAResourceReferenceProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAResourceReferenceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.lang.annotation.Annotation; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java index 038c5372daef0..0ad72b53c39ed 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; public final class PersistenceProviderSetup { diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitsHolder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitsHolder.java index fb12980bfab55..2e66db1db2a07 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitsHolder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitsHolder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.Collection; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedEntityManagerHolder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedEntityManagerHolder.java index 40026053b4df2..83bad4d47ab86 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedEntityManagerHolder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedEntityManagerHolder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.HashMap; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionEntityManagers.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionEntityManagers.java index 16ac884c0adf3..056d4c63a6a3a 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionEntityManagers.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionEntityManagers.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime; import java.util.HashMap; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java index 61c0a2b1eefbc..d79f5fea4eac9 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.boot; import java.io.Serializable; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java index d225697708134..a4b135b04f4b7 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.boot; import static org.hibernate.cfg.AvailableSettings.DRIVER; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/LightPersistenceXmlDescriptor.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/LightPersistenceXmlDescriptor.java index f6f27af3bf522..9893a01cd8ff3 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/LightPersistenceXmlDescriptor.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/LightPersistenceXmlDescriptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.boot; import java.net.URL; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/MirroringIntegratorService.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/MirroringIntegratorService.java index c51c54ee67054..f28bfe5316ff0 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/MirroringIntegratorService.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/MirroringIntegratorService.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.boot.registry; import java.util.Collection; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/PreconfiguredServiceRegistryBuilder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/PreconfiguredServiceRegistryBuilder.java index 03fd01b2f1d82..e588cec40e078 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/PreconfiguredServiceRegistryBuilder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/registry/PreconfiguredServiceRegistryBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.boot.registry; import static org.hibernate.internal.HEMLogging.messageLogger; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/scan/QuarkusScanner.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/scan/QuarkusScanner.java index 875ea9284a6dd..41c26590e4073 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/scan/QuarkusScanner.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/scan/QuarkusScanner.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.boot.scan; import java.util.Collections; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/ForwardingEntityManager.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/ForwardingEntityManager.java index f43c9b4c19cd0..426c6cad11ea6 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/ForwardingEntityManager.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/ForwardingEntityManager.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.entitymanager; import java.util.List; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/TransactionScopedEntityManager.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/TransactionScopedEntityManager.java index f08aeb84a9194..125845744a3cc 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/TransactionScopedEntityManager.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/entitymanager/TransactionScopedEntityManager.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.entitymanager; import java.util.List; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_ConfigXsdSupport.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_ConfigXsdSupport.java index c17eab8ebdf79..cf8be168fbc7a 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_ConfigXsdSupport.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_ConfigXsdSupport.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.graal; import com.oracle.svm.core.annotate.Delete; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_HibernatePersistenceProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_HibernatePersistenceProvider.java index c20781ec96a34..0cbba28eb8164 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_HibernatePersistenceProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Delete_HibernatePersistenceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.graal; import com.oracle.svm.core.annotate.Delete; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_JmxServiceImpl.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_JmxServiceImpl.java index 4333791d56059..3992829877d91 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_JmxServiceImpl.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_JmxServiceImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.graal; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordableBootstrap.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordableBootstrap.java index fe703f61accc6..f7eb4d2b107e7 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordableBootstrap.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordableBootstrap.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.recording; import java.io.File; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordedState.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordedState.java index 4e614f4963c13..fe020ebd31ad2 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordedState.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordedState.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.recording; import java.util.Collection; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordingDialectFactory.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordingDialectFactory.java index 8ae4571605011..76ce18c4a6302 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordingDialectFactory.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/recording/RecordingDialectFactory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.recording; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/CfgXmlAccessServiceInitiatorQuarkus.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/CfgXmlAccessServiceInitiatorQuarkus.java index 00685b9d5ab2a..302859fb79f57 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/CfgXmlAccessServiceInitiatorQuarkus.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/CfgXmlAccessServiceInitiatorQuarkus.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.service; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DialectFactoryInitiator.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DialectFactoryInitiator.java index 8365c26a679d5..d43ab7c658f21 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DialectFactoryInitiator.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DialectFactoryInitiator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.service; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DisabledJMXInitiator.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DisabledJMXInitiator.java index 1d86ac3c413dd..7e8e5b65831f7 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DisabledJMXInitiator.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/DisabledJMXInitiator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.service; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/FlatClassLoaderService.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/FlatClassLoaderService.java index ffd8139a82ccb..432c278f2fe8a 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/FlatClassLoaderService.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/FlatClassLoaderService.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.service; import java.io.IOException; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJdbcEnvironmentInitiator.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJdbcEnvironmentInitiator.java index 4fbaa5f80fc3b..b7f82a13716a9 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJdbcEnvironmentInitiator.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJdbcEnvironmentInitiator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.service; import java.util.Map; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJtaPlatformResolver.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJtaPlatformResolver.java index c427146dc6798..a8f950685fdac 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJtaPlatformResolver.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/service/QuarkusJtaPlatformResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.runtime.service; import java.util.Map; diff --git a/extensions/hibernate-search-elasticsearch/deployment/pom.xml b/extensions/hibernate-search-elasticsearch/deployment/pom.xml index 55242bc5a5ef5..e39d3d43c1164 100644 --- a/extensions/hibernate-search-elasticsearch/deployment/pom.xml +++ b/extensions/hibernate-search-elasticsearch/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchClasses.java b/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchClasses.java index 9cc067027c2a9..f562f2ecd480a 100644 --- a/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchClasses.java +++ b/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchClasses.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.search.elasticsearch; import java.util.Arrays; diff --git a/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchElasticsearchProcessor.java b/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchElasticsearchProcessor.java index e3d4c386ba1eb..387b1f8c5faa7 100644 --- a/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchElasticsearchProcessor.java +++ b/extensions/hibernate-search-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/elasticsearch/HibernateSearchElasticsearchProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.search.elasticsearch; import static io.quarkus.hibernate.search.elasticsearch.HibernateSearchClasses.FIELD_ANNOTATIONS; diff --git a/extensions/hibernate-search-elasticsearch/pom.xml b/extensions/hibernate-search-elasticsearch/pom.xml index bf96b70cb6ba6..f4a6c64ba845c 100644 --- a/extensions/hibernate-search-elasticsearch/pom.xml +++ b/extensions/hibernate-search-elasticsearch/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-search-elasticsearch/runtime/pom.xml b/extensions/hibernate-search-elasticsearch/runtime/pom.xml index 775cf0a6bfa71..20c6528cf4b04 100644 --- a/extensions/hibernate-search-elasticsearch/runtime/pom.xml +++ b/extensions/hibernate-search-elasticsearch/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchBuildTimeConfig.java b/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchBuildTimeConfig.java index 1738e4534f74e..1af7d8c667f17 100644 --- a/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchBuildTimeConfig.java +++ b/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchBuildTimeConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.search.elasticsearch.runtime; import java.util.Map; diff --git a/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchRuntimeConfig.java b/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchRuntimeConfig.java index c9910a72ce0f5..8bad6fb90b3a9 100644 --- a/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchRuntimeConfig.java +++ b/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchRuntimeConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.search.elasticsearch.runtime; import java.time.Duration; diff --git a/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchTemplate.java b/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchTemplate.java index 67fd42bd6ff69..dba71b8b997ea 100644 --- a/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchTemplate.java +++ b/extensions/hibernate-search-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/elasticsearch/runtime/HibernateSearchElasticsearchTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.search.elasticsearch.runtime; import static io.quarkus.hibernate.search.elasticsearch.runtime.HibernateSearchConfigUtil.addBackendConfig; diff --git a/extensions/hibernate-validator/deployment/pom.xml b/extensions/hibernate-validator/deployment/pom.xml index 6464f66c71644..3473504ac61f5 100644 --- a/extensions/hibernate-validator/deployment/pom.xml +++ b/extensions/hibernate-validator/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java b/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java index fdfc60d8d4031..d2fd8fef292c7 100644 --- a/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java +++ b/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.validator.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/hibernate-validator/pom.xml b/extensions/hibernate-validator/pom.xml index 1f6d139c52bf0..ac09fbf8bcd04 100644 --- a/extensions/hibernate-validator/pom.xml +++ b/extensions/hibernate-validator/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-validator/runtime/pom.xml b/extensions/hibernate-validator/runtime/pom.xml index dab961461db23..aac0b0e2fc3f5 100644 --- a/extensions/hibernate-validator/runtime/pom.xml +++ b/extensions/hibernate-validator/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorTemplate.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorTemplate.java index fe83e76f77172..8140a7560ee69 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorTemplate.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.validator.runtime; import java.lang.reflect.Method; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java index bdedb24dfec42..5b4d3bb95cfc0 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.validator.runtime; import javax.validation.Validator; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java index 62836537d1e64..db7cae36e3f43 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.validator.runtime; import javax.enterprise.context.ApplicationScoped; diff --git a/extensions/infinispan-client/deployment/pom.xml b/extensions/infinispan-client/deployment/pom.xml index 5aa5dad05b820..40c9a1d095e9d 100644 --- a/extensions/infinispan-client/deployment/pom.xml +++ b/extensions/infinispan-client/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanClientProcessor.java b/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanClientProcessor.java index 2d3381deac3eb..b8455d2438c16 100644 --- a/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanClientProcessor.java +++ b/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanClientProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.infinispan.client.deployment; import java.io.File; diff --git a/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanPropertiesBuildItem.java b/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanPropertiesBuildItem.java index 9a224fbfd156d..f275389a28d8c 100644 --- a/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanPropertiesBuildItem.java +++ b/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanPropertiesBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.infinispan.client.deployment; import java.util.Properties; diff --git a/extensions/infinispan-client/pom.xml b/extensions/infinispan-client/pom.xml index ee739bc5b94e1..d71ee32a176df 100644 --- a/extensions/infinispan-client/pom.xml +++ b/extensions/infinispan-client/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/infinispan-client/runtime/pom.xml b/extensions/infinispan-client/runtime/pom.xml index 7143ef26fbbe7..129fae7cf0955 100644 --- a/extensions/infinispan-client/runtime/pom.xml +++ b/extensions/infinispan-client/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jaeger/deployment/pom.xml b/extensions/jaeger/deployment/pom.xml index 93911fabeb4fa..567be331f3d2a 100644 --- a/extensions/jaeger/deployment/pom.xml +++ b/extensions/jaeger/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java index 313c628db7897..42aa99b5941cd 100644 --- a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java +++ b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.deployment; import javax.inject.Inject; diff --git a/extensions/jaeger/pom.xml b/extensions/jaeger/pom.xml index 12f9ab1b939f5..5a380a4eb89a1 100644 --- a/extensions/jaeger/pom.xml +++ b/extensions/jaeger/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jaeger/runtime/pom.xml b/extensions/jaeger/runtime/pom.xml index 3d77f3d00c555..9396ff35242b6 100644 --- a/extensions/jaeger/runtime/pom.xml +++ b/extensions/jaeger/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/JaegerDeploymentTemplate.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/JaegerDeploymentTemplate.java index 7e129c6f2951b..3c0e2ad5cb754 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/JaegerDeploymentTemplate.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/JaegerDeploymentTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime; import static io.jaegertracing.Configuration.JAEGER_SERVICE_NAME; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerMetricsFactory.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerMetricsFactory.java index 22db6b8d13a2b..a913756eb32e5 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerMetricsFactory.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerMetricsFactory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime; import java.util.HashMap; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java index a4842a554a53f..dc5938ef173b9 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime; import io.jaegertracing.Configuration; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_JaegerTracer.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_JaegerTracer.java index 6e202738b93df..02eaea77b090b 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_JaegerTracer.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_JaegerTracer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime.graal; import com.oracle.svm.core.annotate.Substitute; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_LoggingReporter.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_LoggingReporter.java index 73093d9c89acf..32941c71b3e23 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_LoggingReporter.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_LoggingReporter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime.graal; import com.oracle.svm.core.annotate.Substitute; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_Metrics.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_Metrics.java index 1ca5933bf7750..aca42cdda2ead 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_Metrics.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_Metrics.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime.graal; import java.util.Collections; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_SenderResolver.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_SenderResolver.java index dc9bdc8973bc2..0c71ec82a5071 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_SenderResolver.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/graal/Target_SenderResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jaeger.runtime.graal; import com.oracle.svm.core.annotate.Substitute; diff --git a/extensions/jaxb/deployment/pom.xml b/extensions/jaxb/deployment/pom.xml index 0303c90b5f605..edc16f42d3eff 100644 --- a/extensions/jaxb/deployment/pom.xml +++ b/extensions/jaxb/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jaxb/pom.xml b/extensions/jaxb/pom.xml index 2cf38641947f7..12968c9dc2735 100644 --- a/extensions/jaxb/pom.xml +++ b/extensions/jaxb/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jaxb/runtime/pom.xml b/extensions/jaxb/runtime/pom.xml index a83a38ec83062..74b9df80c6a04 100644 --- a/extensions/jaxb/runtime/pom.xml +++ b/extensions/jaxb/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/pom.xml b/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/pom.xml index 742a7c2187da2..a1c6e5e37df31 100644 --- a/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/pom.xml +++ b/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/src/main/java/io/quarkus/jdbc/h2/deployment/H2JDBCReflections.java b/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/src/main/java/io/quarkus/jdbc/h2/deployment/H2JDBCReflections.java index 3ee4b625bc883..06e42b47b3f6d 100644 --- a/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/src/main/java/io/quarkus/jdbc/h2/deployment/H2JDBCReflections.java +++ b/extensions/jdbc/jdbc-h2/jdbc-h2-deployment/src/main/java/io/quarkus/jdbc/h2/deployment/H2JDBCReflections.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.jdbc.h2.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/jdbc/jdbc-h2/jdbc-h2-runtime/pom.xml b/extensions/jdbc/jdbc-h2/jdbc-h2-runtime/pom.xml index e7ed03e96aa35..0a822713c2154 100644 --- a/extensions/jdbc/jdbc-h2/jdbc-h2-runtime/pom.xml +++ b/extensions/jdbc/jdbc-h2/jdbc-h2-runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-h2/pom.xml b/extensions/jdbc/jdbc-h2/pom.xml index 875c90d2d3fe0..ee1be6a242e56 100644 --- a/extensions/jdbc/jdbc-h2/pom.xml +++ b/extensions/jdbc/jdbc-h2/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/pom.xml b/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/pom.xml index b25445cefc7d8..15078f6ccca40 100644 --- a/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/pom.xml +++ b/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/src/main/java/io/quarkus/jdbc/mariadb/deployment/MariaDBJDBCReflections.java b/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/src/main/java/io/quarkus/jdbc/mariadb/deployment/MariaDBJDBCReflections.java index 66c0a5d283bd7..d766cdd9efbc1 100644 --- a/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/src/main/java/io/quarkus/jdbc/mariadb/deployment/MariaDBJDBCReflections.java +++ b/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-deployment/src/main/java/io/quarkus/jdbc/mariadb/deployment/MariaDBJDBCReflections.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.jdbc.mariadb.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-runtime/pom.xml b/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-runtime/pom.xml index 051cafc034b6f..cd3dabd4f1585 100644 --- a/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-runtime/pom.xml +++ b/extensions/jdbc/jdbc-mariadb/jdbc-mariadb-runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-mariadb/pom.xml b/extensions/jdbc/jdbc-mariadb/pom.xml index 8c1887e5796ca..14584563af13b 100644 --- a/extensions/jdbc/jdbc-mariadb/pom.xml +++ b/extensions/jdbc/jdbc-mariadb/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-mssql/jdbc-mssql-deployment/pom.xml b/extensions/jdbc/jdbc-mssql/jdbc-mssql-deployment/pom.xml index c84c192771fbb..1a41e6803c7d8 100644 --- a/extensions/jdbc/jdbc-mssql/jdbc-mssql-deployment/pom.xml +++ b/extensions/jdbc/jdbc-mssql/jdbc-mssql-deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-mssql/jdbc-mssql-runtime/pom.xml b/extensions/jdbc/jdbc-mssql/jdbc-mssql-runtime/pom.xml index 1fb98a07b28f6..ed3101e322dc9 100644 --- a/extensions/jdbc/jdbc-mssql/jdbc-mssql-runtime/pom.xml +++ b/extensions/jdbc/jdbc-mssql/jdbc-mssql-runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-mssql/pom.xml b/extensions/jdbc/jdbc-mssql/pom.xml index 78fae64ee767e..f1e19874a8710 100644 --- a/extensions/jdbc/jdbc-mssql/pom.xml +++ b/extensions/jdbc/jdbc-mssql/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/pom.xml b/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/pom.xml index 0843dc177f45b..dc5d288c6382a 100644 --- a/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/pom.xml +++ b/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/src/main/java/io/quarkus/jdbc/postgresql/deployment/PostgreSQLJDBCReflections.java b/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/src/main/java/io/quarkus/jdbc/postgresql/deployment/PostgreSQLJDBCReflections.java index d193b7a53c983..c0ea12a9c946b 100644 --- a/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/src/main/java/io/quarkus/jdbc/postgresql/deployment/PostgreSQLJDBCReflections.java +++ b/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-deployment/src/main/java/io/quarkus/jdbc/postgresql/deployment/PostgreSQLJDBCReflections.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.jdbc.postgresql.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-runtime/pom.xml b/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-runtime/pom.xml index 8041a68e0f3ef..efc313331b5a8 100644 --- a/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-runtime/pom.xml +++ b/extensions/jdbc/jdbc-postgresql/jdbc-postgresql-runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/jdbc-postgresql/pom.xml b/extensions/jdbc/jdbc-postgresql/pom.xml index 4e1ad97042707..ac20e0522bde7 100644 --- a/extensions/jdbc/jdbc-postgresql/pom.xml +++ b/extensions/jdbc/jdbc-postgresql/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jdbc/pom.xml b/extensions/jdbc/pom.xml index cffb88b94352d..eae3c292a25e8 100644 --- a/extensions/jdbc/pom.xml +++ b/extensions/jdbc/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java b/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java index bf4de246cf24d..acae5b24d369a 100755 --- a/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java +++ b/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jsonb.deployment; import java.util.function.Predicate; diff --git a/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java b/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java index da431d29319c1..dedb13bb6e90d 100755 --- a/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java +++ b/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.jsonp.deployment; import org.glassfish.json.JsonProviderImpl; diff --git a/extensions/kafka-streams/deployment/pom.xml b/extensions/kafka-streams/deployment/pom.xml index e13d762d978eb..e08efd7e85cd5 100644 --- a/extensions/kafka-streams/deployment/pom.xml +++ b/extensions/kafka-streams/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java b/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java index 0bde6d29b1630..e374d49c104cd 100644 --- a/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java +++ b/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.kafka.streams.deployment; import java.io.IOException; diff --git a/extensions/kafka-streams/pom.xml b/extensions/kafka-streams/pom.xml index cb6bbfa5ab669..5231530da6bfa 100644 --- a/extensions/kafka-streams/pom.xml +++ b/extensions/kafka-streams/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/kafka-streams/runtime/pom.xml b/extensions/kafka-streams/runtime/pom.xml index 5a576783aec98..bbaf79594de41 100644 --- a/extensions/kafka-streams/runtime/pom.xml +++ b/extensions/kafka-streams/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsTemplate.java b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsTemplate.java index 06332490cb4f4..1a67459186c68 100644 --- a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsTemplate.java +++ b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsTemplate.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.kafka.streams.runtime; import org.rocksdb.RocksDB; diff --git a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/graal/KafkaStreamsSubstitutions.java b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/graal/KafkaStreamsSubstitutions.java index 007357b8f6cab..9f911fe28cee9 100644 --- a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/graal/KafkaStreamsSubstitutions.java +++ b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/graal/KafkaStreamsSubstitutions.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.kafka.streams.runtime.graal; import com.oracle.svm.core.annotate.Alias; diff --git a/extensions/keycloak/deployment/pom.xml b/extensions/keycloak/deployment/pom.xml index d3c3b6ec09499..331273d4374c9 100644 --- a/extensions/keycloak/deployment/pom.xml +++ b/extensions/keycloak/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakAdapterProcessor.java b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakAdapterProcessor.java index aa4701572efa7..038546677ecca 100644 --- a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakAdapterProcessor.java +++ b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakAdapterProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import java.util.HashMap; diff --git a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakConfig.java b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakConfig.java index 33cbecb30dbca..920ff4cdec221 100644 --- a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakConfig.java +++ b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakConfig.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import java.util.List; diff --git a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakDeploymentProcessor.java b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakDeploymentProcessor.java index 051c4009d56f3..3d930be686770 100644 --- a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakDeploymentProcessor.java +++ b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakDeploymentProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; diff --git a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakReflectionProcessor.java b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakReflectionProcessor.java index fa37e2e2a8d53..0bf7a6fa28302 100644 --- a/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakReflectionProcessor.java +++ b/extensions/keycloak/deployment/src/main/java/io/quarkus/keycloak/KeycloakReflectionProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import org.apache.commons.logging.impl.Jdk14Logger; diff --git a/extensions/keycloak/pom.xml b/extensions/keycloak/pom.xml index bb2e30e49d452..cd4685d3c9185 100644 --- a/extensions/keycloak/pom.xml +++ b/extensions/keycloak/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/keycloak/runtime/pom.xml b/extensions/keycloak/runtime/pom.xml index 5be9e7c5ccb8f..f4488e2c948ab 100644 --- a/extensions/keycloak/runtime/pom.xml +++ b/extensions/keycloak/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakSecurityContextProducer.java b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakSecurityContextProducer.java index a2ae6f200af2c..0c432866d9b9c 100644 --- a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakSecurityContextProducer.java +++ b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakSecurityContextProducer.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import javax.enterprise.context.RequestScoped; diff --git a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakTemplate.java b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakTemplate.java index b10557ef85a12..1ef82e25f4f4a 100644 --- a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakTemplate.java +++ b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/KeycloakTemplate.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import java.io.InputStream; diff --git a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusDeploymentContext.java b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusDeploymentContext.java index 82f8a4414bb1d..939d1d8981ac1 100644 --- a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusDeploymentContext.java +++ b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusDeploymentContext.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import org.keycloak.adapters.AdapterDeploymentContext; diff --git a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusKeycloakConfigResolver.java b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusKeycloakConfigResolver.java index 5ab8b953507e9..764efd0adab6e 100644 --- a/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusKeycloakConfigResolver.java +++ b/extensions/keycloak/runtime/src/main/java/io/quarkus/keycloak/QuarkusKeycloakConfigResolver.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.keycloak; import javax.enterprise.inject.Instance; diff --git a/extensions/kotlin/deployment/pom.xml b/extensions/kotlin/deployment/pom.xml index 5a1dfd7829802..70655802f7ff9 100644 --- a/extensions/kotlin/deployment/pom.xml +++ b/extensions/kotlin/deployment/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/kotlin/pom.xml b/extensions/kotlin/pom.xml index cda5e842467e4..f7dd4f53d308a 100644 --- a/extensions/kotlin/pom.xml +++ b/extensions/kotlin/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/kubernetes/deployment/pom.xml b/extensions/kubernetes/deployment/pom.xml index b52a51cc43a34..77c5ca15b7817 100644 --- a/extensions/kubernetes/deployment/pom.xml +++ b/extensions/kubernetes/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/kubernetes/pom.xml b/extensions/kubernetes/pom.xml index cd2c12ff48f98..e81d6c685bc42 100644 --- a/extensions/kubernetes/pom.xml +++ b/extensions/kubernetes/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/mailer/deployment/pom.xml b/extensions/mailer/deployment/pom.xml index 29c4b17b07c4d..7daa35a985d40 100644 --- a/extensions/mailer/deployment/pom.xml +++ b/extensions/mailer/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerBuildItem.java b/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerBuildItem.java index 4a0073a4fa106..f97942522a20b 100644 --- a/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerBuildItem.java +++ b/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.mailer.deployment; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerProcessor.java b/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerProcessor.java index 4d0bda721a313..dd81e701edf86 100644 --- a/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerProcessor.java +++ b/extensions/mailer/deployment/src/main/java/io/quarkus/mailer/deployment/MailerProcessor.java @@ -25,7 +25,7 @@ AdditionalBeanBuildItem registerClients() { @BuildStep AdditionalBeanBuildItem registerMailers() { return AdditionalBeanBuildItem.builder() - .addBeanClasses(ReactiveMailerImpl.class, BlockingMailerImpl.class) + .addBeanClasses(ReactiveMailerImpl.class, BlockingMailerImpl.class, MockMailboxImpl.class) .build(); } @@ -53,7 +53,7 @@ MailerBuildItem build(BuildProducer feature, MailConfigTemplat RuntimeValue client = template.configureTheClient(vertx.getVertx(), beanContainer.getValue(), config, launchMode.getLaunchMode(), shutdown); - template.configureTheMailer(beanContainer.getValue(), config); + template.configureTheMailer(beanContainer.getValue(), config, launchMode.getLaunchMode()); return new MailerBuildItem(client); } diff --git a/extensions/mailer/pom.xml b/extensions/mailer/pom.xml index def85b4e00669..de5b3ac479566 100644 --- a/extensions/mailer/pom.xml +++ b/extensions/mailer/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/mailer/runtime/pom.xml b/extensions/mailer/runtime/pom.xml index 518582db5b580..b1dd0283a1cd9 100644 --- a/extensions/mailer/runtime/pom.xml +++ b/extensions/mailer/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MockMailbox.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MockMailbox.java new file mode 100644 index 0000000000000..c2efdc6aaa83b --- /dev/null +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MockMailbox.java @@ -0,0 +1,29 @@ +package io.quarkus.mailer; + +import java.util.List; + +/** + * Mock mail collector, will be populated if mocking emails. + */ +public interface MockMailbox { + + /** + * Returns a list of mails sent to the given address, whether it was via To, Cc or Bcc. + * + * @param address the email address we want to retrieve mail from + * @return a list of messages sent to the given address, possibly empty. + */ + List getMessagesSentTo(String address); + + /** + * Removes every sent message. + */ + void clear(); + + /** + * Gets the total number of messages sent. This counts every message sent to every recipient. + * + * @return the total number of messages sent. + */ + int getTotalMessagesSent(); +} diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfig.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfig.java index d94b408d84feb..8e4746ba5e7d5 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfig.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfig.java @@ -21,10 +21,10 @@ public class MailConfig { * Enables the mock mode, not sending emails. * The content of the emails is printed on the console. *

- * Disabled by default. + * Disabled by default on PROD, enabled by default on DEV and TEST modes. */ @ConfigItem - public boolean mock; + public Optional mock; /** * Configures the default bounce email address. diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfigTemplate.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfigTemplate.java index 6388608a750fa..f9116b7e17016 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfigTemplate.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MailConfigTemplate.java @@ -29,10 +29,13 @@ public RuntimeValue configureTheClient(RuntimeValue vertx, Be return new RuntimeValue<>(client); } - public RuntimeValue configureTheMailer(BeanContainer container, MailConfig config) { + public RuntimeValue configureTheMailer(BeanContainer container, MailConfig config, + LaunchMode launchMode) { ReactiveMailerImpl mailer = container.instance(ReactiveMailerImpl.class); - mailer.configure(config.from, config.bounceAddress, config.mock); + + // mock defaults to true on DEV and TEST + mailer.configure(config.from, config.bounceAddress, config.mock.orElse(launchMode.isDevOrTest())); return new RuntimeValue<>(mailer); } diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MockMailboxImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MockMailboxImpl.java new file mode 100644 index 0000000000000..c55bc71f30ff9 --- /dev/null +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/MockMailboxImpl.java @@ -0,0 +1,68 @@ +package io.quarkus.mailer.impl; + +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionStage; + +import javax.enterprise.context.ApplicationScoped; + +import io.quarkus.mailer.Mail; +import io.quarkus.mailer.MockMailbox; + +/** + * Mock mailbox bean, will be populated if mocking emails. + */ +@ApplicationScoped +public class MockMailboxImpl implements MockMailbox { + + private Map> sentMessages = new HashMap<>(); + private int sentMessagesCount; + + CompletionStage send(Mail email) { + if (email.getTo() != null) { + for (String to : email.getTo()) { + send(email, to); + } + } + if (email.getCc() != null) { + for (String to : email.getCc()) { + send(email, to); + } + } + if (email.getBcc() != null) { + for (String to : email.getBcc()) { + send(email, to); + } + } + return CompletableFuture.completedFuture(null); + } + + private void send(Mail sentMail, String to) { + List mails = sentMessages.get(to); + if (mails == null) { + mails = new LinkedList<>(); + sentMessages.put(to, mails); + } + sentMessagesCount++; + mails.add(sentMail); + } + + @Override + public List getMessagesSentTo(String address) { + return sentMessages.get(address); + } + + @Override + public void clear() { + sentMessagesCount = 0; + sentMessages.clear(); + } + + @Override + public int getTotalMessagesSent() { + return sentMessagesCount; + } +} diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/ReactiveMailerImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/ReactiveMailerImpl.java index ccabd1880c552..dec13548b9867 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/ReactiveMailerImpl.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/impl/ReactiveMailerImpl.java @@ -42,6 +42,9 @@ public class ReactiveMailerImpl implements ReactiveMailer { @Inject Vertx vertx; + @Inject + MockMailboxImpl mockMailbox; + /** * Default from value. */ @@ -65,16 +68,16 @@ public CompletionStage send(Mail... mails) { return allOf( stream(mails) - .map(mail -> toMailMessage(mail).thenCompose(this::send)) + .map(mail -> toMailMessage(mail).thenCompose(mailMessage -> send(mail, mailMessage))) .collect(Collectors.toList())); } - private CompletionStage send(MailMessage message) { + private CompletionStage send(Mail mail, MailMessage message) { if (mock) { - LOGGER.info("Sending email {} from {} to {}, body is: \n{}", + LOGGER.info("Sending email {} from {} to {}, text body: \n{}\nhtml body: \n{}", message.getSubject(), message.getFrom(), message.getTo(), - message.getHtml() == null ? message.getText() : message.getHtml()); - return CompletableFuture.completedFuture(null); + message.getText(), message.getHtml()); + return mockMailbox.send(mail); } else { return client.sendMail(message) .thenAccept(x -> { diff --git a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/impl/MockMailerImplTest.java b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/impl/MockMailerImplTest.java new file mode 100644 index 0000000000000..673915a5492e2 --- /dev/null +++ b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/impl/MockMailerImplTest.java @@ -0,0 +1,67 @@ +package io.quarkus.mailer.impl; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.UUID; + +import javax.mail.MessagingException; + +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import io.quarkus.mailer.Mail; +import io.vertx.axle.core.Vertx; + +class MockMailerImplTest { + + private static final String FROM = "test@test.org"; + private static final String TO = "foo@quarkus.io"; + + private static Vertx vertx; + private ReactiveMailerImpl mailer; + + @BeforeAll + static void start() { + vertx = Vertx.vertx(); + } + + @AfterAll + static void stop() { + vertx.close(); + } + + @BeforeEach + void init() { + mailer = new ReactiveMailerImpl(); + mailer.configure(Optional.of(FROM), Optional.empty(), true); + mailer.vertx = vertx; + mailer.mockMailbox = new MockMailboxImpl(); + + mailer.mockMailbox.clear(); + } + + @Test + void testTextMail() throws MessagingException, IOException { + String content = UUID.randomUUID().toString(); + mailer.send(Mail.withText(TO, "Test", content)).toCompletableFuture().join(); + + List sent = mailer.mockMailbox.getMessagesSentTo(TO); + assertThat(sent).hasSize(1); + Mail actual = sent.get(0); + assertThat(actual.getText()).contains(content); + assertThat(actual.getSubject()).isEqualTo("Test"); + } + + @Test + void testWithSeveralMails() { + Mail mail1 = Mail.withText(TO, "Mail 1", "Mail 1").addCc("cc@quarkus.io").addBcc("bcc@quarkus.io"); + Mail mail2 = Mail.withHtml(TO, "Mail 2", "Mail 2").addCc("cc2@quarkus.io").addBcc("bcc2@quarkus.io"); + mailer.send(mail1, mail2).toCompletableFuture().join(); + assertThat(mailer.mockMailbox.getTotalMessagesSent()).isEqualTo(6); + } +} diff --git a/extensions/narayana-jta/deployment/pom.xml b/extensions/narayana-jta/deployment/pom.xml index c1c64f7572e9d..1346085f34917 100644 --- a/extensions/narayana-jta/deployment/pom.xml +++ b/extensions/narayana-jta/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaLogFilterBuildStep.java b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaLogFilterBuildStep.java index 998e756462e93..edcd8fac71979 100644 --- a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaLogFilterBuildStep.java +++ b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaLogFilterBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java index 2296aa14d9284..292f1f65b52e4 100644 --- a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java +++ b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.RUNTIME_INIT; diff --git a/extensions/narayana-jta/pom.xml b/extensions/narayana-jta/pom.xml index 82a140e3a260c..542cec5b810d7 100644 --- a/extensions/narayana-jta/pom.xml +++ b/extensions/narayana-jta/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/narayana-jta/runtime/pom.xml b/extensions/narayana-jta/runtime/pom.xml index 65d13ac87ff1b..898cd17c5b6c5 100644 --- a/extensions/narayana-jta/runtime/pom.xml +++ b/extensions/narayana-jta/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java index 11e15e9f5fb14..2f0b8ee5cdaa6 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime; import javax.enterprise.context.ApplicationScoped; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaTemplate.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaTemplate.java index 8c9d2913edf15..d9850fb6e1af7 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaTemplate.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime; import java.lang.reflect.Field; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/QuarkusPropertiesFactory.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/QuarkusPropertiesFactory.java index 22adcd9a82054..0928c9e093a97 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/QuarkusPropertiesFactory.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/QuarkusPropertiesFactory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime; import java.io.IOException; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/ConfigurationInfoSubstitution.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/ConfigurationInfoSubstitution.java index a05115a1fcf63..ea8cef0fdc7eb 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/ConfigurationInfoSubstitution.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/ConfigurationInfoSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.graal; import com.arjuna.common.util.ConfigurationInfo; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/PropertiesFactorySubstitution.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/PropertiesFactorySubstitution.java index 43a2ec73f41f8..0907b236dfe72 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/PropertiesFactorySubstitution.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/graal/PropertiesFactorySubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.graal; import java.util.Properties; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java index a1a6a4b946f6c..218f38c288be3 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import java.io.Serializable; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java index 67e04c5bc3968..59a1be7d77619 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import javax.annotation.Priority; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java index 33b4a854d2c28..4d98d450f274b 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import javax.annotation.Priority; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java index 44eefb036525e..83da6f1158f52 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import javax.annotation.Priority; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java index 0ef3d1d85d42c..3a513855af950 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import javax.annotation.Priority; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java index 8785149ab6a45..7295b9f31fac9 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import javax.annotation.Priority; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java index d55492da52802..da4686c579cff 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.narayana.jta.runtime.interceptor; import javax.annotation.Priority; diff --git a/extensions/netty/deployment/pom.xml b/extensions/netty/deployment/pom.xml index 2df9849116efe..cf218597a7825 100644 --- a/extensions/netty/deployment/pom.xml +++ b/extensions/netty/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java b/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java index 0b5838a1dd3e7..b19c2a2796a48 100644 --- a/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java +++ b/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.netty.deployment; import java.util.function.Supplier; diff --git a/extensions/netty/pom.xml b/extensions/netty/pom.xml index e928bce90b9f1..95c392513ecb7 100644 --- a/extensions/netty/pom.xml +++ b/extensions/netty/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/netty/runtime/pom.xml b/extensions/netty/runtime/pom.xml index 9cec628095348..b0d9e363c715a 100644 --- a/extensions/netty/runtime/pom.xml +++ b/extensions/netty/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/netty/runtime/src/main/java/io/quarkus/netty/runtime/graal/NettySubstitutions.java b/extensions/netty/runtime/src/main/java/io/quarkus/netty/runtime/graal/NettySubstitutions.java index 94dc8c042c0a5..db069f589d031 100644 --- a/extensions/netty/runtime/src/main/java/io/quarkus/netty/runtime/graal/NettySubstitutions.java +++ b/extensions/netty/runtime/src/main/java/io/quarkus/netty/runtime/graal/NettySubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.netty.runtime.graal; import java.security.PrivateKey; diff --git a/extensions/panache/hibernate-orm-panache/deployment/pom.xml b/extensions/panache/hibernate-orm-panache/deployment/pom.xml index e81bd8643372e..a20ac63d604d3 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/pom.xml +++ b/extensions/panache/hibernate-orm-panache/deployment/pom.xml @@ -1,20 +1,4 @@ - - @@ -37,6 +21,10 @@ io.quarkus quarkus-hibernate-orm-deployment + + io.quarkus + quarkus-panache-common-deployment + io.quarkus quarkus-hibernate-orm-panache diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/EntityField.java b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/EntityField.java index 833665fcbe617..86d99b4c07ad1 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/EntityField.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/EntityField.java @@ -1,5 +1,7 @@ package io.quarkus.hibernate.orm.panache.deployment; +import io.quarkus.panache.common.deployment.JavaBeanUtil; + public class EntityField { final String name; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheFieldAccessMethodVisitor.java b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheFieldAccessMethodVisitor.java index fe93591f488c0..93fd881949cc4 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheFieldAccessMethodVisitor.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheFieldAccessMethodVisitor.java @@ -5,6 +5,8 @@ import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; +import io.quarkus.panache.common.deployment.JavaBeanUtil; + class PanacheFieldAccessMethodVisitor extends MethodVisitor { private final String methodName; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaEntityEnhancer.java b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaEntityEnhancer.java index 8c505a79b4624..1a4de01043c4e 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaEntityEnhancer.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaEntityEnhancer.java @@ -3,6 +3,7 @@ import java.lang.reflect.Modifier; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; import java.util.Set; import java.util.function.BiFunction; @@ -10,9 +11,13 @@ import javax.persistence.Transient; import org.hibernate.bytecode.enhance.spi.EnhancerConstants; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.AnnotationValue; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; import org.jboss.jandex.FieldInfo; +import org.jboss.jandex.IndexView; +import org.jboss.jandex.MethodInfo; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.FieldVisitor; @@ -26,6 +31,7 @@ import io.quarkus.hibernate.orm.panache.runtime.JpaOperations; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; +import io.quarkus.panache.common.deployment.JandexUtil; public class PanacheJpaEntityEnhancer implements BiFunction { @@ -53,10 +59,15 @@ public class PanacheJpaEntityEnhancer implements BiFunction entities = new HashMap<>(); + private final ClassInfo panacheEntityBaseClassInfo; + + public PanacheJpaEntityEnhancer(IndexView index) { + panacheEntityBaseClassInfo = index.getClassByName(PanacheResourceProcessor.DOTNAME_PANACHE_ENTITY_BASE); + } @Override public ClassVisitor apply(String className, ClassVisitor outputClassVisitor) { - return new ModelEnhancingClassVisitor(className, outputClassVisitor, entities); + return new ModelEnhancingClassVisitor(className, outputClassVisitor, entities, panacheEntityBaseClassInfo); } static class ModelEnhancingClassVisitor extends ClassVisitor { @@ -66,14 +77,16 @@ static class ModelEnhancingClassVisitor extends ClassVisitor { // set of name + "/" + descriptor (only for suspected accessor names) private Set methods = new HashSet<>(); private Map entities; + private ClassInfo panacheEntityBaseClassInfo; public ModelEnhancingClassVisitor(String className, ClassVisitor outputClassVisitor, - Map entities) { + Map entities, ClassInfo panacheEntityBaseClassInfo) { super(Opcodes.ASM6, outputClassVisitor); thisClass = Type.getType("L" + className.replace('.', '/') + ";"); this.entities = entities; EntityModel entityModel = entities.get(className); fields = entityModel != null ? entityModel.fields : null; + this.panacheEntityBaseClassInfo = panacheEntityBaseClassInfo; } @Override @@ -121,198 +134,38 @@ public MethodVisitor visitMethod(int access, String methodName, String descripto public void visitEnd() { // FIXME: generate default constructor - generateMethod("findById", - "(Ljava/lang/Object;)" + ENTITY_BASE_SIGNATURE, - "(Ljava/lang/Object;)TT;", - Opcodes.ARETURN, ENTITY_BASE_BINARY_NAME, "id"); - - // find Sort? Map|Object[]|Parameters? - - generateMethod("find", - "(Ljava/lang/String;[Ljava/lang/Object;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;[Ljava/lang/Object;)L" + QUERY_BINARY_NAME + ";", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)L" - + QUERY_BINARY_NAME + ";", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("find", - "(Ljava/lang/String;Ljava/util/Map;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;Ljava/util/Map;)L" + QUERY_BINARY_NAME - + ";", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + SORT_SIGNATURE - + "Ljava/util/Map;)L" + QUERY_BINARY_NAME + ";", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")L" + QUERY_BINARY_NAME - + ";", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")L" - + QUERY_BINARY_NAME + ";", - Opcodes.ARETURN, null, "query", "sort", "params"); - - // list Sort? Map|Object[]|Parameters? - - generateMethod("list", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/List;", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)Ljava/util/List;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "[Ljava/lang/Object;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("list", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/List;", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)Ljava/util/List;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "Ljava/util/Map;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/List;", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/List;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")Ljava/util/List;", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE - + ")Ljava/util/List;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - // stream Sort? Map|Object[]|Parameters? - - generateMethod("stream", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "[Ljava/lang/Object;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("stream", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "Ljava/util/Map;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE - + ")Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE - + ")Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - // findAll Sort? - - generateMethod("findAll", - "()" + QUERY_SIGNATURE, - "()L" + QUERY_BINARY_NAME + ";", - Opcodes.ARETURN, null); - - generateMethod("findAll", - "(" + SORT_SIGNATURE + ")" + QUERY_SIGNATURE, - "(" + SORT_SIGNATURE + ")L" + QUERY_BINARY_NAME + ";", - Opcodes.ARETURN, null, "sort"); - - // listAll Sort? - - generateMethod("listAll", - "()Ljava/util/List;", - "()Ljava/util/List;", - Opcodes.ARETURN, null); - - generateMethod("listAll", - "(" + SORT_SIGNATURE + ")Ljava/util/List;", - "(" + SORT_SIGNATURE + ")Ljava/util/List;", - Opcodes.ARETURN, null, "sort"); - - // streamAll Sort? - - generateMethod("streamAll", - "()Ljava/util/stream/Stream;", - "()Ljava/util/stream/Stream;", - Opcodes.ARETURN, null); - - generateMethod("streamAll", - "(" + SORT_SIGNATURE + ")Ljava/util/stream/Stream;", - "(" + SORT_SIGNATURE + ")Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "sort"); - - // count [String, Map|Object[]|Parameters?]? - - generateMethod("count", "(Ljava/lang/String;[Ljava/lang/Object;)J", null, Opcodes.LRETURN, null, "query", "params"); - generateMethod("count", "(Ljava/lang/String;Ljava/util/Map;)J", null, Opcodes.LRETURN, null, "query", "params"); - generateMethod("count", "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")J", null, Opcodes.LRETURN, null, "query", - "params"); - generateMethod("count", "()J", null, Opcodes.LRETURN, null); - - // delete [String, Map|Object[]|Parameters?]? - - generateMethod("delete", "(Ljava/lang/String;[Ljava/lang/Object;)J", null, Opcodes.LRETURN, null, "query", - "params"); - generateMethod("delete", "(Ljava/lang/String;Ljava/util/Map;)J", null, Opcodes.LRETURN, null, "query", "params"); - generateMethod("delete", "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")J", null, Opcodes.LRETURN, null, "query", - "params"); - generateMethod("deleteAll", "()J", null, Opcodes.LRETURN, null); + for (MethodInfo method : panacheEntityBaseClassInfo.methods()) { + AnnotationInstance bridge = method.annotation(JandexUtil.DOTNAME_GENERATE_BRIDGE); + if (bridge != null) + generateMethod(method, bridge.value("targetReturnTypeErased")); + } generateAccessors(); super.visitEnd(); } - private void generateMethod(String name, - String descriptor, - String signature, - int returnOperation, - String castTo, - String... parameters) { + private void generateMethod(MethodInfo method, AnnotationValue targetReturnTypeErased) { + String descriptor = JandexUtil.getDescriptor(method, name -> null); + String signature = JandexUtil.getSignature(method, name -> null); + List parameters = method.parameters(); + String castTo = null; + if (targetReturnTypeErased != null && targetReturnTypeErased.asBoolean()) { + castTo = method.returnType().name().toString('/'); + } + MethodVisitor mv = super.visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_STATIC | Opcodes.ACC_SYNTHETIC, - name, + method.name(), descriptor, signature, null); - for (int i = 0; i < parameters.length; i++) { - mv.visitParameter(parameters[i], 0 /* modifiers */); + for (int i = 0; i < parameters.size(); i++) { + mv.visitParameter(method.parameterName(i), 0 /* modifiers */); } mv.visitCode(); // inject Class mv.visitLdcInsn(thisClass); - for (int i = 0; i < parameters.length; i++) { + for (int i = 0; i < parameters.size(); i++) { mv.visitIntInsn(Opcodes.ALOAD, i); } // inject Class @@ -324,11 +177,12 @@ private void generateMethod(String name, } mv.visitMethodInsn(Opcodes.INVOKESTATIC, JPA_OPERATIONS_BINARY_NAME, - name, + method.name(), forwardingDescriptor, false); if (castTo != null) mv.visitTypeInsn(Opcodes.CHECKCAST, castTo); - mv.visitInsn(returnOperation); + String returnTypeDescriptor = descriptor.substring(descriptor.lastIndexOf(")") + 1); + mv.visitInsn(JandexUtil.getReturnInstruction(returnTypeDescriptor)); mv.visitMaxs(0, 0); mv.visitEnd(); } diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaRepositoryEnhancer.java b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaRepositoryEnhancer.java index a1ad2fdfc4bd4..915358139e1d8 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaRepositoryEnhancer.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheJpaRepositoryEnhancer.java @@ -1,13 +1,16 @@ package io.quarkus.hibernate.orm.panache.deployment; import static io.quarkus.hibernate.orm.panache.deployment.PanacheJpaEntityEnhancer.JPA_OPERATIONS_BINARY_NAME; -import static io.quarkus.hibernate.orm.panache.deployment.PanacheJpaEntityEnhancer.PARAMETERS_SIGNATURE; -import static io.quarkus.hibernate.orm.panache.deployment.PanacheJpaEntityEnhancer.QUERY_BINARY_NAME; -import static io.quarkus.hibernate.orm.panache.deployment.PanacheJpaEntityEnhancer.QUERY_SIGNATURE; -import static io.quarkus.hibernate.orm.panache.deployment.PanacheJpaEntityEnhancer.SORT_SIGNATURE; +import java.util.List; import java.util.function.BiFunction; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.AnnotationValue; +import org.jboss.jandex.ClassInfo; +import org.jboss.jandex.IndexView; +import org.jboss.jandex.MethodInfo; +import org.jboss.jandex.Type.Kind; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; @@ -16,6 +19,7 @@ import io.quarkus.hibernate.orm.panache.PanacheRepository; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; +import io.quarkus.panache.common.deployment.JandexUtil; public class PanacheJpaRepositoryEnhancer implements BiFunction { @@ -24,10 +28,15 @@ public class PanacheJpaRepositoryEnhancer implements BiFunction;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)L" + QUERY_BINARY_NAME + "<" + entitySignature - + ">;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("find", - "(Ljava/lang/String;Ljava/util/Map;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;Ljava/util/Map;)L" + QUERY_BINARY_NAME + "<" - + entitySignature + ">;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)L" - + QUERY_BINARY_NAME + "<" + entitySignature + ">;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")L" + QUERY_BINARY_NAME + "<" + entitySignature + ">;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("find", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")" + QUERY_SIGNATURE, - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")L" + QUERY_BINARY_NAME + "<" - + entitySignature + ">;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - // list String Sort? Map|Object[]|Parameters? - - generateMethod("list", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/List;", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)Ljava/util/List;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "[Ljava/lang/Object;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("list", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/List;", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)Ljava/util/List;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "Ljava/util/Map;)Ljava/util/List;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/List;", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/List;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("list", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")Ljava/util/List;", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE - + ")Ljava/util/List;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - // stream String Sort? Map|Object[]|Parameters? - - generateMethod("stream", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + SORT_SIGNATURE + "[Ljava/lang/Object;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "[Ljava/lang/Object;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("stream", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;Ljava/util/Map;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + SORT_SIGNATURE + "Ljava/util/Map;)Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + SORT_SIGNATURE - + "Ljava/util/Map;)Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "params"); - - generateMethod("stream", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE + ")Ljava/util/stream/Stream;", - "(Ljava/lang/String;" + SORT_SIGNATURE + PARAMETERS_SIGNATURE - + ")Ljava/util/stream/Stream;", - Opcodes.ARETURN, null, "query", "sort", "params"); - - // findAll Sort? - - generateMethod("findAll", - "()" + QUERY_SIGNATURE, - "()L" + QUERY_BINARY_NAME + "<" + entitySignature + ">;", - Opcodes.ARETURN, null); - - generateMethod("findAll", - "(" + SORT_SIGNATURE + ")" + QUERY_SIGNATURE, - "(" + SORT_SIGNATURE + ")L" + QUERY_BINARY_NAME + "<" + entitySignature + ">;", - Opcodes.ARETURN, null, "sort"); - - // listAll Sort? - - generateMethod("listAll", - "()Ljava/util/List;", - "()Ljava/util/List<" + entitySignature + ">;", - Opcodes.ARETURN, null); - - generateMethod("listAll", - "(" + SORT_SIGNATURE + ")Ljava/util/List;", - "(" + SORT_SIGNATURE + ")Ljava/util/List<" + entitySignature + ">;", - Opcodes.ARETURN, null, "sort"); - - // streamAll Sort? - - generateMethod("streamAll", - "()Ljava/util/stream/Stream;", - "()Ljava/util/stream/Stream<" + entitySignature + ">;", - Opcodes.ARETURN, null); - - generateMethod("streamAll", - "(" + SORT_SIGNATURE + ")Ljava/util/stream/Stream;", - "(" + SORT_SIGNATURE + ")Ljava/util/stream/Stream<" + entitySignature + ">;", - Opcodes.ARETURN, null, "sort"); - - // count [String, Map|Object[]|Parameters?]? - - generateMethod("count", "(Ljava/lang/String;[Ljava/lang/Object;)J", null, Opcodes.LRETURN, null, "query", "params"); - generateMethod("count", "(Ljava/lang/String;Ljava/util/Map;)J", null, Opcodes.LRETURN, null, "query", "params"); - generateMethod("count", "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")J", null, Opcodes.LRETURN, null, "query", - "params"); - generateMethod("count", "()J", null, Opcodes.LRETURN, null); - - // delete [String, Map|Object[]|Parameters?]? - - generateMethod("delete", "(Ljava/lang/String;[Ljava/lang/Object;)J", null, Opcodes.LRETURN, null, "query", - "params"); - generateMethod("delete", "(Ljava/lang/String;Ljava/util/Map;)J", null, Opcodes.LRETURN, null, "query", "params"); - generateMethod("delete", "(Ljava/lang/String;" + PARAMETERS_SIGNATURE + ")J", null, Opcodes.LRETURN, null, "query", - "params"); - generateMethod("deleteAll", "()J", null, Opcodes.LRETURN, null); + for (MethodInfo method : panacheRepositoryBaseClassInfo.methods()) { + AnnotationInstance bridge = method.annotation(JandexUtil.DOTNAME_GENERATE_BRIDGE); + if (bridge != null) + generateMethod(method, bridge.value("targetReturnTypeErased")); + } super.visitEnd(); } - private void generateMethod(String name, String descriptor, String signature, int returnOpCode, String castTo, - String... params) { + private void generateMethod(MethodInfo method, AnnotationValue targetReturnTypeErased) { + String descriptor = JandexUtil.getDescriptor(method, name -> name.equals("Entity") ? entitySignature : null); + String signature = JandexUtil.getSignature(method, name -> name.equals("Entity") ? entitySignature : null); + List parameters = method.parameters(); + + String castTo = null; + if (targetReturnTypeErased != null && targetReturnTypeErased.asBoolean()) { + org.jboss.jandex.Type type = method.returnType(); + if (type.kind() == Kind.TYPE_VARIABLE) { + if (type.asTypeVariable().identifier().equals("Entity")) + castTo = entityBinaryType; + } + if (castTo == null) + castTo = type.name().toString('/'); + } + MethodVisitor mv = super.visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, - name, + method.name(), descriptor, signature, null); - for (int i = 0; i < params.length; i++) { - mv.visitParameter(params[i], 0 /* modifiers */); + for (int i = 0; i < parameters.size(); i++) { + mv.visitParameter(method.parameterName(i), 0 /* modifiers */); } mv.visitCode(); // inject Class mv.visitLdcInsn(entityType); - for (int i = 0; i < params.length; i++) { + for (int i = 0; i < parameters.size(); i++) { mv.visitIntInsn(Opcodes.ALOAD, i + 1); } // inject Class @@ -278,11 +144,12 @@ private void generateMethod(String name, String descriptor, String signature, in } mv.visitMethodInsn(Opcodes.INVOKESTATIC, JPA_OPERATIONS_BINARY_NAME, - name, + method.name(), forwardingDescriptor, false); if (castTo != null) mv.visitTypeInsn(Opcodes.CHECKCAST, castTo); - mv.visitInsn(returnOpCode); + String returnTypeDescriptor = descriptor.substring(descriptor.lastIndexOf(")") + 1); + mv.visitInsn(JandexUtil.getReturnInstruction(returnTypeDescriptor)); mv.visitMaxs(0, 0); mv.visitEnd(); } diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheResourceProcessor.java b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheResourceProcessor.java index 7dee2f882772d..964e2b59e7c0a 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheResourceProcessor.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheResourceProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.hibernate.orm.panache.deployment; import java.util.Collections; @@ -44,9 +28,9 @@ public final class PanacheResourceProcessor { - private static final DotName DOTNAME_PANACHE_REPOSITORY_BASE = DotName.createSimple(PanacheRepositoryBase.class.getName()); + static final DotName DOTNAME_PANACHE_REPOSITORY_BASE = DotName.createSimple(PanacheRepositoryBase.class.getName()); private static final DotName DOTNAME_PANACHE_REPOSITORY = DotName.createSimple(PanacheRepository.class.getName()); - private static final DotName DOTNAME_PANACHE_ENTITY_BASE = DotName.createSimple(PanacheEntityBase.class.getName()); + static final DotName DOTNAME_PANACHE_ENTITY_BASE = DotName.createSimple(PanacheEntityBase.class.getName()); private static final DotName DOTNAME_PANACHE_ENTITY = DotName.createSimple(PanacheEntity.class.getName()); private static final Set UNREMOVABLE_BEANS = Collections.singleton( @@ -82,7 +66,7 @@ void build(CombinedIndexBuildItem index, BuildProducer transformers, HibernateEnhancersRegisteredBuildItem hibernateMarker) throws Exception { - PanacheJpaRepositoryEnhancer daoEnhancer = new PanacheJpaRepositoryEnhancer(); + PanacheJpaRepositoryEnhancer daoEnhancer = new PanacheJpaRepositoryEnhancer(index.getIndex()); Set daoClasses = new HashSet<>(); for (ClassInfo classInfo : index.getIndex().getAllKnownImplementors(DOTNAME_PANACHE_REPOSITORY_BASE)) { // Skip PanacheRepository @@ -97,7 +81,7 @@ void build(CombinedIndexBuildItem index, transformers.produce(new BytecodeTransformerBuildItem(daoClass, daoEnhancer)); } - PanacheJpaEntityEnhancer modelEnhancer = new PanacheJpaEntityEnhancer(); + PanacheJpaEntityEnhancer modelEnhancer = new PanacheJpaEntityEnhancer(index.getIndex()); Set modelClasses = new HashSet<>(); // Note that we do this in two passes because for some reason Jandex does not give us subtypes // of PanacheEntity if we ask for subtypes of PanacheEntityBase diff --git a/extensions/panache/hibernate-orm-panache/pom.xml b/extensions/panache/hibernate-orm-panache/pom.xml index 180278622d0c6..c6114f9eb19d6 100644 --- a/extensions/panache/hibernate-orm-panache/pom.xml +++ b/extensions/panache/hibernate-orm-panache/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/panache/hibernate-orm-panache/runtime/pom.xml b/extensions/panache/hibernate-orm-panache/runtime/pom.xml index a0456d1b943f8..dc088ce473860 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-orm-panache/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java index b32ba03a83d5a..02ef6a7c1428f 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java @@ -10,6 +10,7 @@ import io.quarkus.hibernate.orm.panache.runtime.JpaOperations; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; +import io.quarkus.panache.common.impl.GenerateBridge; /** *

@@ -71,6 +72,7 @@ public boolean isPersistent() { * @param id the ID of the entity to find. * @return the entity found, or null if not found. */ + @GenerateBridge(targetReturnTypeErased = true) public static T findById(Object id) { throw JpaOperations.implementationInjectionMissing(); } @@ -87,6 +89,7 @@ public static T findById(Object id) { * @see #list(String, Object...) * @see #stream(String, Object...) */ + @GenerateBridge public static PanacheQuery find(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -104,6 +107,7 @@ public static PanacheQuery find(String query, O * @see #list(String, Sort, Object...) * @see #stream(String, Sort, Object...) */ + @GenerateBridge public static PanacheQuery find(String query, Sort sort, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -120,6 +124,7 @@ public static PanacheQuery find(String query, S * @see #list(String, Map) * @see #stream(String, Map) */ + @GenerateBridge public static PanacheQuery find(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -137,6 +142,7 @@ public static PanacheQuery find(String query, M * @see #list(String, Sort, Map) * @see #stream(String, Sort, Map) */ + @GenerateBridge public static PanacheQuery find(String query, Sort sort, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -153,6 +159,7 @@ public static PanacheQuery find(String query, S * @see #list(String, Parameters) * @see #stream(String, Parameters) */ + @GenerateBridge public static PanacheQuery find(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -170,6 +177,7 @@ public static PanacheQuery find(String query, P * @see #list(String, Sort, Parameters) * @see #stream(String, Sort, Parameters) */ + @GenerateBridge public static PanacheQuery find(String query, Sort sort, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -182,6 +190,7 @@ public static PanacheQuery find(String query, S * @see #listAll() * @see #streamAll() */ + @GenerateBridge public static PanacheQuery findAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -195,6 +204,7 @@ public static PanacheQuery findAll() { * @see #listAll(Sort) * @see #streamAll(Sort) */ + @GenerateBridge public static PanacheQuery findAll(Sort sort) { throw JpaOperations.implementationInjectionMissing(); } @@ -212,6 +222,7 @@ public static PanacheQuery findAll(Sort sort) { * @see #find(String, Object...) * @see #stream(String, Object...) */ + @GenerateBridge public static List list(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -230,6 +241,7 @@ public static List list(String query, Object... * @see #find(String, Sort, Object...) * @see #stream(String, Sort, Object...) */ + @GenerateBridge public static List list(String query, Sort sort, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -247,6 +259,7 @@ public static List list(String query, Sort sort * @see #find(String, Map) * @see #stream(String, Map) */ + @GenerateBridge public static List list(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -265,6 +278,7 @@ public static List list(String query, Map List list(String query, Sort sort, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -282,6 +296,7 @@ public static List list(String query, Sort sort * @see #find(String, Parameters) * @see #stream(String, Parameters) */ + @GenerateBridge public static List list(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -300,6 +315,7 @@ public static List list(String query, Parameter * @see #find(String, Sort, Parameters) * @see #stream(String, Sort, Parameters) */ + @GenerateBridge public static List list(String query, Sort sort, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -313,6 +329,7 @@ public static List list(String query, Sort sort * @see #findAll() * @see #streamAll() */ + @GenerateBridge public static List listAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -327,6 +344,7 @@ public static List listAll() { * @see #findAll(Sort) * @see #streamAll(Sort) */ + @GenerateBridge public static List listAll(Sort sort) { throw JpaOperations.implementationInjectionMissing(); } @@ -344,6 +362,7 @@ public static List listAll(Sort sort) { * @see #find(String, Object...) * @see #list(String, Object...) */ + @GenerateBridge public static Stream stream(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -362,6 +381,7 @@ public static Stream stream(String query, Objec * @see #find(String, Sort, Object...) * @see #list(String, Sort, Object...) */ + @GenerateBridge public static Stream stream(String query, Sort sort, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -379,6 +399,7 @@ public static Stream stream(String query, Sort * @see #find(String, Map) * @see #list(String, Map) */ + @GenerateBridge public static Stream stream(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -397,6 +418,7 @@ public static Stream stream(String query, Map Stream stream(String query, Sort sort, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -414,6 +436,7 @@ public static Stream stream(String query, Sort * @see #find(String, Parameters) * @see #list(String, Parameters) */ + @GenerateBridge public static Stream stream(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -432,6 +455,7 @@ public static Stream stream(String query, Param * @see #find(String, Sort, Parameters) * @see #list(String, Sort, Parameters) */ + @GenerateBridge public static Stream stream(String query, Sort sort, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -445,6 +469,7 @@ public static Stream stream(String query, Sort * @see #findAll() * @see #listAll() */ + @GenerateBridge public static Stream streamAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -459,6 +484,7 @@ public static Stream streamAll() { * @see #findAll(Sort) * @see #listAll(Sort) */ + @GenerateBridge public static Stream streamAll(Sort sort) { throw JpaOperations.implementationInjectionMissing(); } @@ -471,6 +497,7 @@ public static Stream streamAll(Sort sort) { * @see #count(String, Map) * @see #count(String, Parameters) */ + @GenerateBridge public static long count() { throw JpaOperations.implementationInjectionMissing(); } @@ -485,6 +512,7 @@ public static long count() { * @see #count(String, Map) * @see #count(String, Parameters) */ + @GenerateBridge public static long count(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -499,6 +527,7 @@ public static long count(String query, Object... params) { * @see #count(String, Object...) * @see #count(String, Parameters) */ + @GenerateBridge public static long count(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -513,6 +542,7 @@ public static long count(String query, Map params) { * @see #count(String, Object...) * @see #count(String, Map) */ + @GenerateBridge public static long count(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -525,6 +555,7 @@ public static long count(String query, Parameters params) { * @see #delete(String, Map) * @see #delete(String, Parameters) */ + @GenerateBridge public static long deleteAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -539,6 +570,7 @@ public static long deleteAll() { * @see #delete(String, Map) * @see #delete(String, Parameters) */ + @GenerateBridge public static long delete(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -553,6 +585,7 @@ public static long delete(String query, Object... params) { * @see #delete(String, Object...) * @see #delete(String, Parameters) */ + @GenerateBridge public static long delete(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -567,6 +600,7 @@ public static long delete(String query, Map params) { * @see #delete(String, Object...) * @see #delete(String, Map) */ + @GenerateBridge public static long delete(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java index aeb74f425f935..f83d8c6e9c15f 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java @@ -7,6 +7,7 @@ import io.quarkus.hibernate.orm.panache.runtime.JpaOperations; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; +import io.quarkus.panache.common.impl.GenerateBridge; /** *

@@ -71,6 +72,7 @@ public default boolean isPersistent(Entity entity) { * @param id the ID of the entity to find. * @return the entity found, or null if not found. */ + @GenerateBridge(targetReturnTypeErased = true) public default Entity findById(Id id) { throw JpaOperations.implementationInjectionMissing(); } @@ -87,6 +89,7 @@ public default Entity findById(Id id) { * @see #list(String, Object...) * @see #stream(String, Object...) */ + @GenerateBridge public default PanacheQuery find(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -104,6 +107,7 @@ public default PanacheQuery find(String query, Object... params) { * @see #list(String, Sort, Object...) * @see #stream(String, Sort, Object...) */ + @GenerateBridge public default PanacheQuery find(String query, Sort sort, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -120,6 +124,7 @@ public default PanacheQuery find(String query, Sort sort, Object... para * @see #list(String, Map) * @see #stream(String, Map) */ + @GenerateBridge public default PanacheQuery find(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -137,6 +142,7 @@ public default PanacheQuery find(String query, Map param * @see #list(String, Sort, Map) * @see #stream(String, Sort, Map) */ + @GenerateBridge public default PanacheQuery find(String query, Sort sort, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -153,6 +159,7 @@ public default PanacheQuery find(String query, Sort sort, Map find(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -170,6 +177,7 @@ public default PanacheQuery find(String query, Parameters params) { * @see #list(String, Sort, Parameters) * @see #stream(String, Sort, Parameters) */ + @GenerateBridge public default PanacheQuery find(String query, Sort sort, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -182,6 +190,7 @@ public default PanacheQuery find(String query, Sort sort, Parameters par * @see #listAll() * @see #streamAll() */ + @GenerateBridge public default PanacheQuery findAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -195,6 +204,7 @@ public default PanacheQuery findAll() { * @see #listAll(Sort) * @see #streamAll(Sort) */ + @GenerateBridge public default PanacheQuery findAll(Sort sort) { throw JpaOperations.implementationInjectionMissing(); } @@ -212,6 +222,7 @@ public default PanacheQuery findAll(Sort sort) { * @see #find(String, Object...) * @see #stream(String, Object...) */ + @GenerateBridge public default List list(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -230,6 +241,7 @@ public default List list(String query, Object... params) { * @see #find(String, Sort, Object...) * @see #stream(String, Sort, Object...) */ + @GenerateBridge public default List list(String query, Sort sort, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -247,6 +259,7 @@ public default List list(String query, Sort sort, Object... params) { * @see #find(String, Map) * @see #stream(String, Map) */ + @GenerateBridge public default List list(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -265,6 +278,7 @@ public default List list(String query, Map params) { * @see #find(String, Sort, Map) * @see #stream(String, Sort, Map) */ + @GenerateBridge public default List list(String query, Sort sort, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -282,6 +296,7 @@ public default List list(String query, Sort sort, Map pa * @see #find(String, Parameters) * @see #stream(String, Parameters) */ + @GenerateBridge public default List list(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -300,6 +315,7 @@ public default List list(String query, Parameters params) { * @see #find(String, Sort, Parameters) * @see #stream(String, Sort, Parameters) */ + @GenerateBridge public default List list(String query, Sort sort, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -313,6 +329,7 @@ public default List list(String query, Sort sort, Parameters params) { * @see #findAll() * @see #streamAll() */ + @GenerateBridge public default List listAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -327,6 +344,7 @@ public default List listAll() { * @see #findAll(Sort) * @see #streamAll(Sort) */ + @GenerateBridge public default List listAll(Sort sort) { throw JpaOperations.implementationInjectionMissing(); } @@ -344,6 +362,7 @@ public default List listAll(Sort sort) { * @see #find(String, Object...) * @see #list(String, Object...) */ + @GenerateBridge public default Stream stream(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -362,6 +381,7 @@ public default Stream stream(String query, Object... params) { * @see #find(String, Sort, Object...) * @see #list(String, Sort, Object...) */ + @GenerateBridge public default Stream stream(String query, Sort sort, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -379,6 +399,7 @@ public default Stream stream(String query, Sort sort, Object... params) * @see #find(String, Map) * @see #list(String, Map) */ + @GenerateBridge public default Stream stream(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -397,6 +418,7 @@ public default Stream stream(String query, Map params) { * @see #find(String, Sort, Map) * @see #list(String, Sort, Map) */ + @GenerateBridge public default Stream stream(String query, Sort sort, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -414,6 +436,7 @@ public default Stream stream(String query, Sort sort, Map stream(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -432,6 +455,7 @@ public default Stream stream(String query, Parameters params) { * @see #find(String, Sort, Parameters) * @see #list(String, Sort, Parameters) */ + @GenerateBridge public default Stream stream(String query, Sort sort, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -445,6 +469,7 @@ public default Stream stream(String query, Sort sort, Parameters params) * @see #findAll() * @see #listAll() */ + @GenerateBridge public default Stream streamAll(Sort sort) { throw JpaOperations.implementationInjectionMissing(); } @@ -459,6 +484,7 @@ public default Stream streamAll(Sort sort) { * @see #findAll(Sort) * @see #listAll(Sort) */ + @GenerateBridge public default Stream streamAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -471,6 +497,7 @@ public default Stream streamAll() { * @see #count(String, Map) * @see #count(String, Parameters) */ + @GenerateBridge public default long count() { throw JpaOperations.implementationInjectionMissing(); } @@ -485,6 +512,7 @@ public default long count() { * @see #count(String, Map) * @see #count(String, Parameters) */ + @GenerateBridge public default long count(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -499,6 +527,7 @@ public default long count(String query, Object... params) { * @see #count(String, Object...) * @see #count(String, Parameters) */ + @GenerateBridge public default long count(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -513,6 +542,7 @@ public default long count(String query, Map params) { * @see #count(String, Object...) * @see #count(String, Map) */ + @GenerateBridge public default long count(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } @@ -525,6 +555,7 @@ public default long count(String query, Parameters params) { * @see #delete(String, Map) * @see #delete(String, Parameters) */ + @GenerateBridge public default long deleteAll() { throw JpaOperations.implementationInjectionMissing(); } @@ -539,6 +570,7 @@ public default long deleteAll() { * @see #delete(String, Map) * @see #delete(String, Parameters) */ + @GenerateBridge public default long delete(String query, Object... params) { throw JpaOperations.implementationInjectionMissing(); } @@ -553,6 +585,7 @@ public default long delete(String query, Object... params) { * @see #delete(String, Object...) * @see #delete(String, Parameters) */ + @GenerateBridge public default long delete(String query, Map params) { throw JpaOperations.implementationInjectionMissing(); } @@ -567,6 +600,7 @@ public default long delete(String query, Map params) { * @see #delete(String, Object...) * @see #delete(String, Map) */ + @GenerateBridge public default long delete(String query, Parameters params) { throw JpaOperations.implementationInjectionMissing(); } diff --git a/extensions/panache/panache-common/deployment/pom.xml b/extensions/panache/panache-common/deployment/pom.xml new file mode 100644 index 0000000000000..f68fe0e32e538 --- /dev/null +++ b/extensions/panache/panache-common/deployment/pom.xml @@ -0,0 +1,34 @@ + + + + quarkus-panache-common-parent + io.quarkus + 999-SNAPSHOT + ../ + + 4.0.0 + + quarkus-panache-common-deployment + Quarkus - Panache - Common - Deployment + + + + io.quarkus + quarkus-panache-common + + + io.quarkus + quarkus-arc + + + org.jboss + jandex + + + org.ow2.asm + asm + + + + diff --git a/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JandexUtil.java b/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JandexUtil.java new file mode 100644 index 0000000000000..22dfa8ed6bd67 --- /dev/null +++ b/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JandexUtil.java @@ -0,0 +1,162 @@ +package io.quarkus.panache.common.deployment; + +import java.util.List; +import java.util.function.Function; + +import org.jboss.jandex.ArrayType; +import org.jboss.jandex.DotName; +import org.jboss.jandex.MethodInfo; +import org.jboss.jandex.ParameterizedType; +import org.jboss.jandex.PrimitiveType.Primitive; +import org.jboss.jandex.Type; +import org.jboss.jandex.TypeVariable; +import org.objectweb.asm.Opcodes; + +import io.quarkus.panache.common.impl.GenerateBridge; + +public class JandexUtil { + public static final DotName DOTNAME_GENERATE_BRIDGE = DotName.createSimple(GenerateBridge.class.getName()); + + public static String getSignature(MethodInfo method, Function typeArgMapper) { + List parameters = method.parameters(); + + StringBuilder signature = new StringBuilder(""); + for (TypeVariable typeVariable : method.typeParameters()) { + if (signature.length() == 0) + signature.append("<"); + else + signature.append(","); + signature.append(typeVariable.identifier()).append(":"); + // FIXME: only use the first bound + toSignature(signature, typeVariable.bounds().get(0), typeArgMapper, false); + } + if (signature.length() > 0) + signature.append(">"); + signature.append("("); + for (Type type : parameters) { + toSignature(signature, type, typeArgMapper, false); + } + signature.append(")"); + toSignature(signature, method.returnType(), typeArgMapper, false); + return signature.toString(); + } + + public static String getDescriptor(MethodInfo method, Function typeArgMapper) { + List parameters = method.parameters(); + + StringBuilder descriptor = new StringBuilder("("); + for (Type type : parameters) { + toSignature(descriptor, type, typeArgMapper, true); + } + descriptor.append(")"); + toSignature(descriptor, method.returnType(), typeArgMapper, true); + return descriptor.toString(); + } + + static void toSignature(StringBuilder sb, Type type, Function typeArgMapper, boolean erased) { + switch (type.kind()) { + case ARRAY: + ArrayType arrayType = type.asArrayType(); + for (int i = 0; i < arrayType.dimensions(); i++) + sb.append("["); + toSignature(sb, arrayType.component(), typeArgMapper, erased); + break; + case CLASS: + sb.append("L"); + sb.append(type.asClassType().name().toString().replace('.', '/')); + sb.append(";"); + break; + case PARAMETERIZED_TYPE: + ParameterizedType parameterizedType = type.asParameterizedType(); + sb.append("L"); + // FIXME: support owner type + sb.append(parameterizedType.name().toString().replace('.', '/')); + if (!erased && !parameterizedType.arguments().isEmpty()) { + sb.append("<"); + List arguments = parameterizedType.arguments(); + for (int i = 0; i < arguments.size(); i++) { + Type argType = arguments.get(i); + toSignature(sb, argType, typeArgMapper, erased); + } + sb.append(">"); + } + sb.append(";"); + break; + case PRIMITIVE: + Primitive primitive = type.asPrimitiveType().primitive(); + switch (primitive) { + case BOOLEAN: + sb.append('Z'); + break; + case BYTE: + sb.append('B'); + break; + case CHAR: + sb.append('C'); + break; + case DOUBLE: + sb.append('D'); + break; + case FLOAT: + sb.append('F'); + break; + case INT: + sb.append('I'); + break; + case LONG: + sb.append('J'); + break; + case SHORT: + sb.append('S'); + break; + } + break; + case TYPE_VARIABLE: + TypeVariable typeVariable = type.asTypeVariable(); + String mappedSignature = typeArgMapper.apply(typeVariable.identifier()); + if (mappedSignature != null) + sb.append(mappedSignature); + else if (erased) + toSignature(sb, typeVariable.bounds().get(0), typeArgMapper, erased); + else + sb.append("T").append(typeVariable.identifier()).append(";"); + break; + case UNRESOLVED_TYPE_VARIABLE: + // FIXME: ?? + break; + case VOID: + sb.append("V"); + break; + case WILDCARD_TYPE: + if (!erased) { + sb.append("*"); + } + break; + default: + break; + + } + } + + public static int getReturnInstruction(String typeDescriptor) { + switch (typeDescriptor) { + case "Z": + case "B": + case "C": + case "S": + case "I": + return Opcodes.IRETURN; + case "J": + return Opcodes.LRETURN; + case "F": + return Opcodes.FRETURN; + case "D": + return Opcodes.DRETURN; + case "V": + return Opcodes.RETURN; + default: + return Opcodes.ARETURN; + } + } + +} diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/JavaBeanUtil.java b/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JavaBeanUtil.java similarity index 96% rename from extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/JavaBeanUtil.java rename to extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JavaBeanUtil.java index cdbd2730bbfe9..e981b835bc7c2 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/JavaBeanUtil.java +++ b/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/JavaBeanUtil.java @@ -1,4 +1,4 @@ -package io.quarkus.hibernate.orm.panache.deployment; +package io.quarkus.panache.common.deployment; public class JavaBeanUtil { diff --git a/extensions/panache/panache-common/pom.xml b/extensions/panache/panache-common/pom.xml index 23e048beb3a55..dd2879dde6094 100644 --- a/extensions/panache/panache-common/pom.xml +++ b/extensions/panache/panache-common/pom.xml @@ -1,20 +1,4 @@ - - @@ -31,6 +15,7 @@ pom runtime + deployment diff --git a/extensions/panache/panache-common/runtime/pom.xml b/extensions/panache/panache-common/runtime/pom.xml index 73e1d0adbb860..e6f066bdb3b4f 100644 --- a/extensions/panache/panache-common/runtime/pom.xml +++ b/extensions/panache/panache-common/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/panache/panache-common/runtime/src/main/java/io/quarkus/panache/common/impl/GenerateBridge.java b/extensions/panache/panache-common/runtime/src/main/java/io/quarkus/panache/common/impl/GenerateBridge.java new file mode 100644 index 0000000000000..f0e2b80813b17 --- /dev/null +++ b/extensions/panache/panache-common/runtime/src/main/java/io/quarkus/panache/common/impl/GenerateBridge.java @@ -0,0 +1,20 @@ +package io.quarkus.panache.common.impl; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface GenerateBridge { + + /** + * Set to true if the corresponding JpaOperations method returns Object + * but the bridge should return a more specific type. + */ + boolean targetReturnTypeErased() default false; + +} diff --git a/extensions/panache/pom.xml b/extensions/panache/pom.xml index 7e93cc4ebb9aa..c0ec7615555b0 100644 --- a/extensions/panache/pom.xml +++ b/extensions/panache/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/pom.xml b/extensions/pom.xml index 8b42fa37d2ec7..ec34f2d5144cf 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -1,20 +1,4 @@ - - @@ -71,6 +55,10 @@ reactive-pg-client mailer + + azure-functions-resteasy + + narayana-jta agroal diff --git a/extensions/reactive-pg-client/deployment/pom.xml b/extensions/reactive-pg-client/deployment/pom.xml index 11f678fb7cba4..88ed17c421a52 100644 --- a/extensions/reactive-pg-client/deployment/pom.xml +++ b/extensions/reactive-pg-client/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/PgPoolBuildItem.java b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/PgPoolBuildItem.java index 731985a8c29ba..645bebbac0b25 100644 --- a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/PgPoolBuildItem.java +++ b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/PgPoolBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client.deployment; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java index 240bafffa37d8..39daf7c87b1d4 100644 --- a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java +++ b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client.deployment; import org.jboss.logging.Logger; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java index af4dbcc3f7d84..b4e980d952899 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client; import java.util.concurrent.CompletableFuture; diff --git a/extensions/reactive-pg-client/pom.xml b/extensions/reactive-pg-client/pom.xml index 0c43081087988..99304de005a25 100644 --- a/extensions/reactive-pg-client/pom.xml +++ b/extensions/reactive-pg-client/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-pg-client/runtime/pom.xml b/extensions/reactive-pg-client/runtime/pom.xml index 8cbe64d99dde3..71cf57fbe53a1 100644 --- a/extensions/reactive-pg-client/runtime/pom.xml +++ b/extensions/reactive-pg-client/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceConfig.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceConfig.java index 84830accb61d1..5213b02434cb3 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceConfig.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client.runtime; import java.util.Optional; diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolConfig.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolConfig.java index 5c5fef46da0b3..bcbb9e4721aed 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolConfig.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client.runtime; import java.util.Optional; diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolProducer.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolProducer.java index 15aea267a9e76..0d4dfd0706762 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolProducer.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client.runtime; import javax.enterprise.context.ApplicationScoped; diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolTemplate.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolTemplate.java index 18bab9bb2ad9c..9a4c6804f65d0 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolTemplate.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.reactive.pg.client.runtime; import io.quarkus.arc.runtime.BeanContainer; diff --git a/extensions/reactive-streams-operators/pom.xml b/extensions/reactive-streams-operators/pom.xml index 2f28b7892b03d..9437a26db5b34 100644 --- a/extensions/reactive-streams-operators/pom.xml +++ b/extensions/reactive-streams-operators/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/pom.xml b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/pom.xml index 15e895492878d..604054bdf32f3 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/pom.xml +++ b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/main/java/io/quarkus/smallrye/reactivestreamoperators/deployment/SmallRyeReactiveStreamsOperatorsProcessor.java b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/main/java/io/quarkus/smallrye/reactivestreamoperators/deployment/SmallRyeReactiveStreamsOperatorsProcessor.java index 258ca598656cf..fd1ee463f7e4a 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/main/java/io/quarkus/smallrye/reactivestreamoperators/deployment/SmallRyeReactiveStreamsOperatorsProcessor.java +++ b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/main/java/io/quarkus/smallrye/reactivestreamoperators/deployment/SmallRyeReactiveStreamsOperatorsProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.reactivestreamoperators.deployment; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreamsFactory; diff --git a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/pom.xml b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/pom.xml index a9365fc7fbee7..4cf762e8bb71e 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/pom.xml +++ b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/runtime/pom.xml b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/runtime/pom.xml index d9ee51cf09855..f20f471bdb1b8 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/runtime/pom.xml +++ b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/reactive-streams-operators/smallrye-reactive-type-converters/deployment/src/main/java/io/quarkus/smallrye/typeconverters/deployment/SmallRyeReactiveTypeConvertersProcessor.java b/extensions/reactive-streams-operators/smallrye-reactive-type-converters/deployment/src/main/java/io/quarkus/smallrye/typeconverters/deployment/SmallRyeReactiveTypeConvertersProcessor.java index 478289cbd1df1..a1e099d9e6d11 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-type-converters/deployment/src/main/java/io/quarkus/smallrye/typeconverters/deployment/SmallRyeReactiveTypeConvertersProcessor.java +++ b/extensions/reactive-streams-operators/smallrye-reactive-type-converters/deployment/src/main/java/io/quarkus/smallrye/typeconverters/deployment/SmallRyeReactiveTypeConvertersProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.typeconverters.deployment; import java.util.Collection; diff --git a/extensions/reactive-streams-operators/smallrye-reactive-type-converters/runtime/pom.xml b/extensions/reactive-streams-operators/smallrye-reactive-type-converters/runtime/pom.xml index b4cfbe6a0b1d8..49c0ab9a0fa87 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-type-converters/runtime/pom.xml +++ b/extensions/reactive-streams-operators/smallrye-reactive-type-converters/runtime/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/resteasy-common/deployment/pom.xml b/extensions/resteasy-common/deployment/pom.xml index 1436e0ae52356..b8edfbd22fd7d 100644 --- a/extensions/resteasy-common/deployment/pom.xml +++ b/extensions/resteasy-common/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyJaxrsProviderBuildItem.java b/extensions/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyJaxrsProviderBuildItem.java index 01c4cdbb41a4e..cbdc3c9d6c3f2 100644 --- a/extensions/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyJaxrsProviderBuildItem.java +++ b/extensions/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyJaxrsProviderBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.common.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/resteasy-common/pom.xml b/extensions/resteasy-common/pom.xml index 06abbef274b38..71a0e1387611d 100644 --- a/extensions/resteasy-common/pom.xml +++ b/extensions/resteasy-common/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-common/runtime/pom.xml b/extensions/resteasy-common/runtime/pom.xml index 4a84542465fb2..33c9acb1a8591 100644 --- a/extensions/resteasy-common/runtime/pom.xml +++ b/extensions/resteasy-common/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java b/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java index 722e0122f1684..26f214eb2af0c 100644 --- a/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java +++ b/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.common.runtime.graal; import java.io.IOException; diff --git a/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java b/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java index 225148e0b1115..76ef0feb47d65 100644 --- a/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java +++ b/extensions/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.common.runtime.graal; import java.io.IOException; diff --git a/extensions/resteasy-jsonb/deployment/pom.xml b/extensions/resteasy-jsonb/deployment/pom.xml index 6971642400be1..ec997bbc2bea6 100644 --- a/extensions/resteasy-jsonb/deployment/pom.xml +++ b/extensions/resteasy-jsonb/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java b/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java index 07be69d6dc02f..91ed7570c93fd 100755 --- a/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java +++ b/extensions/resteasy-jsonb/deployment/src/main/java/io/quarkus/resteasy/jsonb/deployment/ResteasyJsonbProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.jsonb.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-jsonb/pom.xml b/extensions/resteasy-jsonb/pom.xml index 3e58e7a9aeb93..35cca798cdd0c 100644 --- a/extensions/resteasy-jsonb/pom.xml +++ b/extensions/resteasy-jsonb/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-jsonb/runtime/pom.xml b/extensions/resteasy-jsonb/runtime/pom.xml index cfad59dda8c3c..6e90c34f89613 100644 --- a/extensions/resteasy-jsonb/runtime/pom.xml +++ b/extensions/resteasy-jsonb/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-server-common/deployment/pom.xml b/extensions/resteasy-server-common/deployment/pom.xml index c52fcc180e504..1575429889a3b 100644 --- a/extensions/resteasy-server-common/deployment/pom.xml +++ b/extensions/resteasy-server-common/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyDeploymentBuildItem.java b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyDeploymentBuildItem.java new file mode 100644 index 0000000000000..ad88ad4e84596 --- /dev/null +++ b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyDeploymentBuildItem.java @@ -0,0 +1,23 @@ +package io.quarkus.resteasy.server.common.deployment; + +import org.jboss.resteasy.spi.ResteasyDeployment; + +import io.quarkus.builder.item.SimpleBuildItem; + +public final class ResteasyDeploymentBuildItem extends SimpleBuildItem { + private ResteasyDeployment deployment; + private String rootPath; + + public ResteasyDeploymentBuildItem(String rootPath, ResteasyDeployment deployment) { + this.deployment = deployment; + this.rootPath = rootPath; + } + + public ResteasyDeployment getDeployment() { + return deployment; + } + + public String getRootPath() { + return rootPath; + } +} diff --git a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyInjectionReadyBuildItem.java b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyInjectionReadyBuildItem.java index b0a58af334cbc..61ec8778bac17 100644 --- a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyInjectionReadyBuildItem.java +++ b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyInjectionReadyBuildItem.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.deployment; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyLogFilterBuildStep.java b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyLogFilterBuildStep.java index 846b192a2b2bd..1e2de0e88b0ee 100644 --- a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyLogFilterBuildStep.java +++ b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyLogFilterBuildStep.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java index dc7d465d763f4..39479d39602f6 100755 --- a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java +++ b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; @@ -40,10 +25,12 @@ import org.jboss.logging.Logger; import org.jboss.resteasy.api.validation.ResteasyConstraintViolation; import org.jboss.resteasy.api.validation.ViolationReport; +import org.jboss.resteasy.core.ResteasyDeploymentImpl; import org.jboss.resteasy.microprofile.config.FilterConfigSource; import org.jboss.resteasy.microprofile.config.ServletConfigSource; import org.jboss.resteasy.microprofile.config.ServletContextConfigSource; import org.jboss.resteasy.plugins.server.servlet.ResteasyContextParameters; +import org.jboss.resteasy.spi.ResteasyDeployment; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; @@ -160,6 +147,7 @@ public void build( BuildProducer runtimeClasses, BuildProducer transformers, BuildProducer resteasyServerConfig, + BuildProducer resteasyDeployment, BuildProducer unremovableBeans, JaxrsProvidersToRegisterBuildItem jaxrsProvidersToRegisterBuildItem, CombinedIndexBuildItem combinedIndexBuildItem, @@ -233,24 +221,30 @@ public void build( registerContextProxyDefinitions(index, proxyDefinition); - registerReflectionForSerialization(reflectiveClass, reflectiveHierarchy, combinedIndexBuildItem); + registerReflectionForSerialization(reflectiveClass, reflectiveHierarchy, combinedIndexBuildItem, + beanArchiveIndexBuildItem); for (ClassInfo implementation : index.getAllKnownImplementors(ResteasyDotNames.DYNAMIC_FEATURE)) { reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, implementation.name().toString())); } Map resteasyInitParameters = new HashMap<>(); + ResteasyDeployment deployment = new ResteasyDeploymentImpl(); - registerProviders(resteasyInitParameters, reflectiveClass, unremovableBeans, jaxrsProvidersToRegisterBuildItem); + registerProviders(deployment, resteasyInitParameters, reflectiveClass, unremovableBeans, + jaxrsProvidersToRegisterBuildItem); if (!resources.isEmpty()) { + deployment.getScannedResourceClasses().addAll(resources); resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_SCANNED_RESOURCES, String.join(",", resources)); } resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_SERVLET_MAPPING_PREFIX, path); if (appClass != null) { + deployment.setApplicationClass(appClass); resteasyInitParameters.put(JAX_RS_APPLICATION_PARAMETER_NAME, appClass); } resteasyInitParameters.put("resteasy.injector.factory", QuarkusInjectorFactory.class.getName()); + deployment.setInjectorFactoryClass(QuarkusInjectorFactory.class.getName()); if (commonConfig.gzip.enabled && commonConfig.gzip.maxInput.isPresent()) { resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_GZIP_MAX_INPUT, @@ -258,6 +252,7 @@ public void build( } resteasyServerConfig.produce(new ResteasyServerConfigBuildItem(path, resteasyInitParameters)); + resteasyDeployment.produce(new ResteasyDeploymentBuildItem(path, deployment)); } @BuildStep @@ -355,7 +350,7 @@ JaxbEnabledBuildItem enableJaxb() { return new JaxbEnabledBuildItem(); } - private static void registerProviders(Map resteasyInitParameters, + private static void registerProviders(ResteasyDeployment deployment, Map resteasyInitParameters, BuildProducer reflectiveClass, BuildProducer unremovableBeans, JaxrsProvidersToRegisterBuildItem jaxrsProvidersToRegisterBuildItem) { @@ -363,8 +358,10 @@ private static void registerProviders(Map resteasyInitParameters if (jaxrsProvidersToRegisterBuildItem.useBuiltIn()) { // if we find a wildcard media type, we just use the built-in providers resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_USE_BUILTIN_PROVIDERS, "true"); + deployment.setRegisterBuiltin(true); if (!jaxrsProvidersToRegisterBuildItem.getContributedProviders().isEmpty()) { + deployment.getProviderClasses().addAll(jaxrsProvidersToRegisterBuildItem.getContributedProviders()); resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_PROVIDERS, String.join(",", jaxrsProvidersToRegisterBuildItem.getContributedProviders())); } @@ -372,6 +369,8 @@ private static void registerProviders(Map resteasyInitParameters resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_USE_BUILTIN_PROVIDERS, "false"); resteasyInitParameters.put(ResteasyContextParameters.RESTEASY_PROVIDERS, String.join(",", jaxrsProvidersToRegisterBuildItem.getProviders())); + deployment.setRegisterBuiltin(false); + deployment.getProviderClasses().addAll(jaxrsProvidersToRegisterBuildItem.getProviders()); } // register the providers for reflection @@ -495,8 +494,10 @@ private static void registerContextProxyDefinitions(IndexView index, private static void registerReflectionForSerialization(BuildProducer reflectiveClass, BuildProducer reflectiveHierarchy, - CombinedIndexBuildItem combinedIndexBuildItem) { + CombinedIndexBuildItem combinedIndexBuildItem, + BeanArchiveIndexBuildItem beanArchiveIndexBuildItem) { IndexView index = combinedIndexBuildItem.getIndex(); + IndexView beanArchiveIndex = beanArchiveIndexBuildItem.getIndex(); // required by Jackson reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, @@ -514,20 +515,8 @@ private static void registerReflectionForSerialization(BuildProducer instances = index.getAnnotations(annotationType); - for (AnnotationInstance instance : instances) { - MethodInfo method = instance.target().asMethod(); - if (isReflectionDeclarationRequiredFor(method.returnType())) { - reflectiveHierarchy.produce(new ReflectiveHierarchyBuildItem(method.returnType())); - } - for (short i = 0; i < method.parameters().size(); i++) { - Type parameterType = method.parameters().get(i); - if (isReflectionDeclarationRequiredFor(parameterType) - && !hasAnnotation(method, i, ResteasyDotNames.CONTEXT)) { - reflectiveHierarchy.produce(new ReflectiveHierarchyBuildItem(parameterType)); - } - } - } + scanMethodParameters(annotationType, reflectiveHierarchy, index); + scanMethodParameters(annotationType, reflectiveHierarchy, beanArchiveIndex); } // In the case of a constraint violation, these elements might be returned as entities and will be serialized @@ -535,6 +524,24 @@ private static void registerReflectionForSerialization(BuildProducer reflectiveHierarchy, IndexView index) { + Collection instances = index.getAnnotations(annotationType); + for (AnnotationInstance instance : instances) { + MethodInfo method = instance.target().asMethod(); + if (isReflectionDeclarationRequiredFor(method.returnType())) { + reflectiveHierarchy.produce(new ReflectiveHierarchyBuildItem(method.returnType(), index)); + } + for (short i = 0; i < method.parameters().size(); i++) { + Type parameterType = method.parameters().get(i); + if (isReflectionDeclarationRequiredFor(parameterType) + && !hasAnnotation(method, i, ResteasyDotNames.CONTEXT)) { + reflectiveHierarchy.produce(new ReflectiveHierarchyBuildItem(parameterType, index)); + } + } + } + } + private static boolean isReflectionDeclarationRequiredFor(Type type) { DotName className = getClassName(type); diff --git a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerConfigBuildItem.java b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerConfigBuildItem.java index af36c2cab5f43..e9d7daed73dfe 100644 --- a/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerConfigBuildItem.java +++ b/extensions/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerConfigBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.deployment; import java.util.Map; diff --git a/extensions/resteasy-server-common/pom.xml b/extensions/resteasy-server-common/pom.xml index 4a1179e93601c..314f69b74a29c 100644 --- a/extensions/resteasy-server-common/pom.xml +++ b/extensions/resteasy-server-common/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-server-common/runtime/pom.xml b/extensions/resteasy-server-common/runtime/pom.xml index c4b994090a13a..feb305b1e49f8 100644 --- a/extensions/resteasy-server-common/runtime/pom.xml +++ b/extensions/resteasy-server-common/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusConstructorInjector.java b/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusConstructorInjector.java index 84ae5c349c79d..9ceea776644c9 100644 --- a/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusConstructorInjector.java +++ b/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusConstructorInjector.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.runtime; import java.lang.reflect.Constructor; diff --git a/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusInjectorFactory.java b/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusInjectorFactory.java index 56bdef79a7f10..51abfdd627151 100644 --- a/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusInjectorFactory.java +++ b/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/QuarkusInjectorFactory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.runtime; import java.lang.reflect.Constructor; diff --git a/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/ResteasyServerCommonTemplate.java b/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/ResteasyServerCommonTemplate.java index 0219596a90029..28c07e1846c6c 100644 --- a/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/ResteasyServerCommonTemplate.java +++ b/extensions/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/ResteasyServerCommonTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.server.common.runtime; import java.util.List; diff --git a/extensions/resteasy/deployment/pom.xml b/extensions/resteasy/deployment/pom.xml index 38d2d83d47959..94b3f14d40013 100644 --- a/extensions/resteasy/deployment/pom.xml +++ b/extensions/resteasy/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyJaxrsConfigBuildItem.java b/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyJaxrsConfigBuildItem.java index 4f141b47b2cd2..6f36dfb82bf13 100644 --- a/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyJaxrsConfigBuildItem.java +++ b/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyJaxrsConfigBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.deployment; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyProcessor.java b/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyProcessor.java index 293e8405eee29..78c5a83df996a 100755 --- a/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyProcessor.java +++ b/extensions/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.deployment; import java.util.Map.Entry; diff --git a/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RestEasyCORSTestCase.java b/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RestEasyCORSTestCase.java index 2ac7016f0f3df..9fd8a3924035d 100644 --- a/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RestEasyCORSTestCase.java +++ b/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RestEasyCORSTestCase.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.test; import org.hamcrest.Matchers; diff --git a/extensions/resteasy/pom.xml b/extensions/resteasy/pom.xml index b1862124134ee..05d24dee59732 100644 --- a/extensions/resteasy/pom.xml +++ b/extensions/resteasy/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy/runtime/pom.xml b/extensions/resteasy/runtime/pom.xml index f440f762f4a91..e5e96267e7803 100644 --- a/extensions/resteasy/runtime/pom.xml +++ b/extensions/resteasy/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java b/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java index 2a17f1f48fb5e..a8f139e76082f 100644 --- a/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java +++ b/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.resteasy.runtime; import java.io.IOException; diff --git a/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/ScheduledBusinessMethodItem.java b/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/ScheduledBusinessMethodItem.java index 25bf30afd491f..8474e468d80fc 100644 --- a/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/ScheduledBusinessMethodItem.java +++ b/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/ScheduledBusinessMethodItem.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.deployment; import java.util.List; diff --git a/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/SchedulerProcessor.java b/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/SchedulerProcessor.java index 219dcbd7dbcb8..3b77e5a5d1484 100644 --- a/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/SchedulerProcessor.java +++ b/extensions/scheduler/deployment/src/main/java/io/quarkus/scheduler/deployment/SchedulerProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java index 03a9381fbaaf8..b0736e25e98fa 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import javax.enterprise.inject.spi.DeploymentException; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java index ea1dda36b74d0..94297c4d59048 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import javax.enterprise.inject.spi.DeploymentException; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/MissingConfigCronExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/MissingConfigCronExpressionTest.java index aaa0ecc123b63..f2f8206e70037 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/MissingConfigCronExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/MissingConfigCronExpressionTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java index bbbe0f49a4d1c..8f18af3e2b49e 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import javax.enterprise.inject.spi.DeploymentException; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java index 36da7d8fd4f48..bb860c52eedbf 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import java.util.concurrent.CountDownLatch; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestScheduledMethodTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestScheduledMethodTest.java index 4034cc1375165..112a2c96a3312 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestScheduledMethodTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestScheduledMethodTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleJobs.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleJobs.java index ce3d7058220c7..513965bf97e77 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleJobs.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleJobs.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import java.util.Map; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleScheduledMethodTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleScheduledMethodTest.java index 314fbacad34d2..5e7e0066a6b10 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleScheduledMethodTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SimpleScheduledMethodTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.test; import static org.wildfly.common.Assert.assertNotNull; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduled.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduled.java index b606ed9b6d930..43de1cd28f0d1 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduled.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduled.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler; import static java.lang.annotation.ElementType.METHOD; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/ScheduledExecution.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/ScheduledExecution.java index ea5d1a084965c..2b1209355838f 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/ScheduledExecution.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/ScheduledExecution.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler; import java.time.Instant; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduler.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduler.java index 4b06edfb7f176..a0911cfe2817e 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduler.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Scheduler.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler; import javax.enterprise.context.ApplicationScoped; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Trigger.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Trigger.java index ceff382e2a6bd..a40233548b10d 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Trigger.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/Trigger.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler; import java.time.Instant; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/QuartzScheduler.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/QuartzScheduler.java index 52a62a922d6bf..1a80b3e30d60f 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/QuartzScheduler.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/QuartzScheduler.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.runtime; import java.time.Duration; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/ScheduledInvoker.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/ScheduledInvoker.java index be052fdc744a9..dede920a5f08f 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/ScheduledInvoker.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/ScheduledInvoker.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.runtime; import io.quarkus.scheduler.ScheduledExecution; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerConfiguration.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerConfiguration.java index 6d33bd4bb0bdd..42029e52045de 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerConfiguration.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerConfiguration.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.runtime; import java.lang.reflect.InvocationTargetException; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerDeploymentTemplate.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerDeploymentTemplate.java index cc2e0b2b9ae27..314b4164712c5 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerDeploymentTemplate.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SchedulerDeploymentTemplate.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.runtime; import java.util.List; diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/graal/QuartzSubstitutions.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/graal/QuartzSubstitutions.java index 43ff41235356b..a41b3907ac9cd 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/graal/QuartzSubstitutions.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/graal/QuartzSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.scheduler.runtime.graal; import java.rmi.RemoteException; diff --git a/extensions/smallrye-context-propagation/deployment/pom.xml b/extensions/smallrye-context-propagation/deployment/pom.xml index 82cb622403a1e..8056ba3a40c44 100644 --- a/extensions/smallrye-context-propagation/deployment/pom.xml +++ b/extensions/smallrye-context-propagation/deployment/pom.xml @@ -1,10 +1,4 @@ - - diff --git a/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java b/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java index 41479012a865a..f1a1fedd8a834 100644 --- a/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java +++ b/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.context.deployment; import java.io.IOException; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/context/test/TestResources.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/context/test/TestResources.java index b406a93b5ef53..0235b59982383 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/context/test/TestResources.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/context/test/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.context.test; import io.quarkus.test.common.QuarkusTestResource; diff --git a/extensions/smallrye-context-propagation/pom.xml b/extensions/smallrye-context-propagation/pom.xml index 1f013a8492f57..c58aab34b3a60 100644 --- a/extensions/smallrye-context-propagation/pom.xml +++ b/extensions/smallrye-context-propagation/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-context-propagation/runtime/pom.xml b/extensions/smallrye-context-propagation/runtime/pom.xml index cec4815502f92..5e3710cde070a 100644 --- a/extensions/smallrye-context-propagation/runtime/pom.xml +++ b/extensions/smallrye-context-propagation/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-fault-tolerance/deployment/pom.xml b/extensions/smallrye-fault-tolerance/deployment/pom.xml index 55e1ea0f6e77e..3e4a6dd451a3c 100644 --- a/extensions/smallrye-fault-tolerance/deployment/pom.xml +++ b/extensions/smallrye-fault-tolerance/deployment/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java index 515e5e79642ad..4d1745ebe0a7d 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.faulttolerance.deployment; import java.util.HashSet; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/substitutions/rxjava/UnsafeAccess.java b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/substitutions/rxjava/UnsafeAccess.java index b3d3856ffe57e..5f4fba111b36e 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/substitutions/rxjava/UnsafeAccess.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/substitutions/rxjava/UnsafeAccess.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.faulttolerance.deployment.substitutions.rxjava; import com.oracle.svm.core.annotate.Substitute; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java index 7bf0e9c083608..5ffd3debeff4a 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.faulttolerance.test.fallback; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/smallrye-fault-tolerance/pom.xml b/extensions/smallrye-fault-tolerance/pom.xml index 36f94e59db87b..04cf5441f381a 100644 --- a/extensions/smallrye-fault-tolerance/pom.xml +++ b/extensions/smallrye-fault-tolerance/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-fault-tolerance/runtime/pom.xml b/extensions/smallrye-fault-tolerance/runtime/pom.xml index 42d7c0c89e66b..13cb771475efb 100644 --- a/extensions/smallrye-fault-tolerance/runtime/pom.xml +++ b/extensions/smallrye-fault-tolerance/runtime/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java index 646dac2d42869..319f309f4ddb0 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.faulttolerance.runtime; import javax.annotation.Priority; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java index 2bda2efbca397..0cc3f25704c11 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.faulttolerance.runtime; import java.lang.reflect.Method; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/graal/FaultToleranceSubstitutions.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/graal/FaultToleranceSubstitutions.java index 095cf4945ec7f..91233f284af3b 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/graal/FaultToleranceSubstitutions.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/graal/FaultToleranceSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.faulttolerance.runtime.graal; import java.lang.reflect.InvocationTargetException; diff --git a/extensions/smallrye-health/deployment/pom.xml b/extensions/smallrye-health/deployment/pom.xml index 71100f407e78b..54cdba1b49eef 100644 --- a/extensions/smallrye-health/deployment/pom.xml +++ b/extensions/smallrye-health/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java b/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java index c6d3f69f24d44..d60d0c25ba01a 100644 --- a/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java +++ b/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.health.deployment; import java.io.IOException; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java index eed9c9881a0b6..bdf016be52f47 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.health.test; import java.util.Collections; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java index c58c482097637..ae3b6157e03ea 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.health.test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/smallrye-health/pom.xml b/extensions/smallrye-health/pom.xml index 87bb2a8c1ecc5..80772bfd8280b 100644 --- a/extensions/smallrye-health/pom.xml +++ b/extensions/smallrye-health/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-health/runtime/pom.xml b/extensions/smallrye-health/runtime/pom.xml index bdd8448c8a8c1..70df130ab45a0 100644 --- a/extensions/smallrye-health/runtime/pom.xml +++ b/extensions/smallrye-health/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/SmallRyeHealthServlet.java b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/SmallRyeHealthServlet.java index 4e4e701fd4a50..c8157a13ea34d 100644 --- a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/SmallRyeHealthServlet.java +++ b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/SmallRyeHealthServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.health.runtime; import java.io.IOException; diff --git a/extensions/smallrye-jwt/deployment/pom.xml b/extensions/smallrye-jwt/deployment/pom.xml index 94f5944ec2839..5131c04ed41aa 100644 --- a/extensions/smallrye-jwt/deployment/pom.xml +++ b/extensions/smallrye-jwt/deployment/pom.xml @@ -1,20 +1,4 @@ - - @@ -32,7 +16,7 @@ io.smallrye - smallrye-jwt + smallrye-jwt-1.1 io.quarkus diff --git a/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java b/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java index 44f550f1a2506..59a7af920178c 100644 --- a/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java +++ b/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.jwt.deployment; import java.security.interfaces.RSAPublicKey; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java index b07bd6ba8b175..df20ba3852840 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java @@ -1,22 +1,3 @@ -/* - * Copyright (c) 2016-2017 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * 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 io.quarkus.jwt.test; import javax.annotation.security.DenyAll; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java index b4ebb00be3646..f4dcf7bcd2ce1 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java @@ -1,22 +1,3 @@ -/* - * Copyright (c) 2016-2017 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * 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 io.quarkus.jwt.test; import java.util.List; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java index fb0e3155efea0..f4bfab980016b 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java @@ -1,22 +1,3 @@ -/* - * Copyright (c) 2016-2017 Contributors to the Eclipse Foundation - * - * See the NOTICE file(s) distributed with this work for additional - * information regarding copyright ownership. - * - * 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 io.quarkus.jwt.test; import java.security.Principal; diff --git a/extensions/smallrye-jwt/pom.xml b/extensions/smallrye-jwt/pom.xml index 17289a193b90b..9353874592802 100644 --- a/extensions/smallrye-jwt/pom.xml +++ b/extensions/smallrye-jwt/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-jwt/runtime/pom.xml b/extensions/smallrye-jwt/runtime/pom.xml index 6b35ea26ca9f8..4b1fa4374c437 100644 --- a/extensions/smallrye-jwt/runtime/pom.xml +++ b/extensions/smallrye-jwt/runtime/pom.xml @@ -1,20 +1,4 @@ - - @@ -36,7 +20,7 @@ io.smallrye - smallrye-jwt + smallrye-jwt-1.1 io.quarkus diff --git a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java index b780afb22b614..1111c3579995b 100644 --- a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java +++ b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java @@ -1,16 +1,13 @@ package io.quarkus.smallrye.jwt.runtime.auth; -import static io.undertow.util.Headers.AUTHORIZATION; -import static io.undertow.util.Headers.COOKIE; import static io.undertow.util.Headers.WWW_AUTHENTICATE; import static io.undertow.util.StatusCodes.UNAUTHORIZED; -import java.util.Locale; - import javax.enterprise.inject.spi.CDI; import org.eclipse.microprofile.jwt.JsonWebToken; +import io.smallrye.jwt.auth.AbstractBearerTokenExtractor; import io.smallrye.jwt.auth.cdi.PrincipalProducer; import io.smallrye.jwt.auth.principal.JWTAuthContextInfo; import io.undertow.UndertowLogger; @@ -45,7 +42,7 @@ public JWTAuthMechanism(JWTAuthContextInfo authContextInfo, IdentityManager iden */ @Override public AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext) { - String jwtToken = getJwtToken(exchange); + String jwtToken = new UndertowBearerTokenExtractor(authContextInfo, exchange).getBearerToken(); if (jwtToken != null) { try { JWTCredential credential = new JWTCredential(jwtToken, authContextInfo); @@ -79,25 +76,6 @@ private void preparePrincipalProducer(JsonWebToken jwtPrincipal) { principalProducer.setJsonWebToken(jwtPrincipal); } - private String getJwtToken(HttpServerExchange exchange) { - String bearerToken = null; - if (AUTHORIZATION.toString().equals(authContextInfo.getTokenHeader())) { - String authScheme = exchange.getRequestHeaders().getFirst(authContextInfo.getTokenHeader()); - if (authScheme != null && authScheme.toLowerCase(Locale.ENGLISH).startsWith("bearer ")) { - bearerToken = authScheme.substring(7); - } - } else if (COOKIE.toString().equals(authContextInfo.getTokenHeader()) - && authContextInfo.getTokenCookie() != null) { - Cookie cookie = exchange.getRequestCookies().get(authContextInfo.getTokenCookie()); - if (cookie != null) { - bearerToken = cookie.getValue(); - } - } else { - bearerToken = exchange.getRequestHeaders().getFirst(authContextInfo.getTokenHeader()); - } - return bearerToken; - } - @Override public ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContext securityContext) { exchange.getResponseHeaders().add(WWW_AUTHENTICATE, "Bearer {token}"); @@ -105,4 +83,23 @@ public ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContex return new ChallengeResult(true, UNAUTHORIZED); } + private static class UndertowBearerTokenExtractor extends AbstractBearerTokenExtractor { + private HttpServerExchange httpExchange; + + UndertowBearerTokenExtractor(JWTAuthContextInfo authContextInfo, HttpServerExchange exchange) { + super(authContextInfo); + this.httpExchange = exchange; + } + + @Override + protected String getHeaderValue(String headerName) { + return httpExchange.getRequestHeaders().getFirst(headerName); + } + + @Override + protected String getCookieValue(String cookieName) { + Cookie cookie = httpExchange.getRequestCookies().get(cookieName); + return cookie != null ? cookie.getValue() : null; + } + } } diff --git a/extensions/smallrye-metrics/deployment/pom.xml b/extensions/smallrye-metrics/deployment/pom.xml index 0341755d1388a..2ce770d7f44a9 100644 --- a/extensions/smallrye-metrics/deployment/pom.xml +++ b/extensions/smallrye-metrics/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java index aaa673521b972..5e710aed529d1 100644 --- a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java +++ b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.metrics.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/smallrye-metrics/pom.xml b/extensions/smallrye-metrics/pom.xml index e2750e206244e..09b808a71ddfc 100644 --- a/extensions/smallrye-metrics/pom.xml +++ b/extensions/smallrye-metrics/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-metrics/runtime/pom.xml b/extensions/smallrye-metrics/runtime/pom.xml index 8d4b77d15903b..ff3b4e76914f1 100644 --- a/extensions/smallrye-metrics/runtime/pom.xml +++ b/extensions/smallrye-metrics/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaCounter.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaCounter.java index 55b32582dace8..3d854e3e6a221 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaCounter.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaCounter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.metrics.runtime; import java.util.concurrent.Callable; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaGauge.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaGauge.java index 8a8b11c1f7ee3..38c4820d8dde4 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaGauge.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/LambdaGauge.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.metrics.runtime; import java.util.concurrent.Callable; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsServlet.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsServlet.java index 3deed19d7a3bb..711bebb60868d 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsServlet.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.metrics.runtime; import java.io.IOException; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsTemplate.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsTemplate.java index f4bdcd6a473b6..6ed1e846be9ed 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsTemplate.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.metrics.runtime; import java.lang.management.ClassLoadingMXBean; diff --git a/extensions/smallrye-openapi-common/deployment/pom.xml b/extensions/smallrye-openapi-common/deployment/pom.xml index 7bb85410d8038..d678fa7c572b7 100644 --- a/extensions/smallrye-openapi-common/deployment/pom.xml +++ b/extensions/smallrye-openapi-common/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-openapi-common/deployment/src/main/java/io/quarkus/smallrye/openapi/common/deployment/SmallRyeOpenApiConfig.java b/extensions/smallrye-openapi-common/deployment/src/main/java/io/quarkus/smallrye/openapi/common/deployment/SmallRyeOpenApiConfig.java index 92f0d15bd48e2..61e0dcd882917 100644 --- a/extensions/smallrye-openapi-common/deployment/src/main/java/io/quarkus/smallrye/openapi/common/deployment/SmallRyeOpenApiConfig.java +++ b/extensions/smallrye-openapi-common/deployment/src/main/java/io/quarkus/smallrye/openapi/common/deployment/SmallRyeOpenApiConfig.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.openapi.common.deployment; import io.quarkus.runtime.annotations.ConfigItem; diff --git a/extensions/smallrye-openapi-common/pom.xml b/extensions/smallrye-openapi-common/pom.xml index 08abdb74f946f..a7f8a2d52120e 100644 --- a/extensions/smallrye-openapi-common/pom.xml +++ b/extensions/smallrye-openapi-common/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-openapi/deployment/pom.xml b/extensions/smallrye-openapi/deployment/pom.xml index 82dfc93f69a64..beb9d941c3e9e 100644 --- a/extensions/smallrye-openapi/deployment/pom.xml +++ b/extensions/smallrye-openapi/deployment/pom.xml @@ -1,20 +1,4 @@ - - @@ -58,6 +42,16 @@ io.quarkus quarkus-smallrye-openapi + + io.quarkus + quarkus-junit5-internal + test + + + io.rest-assured + rest-assured + test + diff --git a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java index 3754990219650..627d6ab98716f 100644 --- a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java +++ b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.openapi.deployment; import java.io.IOException; @@ -102,8 +86,7 @@ List configFiles() { @BuildStep ServletBuildItem servlet() { - return ServletBuildItem.builder("openapi", OpenApiServlet.class.getName()) - .addMapping(openapi.path).build(); + return ServletBuildItem.builder("openapi", OpenApiServlet.class.getName()).addMapping(openapi.path).build(); } @BuildStep diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiDefaultPathTestCase.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiDefaultPathTestCase.java new file mode 100644 index 0000000000000..eae4a54f953da --- /dev/null +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiDefaultPathTestCase.java @@ -0,0 +1,26 @@ +package io.quarkus.smallrye.openapi.test; + +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.restassured.RestAssured; + +public class OpenApiDefaultPathTestCase { + private static final String OPEN_API_PATH = "/openapi"; + + @RegisterExtension + static QuarkusUnitTest runner = new QuarkusUnitTest() + .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class) + .addClasses(OpenApiResource.class)); + + @Test + public void testOpenApiPathAccessResource() { + RestAssured.given().queryParam("format", "application/yaml").when().get(OPEN_API_PATH).then().header("Content-Type", + "application/yaml;charset=UTF-8"); + RestAssured.given().queryParam("format", "application/json").when().get(OPEN_API_PATH).then().header("Content-Type", + "application/json;charset=UTF-8"); + } +} diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithSegmentsTestCase.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithSegmentsTestCase.java new file mode 100644 index 0000000000000..b1ec005f240ee --- /dev/null +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithSegmentsTestCase.java @@ -0,0 +1,29 @@ +package io.quarkus.smallrye.openapi.test; + +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.restassured.RestAssured; + +public class OpenApiPathWithSegmentsTestCase { + private static final String OPEN_API_PATH = "/path/with/segments"; + + @RegisterExtension + static QuarkusUnitTest runner = new QuarkusUnitTest() + .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class) + .addClasses(OpenApiResource.class) + .addAsResource(new StringAsset("quarkus.smallrye-openapi.path=" + OPEN_API_PATH), + "application.properties")); + + @Test + public void testOpenApiPathAccessResource() { + RestAssured.given().queryParam("format", "application/yaml").when().get(OPEN_API_PATH).then().header("Content-Type", + "application/yaml;charset=UTF-8"); + RestAssured.given().queryParam("format", "application/json").when().get(OPEN_API_PATH).then().header("Content-Type", + "application/json;charset=UTF-8"); + } +} diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithoutSegmentsTestCase.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithoutSegmentsTestCase.java new file mode 100644 index 0000000000000..5c2cc02a479d5 --- /dev/null +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiPathWithoutSegmentsTestCase.java @@ -0,0 +1,29 @@ +package io.quarkus.smallrye.openapi.test; + +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.restassured.RestAssured; + +public class OpenApiPathWithoutSegmentsTestCase { + private static final String OPEN_API_PATH = "/path-without-segments"; + + @RegisterExtension + static QuarkusUnitTest runner = new QuarkusUnitTest() + .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class) + .addClasses(OpenApiResource.class) + .addAsResource(new StringAsset("quarkus.smallrye-openapi.path=" + OPEN_API_PATH), + "application.properties")); + + @Test + public void testOpenApiPathAccessResource() { + RestAssured.given().queryParam("format", "application/yaml").when().get(OPEN_API_PATH).then().header("Content-Type", + "application/yaml;charset=UTF-8"); + RestAssured.given().queryParam("format", "application/json").when().get(OPEN_API_PATH).then().header("Content-Type", + "application/json;charset=UTF-8"); + } +} diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiResource.java new file mode 100644 index 0000000000000..dd5f7c9264fbb --- /dev/null +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/OpenApiResource.java @@ -0,0 +1,13 @@ +package io.quarkus.smallrye.openapi.test; + +import javax.ws.rs.GET; +import javax.ws.rs.Path; + +@Path("/resource") +public class OpenApiResource { + + @GET + public String root() { + return "resource"; + } +} diff --git a/extensions/smallrye-openapi/pom.xml b/extensions/smallrye-openapi/pom.xml index c4cd488180556..f49b798247ca3 100644 --- a/extensions/smallrye-openapi/pom.xml +++ b/extensions/smallrye-openapi/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-openapi/runtime/pom.xml b/extensions/smallrye-openapi/runtime/pom.xml index 12aa10d3c287d..1dc6fd0bb9562 100644 --- a/extensions/smallrye-openapi/runtime/pom.xml +++ b/extensions/smallrye-openapi/runtime/pom.xml @@ -1,20 +1,4 @@ - - @@ -34,10 +18,6 @@ io.smallrye smallrye-open-api - - com.fasterxml.jackson.core - jackson-core - commons-io commons-io @@ -60,10 +40,6 @@ io.quarkus quarkus-swagger-ui - - com.fasterxml.jackson.core - jackson-core - diff --git a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentProducer.java b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentProducer.java index 9a0e9eede40ad..e3a800d89f3be 100644 --- a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentProducer.java +++ b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.openapi.runtime; import java.io.IOException; diff --git a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiServlet.java b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiServlet.java index a20473521ea88..c5b00379a90a2 100644 --- a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiServlet.java +++ b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.openapi.runtime; import java.io.IOException; @@ -62,7 +46,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se addCorsResponseHeaders(resp); resp.setHeader("Content-Type", format.getMimeType()); resp.setCharacterEncoding("UTF-8"); - req.getRequestDispatcher(GENERATED_DOC_BASE + format).include(req, resp); + req.getRequestDispatcher("/" + GENERATED_DOC_BASE + format).include(req, resp); } private static void addCorsResponseHeaders(HttpServletResponse response) { diff --git a/extensions/smallrye-opentracing/deployment/pom.xml b/extensions/smallrye-opentracing/deployment/pom.xml index 8beafd45a3e8a..00a4014b4a452 100644 --- a/extensions/smallrye-opentracing/deployment/pom.xml +++ b/extensions/smallrye-opentracing/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java b/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java index ff5964f1a0151..6febabe68d625 100644 --- a/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java +++ b/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.opentracing.deployment; import java.lang.reflect.Method; diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java index 23d266e5512e8..4ef743c4de634 100644 --- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java +++ b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java @@ -17,7 +17,7 @@ public class Service { @Inject - private Tracer tracer; + Tracer tracer; public void foo() { } diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java index eb17dc303940e..3be1f0897913f 100644 --- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java +++ b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java @@ -12,7 +12,7 @@ public class TestResource implements RestService { @Inject - private Service service; + Service service; @Context private UriInfo uri; diff --git a/extensions/smallrye-opentracing/pom.xml b/extensions/smallrye-opentracing/pom.xml index a5b27e4b7cecd..97b1025357d86 100644 --- a/extensions/smallrye-opentracing/pom.xml +++ b/extensions/smallrye-opentracing/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-opentracing/runtime/pom.xml b/extensions/smallrye-opentracing/runtime/pom.xml index a7061ab8ab3c4..aeda18a741db5 100644 --- a/extensions/smallrye-opentracing/runtime/pom.xml +++ b/extensions/smallrye-opentracing/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java index 69f9def30ae30..47949a72921f6 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.opentracing.runtime; import java.util.Optional; diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java index d6fb988c63256..4688038b76f22 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.opentracing.runtime; import javax.enterprise.context.ApplicationScoped; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/EmitterBuildItem.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/EmitterBuildItem.java index a4ae5c49b5f02..577c17008ab55 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/EmitterBuildItem.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/EmitterBuildItem.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.reactivemessaging.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/MediatorBuildItem.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/MediatorBuildItem.java index b83ed42e0723c..d04db2aee71d5 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/MediatorBuildItem.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/MediatorBuildItem.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.reactivemessaging.deployment; import org.jboss.jandex.MethodInfo; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java index 329d61c2f51d6..f9b36a1de987b 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.smallrye.reactivemessaging.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; diff --git a/extensions/smallrye-rest-client/deployment/pom.xml b/extensions/smallrye-rest-client/deployment/pom.xml index 8302a114d2d2a..dc3bf54656041 100644 --- a/extensions/smallrye-rest-client/deployment/pom.xml +++ b/extensions/smallrye-rest-client/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-rest-client/deployment/src/main/java/io/quarkus/smallrye/restclient/deployment/SmallRyeRestClientProcessor.java b/extensions/smallrye-rest-client/deployment/src/main/java/io/quarkus/smallrye/restclient/deployment/SmallRyeRestClientProcessor.java index a116c46b4f30a..3cf1dd946ed3c 100644 --- a/extensions/smallrye-rest-client/deployment/src/main/java/io/quarkus/smallrye/restclient/deployment/SmallRyeRestClientProcessor.java +++ b/extensions/smallrye-rest-client/deployment/src/main/java/io/quarkus/smallrye/restclient/deployment/SmallRyeRestClientProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.deployment; import java.lang.reflect.Modifier; diff --git a/extensions/smallrye-rest-client/pom.xml b/extensions/smallrye-rest-client/pom.xml index 66f93c46eb50d..13c8060ab4a58 100644 --- a/extensions/smallrye-rest-client/pom.xml +++ b/extensions/smallrye-rest-client/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-rest-client/runtime/pom.xml b/extensions/smallrye-rest-client/runtime/pom.xml index 99476adf19fea..1e1315c9a5fbc 100644 --- a/extensions/smallrye-rest-client/runtime/pom.xml +++ b/extensions/smallrye-rest-client/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/BuilderResolver.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/BuilderResolver.java index 688a08ce2b010..645a159a2afe5 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/BuilderResolver.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/BuilderResolver.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ClientHeadersRequestFilter.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ClientHeadersRequestFilter.java index f0ff53f0db0ab..b1cd7b90dd7be 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ClientHeadersRequestFilter.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ClientHeadersRequestFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import static io.smallrye.restclient.utils.ListCastUtils.castToListOfStrings; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/IncomingHeadersProvider.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/IncomingHeadersProvider.java index 44e955ed4ad0f..c204881d743e7 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/IncomingHeadersProvider.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/IncomingHeadersProvider.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import javax.ws.rs.core.MultivaluedHashMap; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ProxyInvocationHandler.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ProxyInvocationHandler.java index aceb482c8e5bc..1da8b9e7bf14e 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ProxyInvocationHandler.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/ProxyInvocationHandler.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import java.lang.annotation.Annotation; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBase.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBase.java index 838c3a2941df0..a284030975f90 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBase.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBase.java @@ -1,23 +1,8 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import java.net.MalformedURLException; import java.net.URL; +import java.util.Optional; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; @@ -25,7 +10,9 @@ public class RestClientBase { - public static final String REST_URL_FORMAT = "%s/mp-rest/url"; + private static final String MP_REST = "mp-rest"; + public static final String REST_URL_FORMAT = "%s/" + MP_REST + "/url"; + public static final String REST_URI_FORMAT = "%s/" + MP_REST + "/uri"; private final Class proxyType; private final String baseUriFromAnnotation; @@ -55,10 +42,19 @@ public Object create() { } private String getBaseUrl() { - if ((baseUriFromAnnotation == null) || baseUriFromAnnotation.isEmpty()) { - String property = String.format(REST_URL_FORMAT, proxyType.getName()); - return config.getValue(property, String.class); + String propertyName = String.format(REST_URI_FORMAT, proxyType.getName()); + Optional propertyOptional = config.getOptionalValue(propertyName, String.class); + if (!propertyOptional.isPresent()) { + propertyName = String.format(REST_URL_FORMAT, proxyType.getName()); + propertyOptional = config.getOptionalValue(propertyName, String.class); + } + if (((baseUriFromAnnotation == null) || baseUriFromAnnotation.isEmpty()) + && !propertyOptional.isPresent()) { + throw new IllegalArgumentException( + String.format( + "Unable to determine the proper baseUrl/baseUri. Consider registering using @RegisterRestClient(baseUri=\"someuri\"), or by adding '%s' to your Quarkus configuration", + propertyName)); } - return baseUriFromAnnotation; + return propertyOptional.orElse(baseUriFromAnnotation); } } diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBuilderImpl.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBuilderImpl.java index 8155def7b75ea..9cba33d9bae2b 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBuilderImpl.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/RestClientBuilderImpl.java @@ -1,18 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import java.lang.annotation.Annotation; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/SmallRyeRestClientTemplate.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/SmallRyeRestClientTemplate.java index 422d03fab6d63..0cb697925f56b 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/SmallRyeRestClientTemplate.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/SmallRyeRestClientTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime; import java.util.Set; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ClientBuilderReplacement.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ClientBuilderReplacement.java index 8793799758294..1d3830b4ccf29 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ClientBuilderReplacement.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ClientBuilderReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime.graal; import javax.ws.rs.client.ClientBuilder; diff --git a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ComputedHeaderValueFillerReplacement.java b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ComputedHeaderValueFillerReplacement.java index d8f2b14123fa6..4b080928f06d5 100644 --- a/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ComputedHeaderValueFillerReplacement.java +++ b/extensions/smallrye-rest-client/runtime/src/main/java/io/quarkus/smallrye/restclient/runtime/graal/ComputedHeaderValueFillerReplacement.java @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2019 Red Hat, Inc. - * - * Red Hat 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 - * - * 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 io.quarkus.smallrye.restclient.runtime.graal; import java.lang.invoke.MethodHandle; diff --git a/extensions/spring-di/deployment/pom.xml b/extensions/spring-di/deployment/pom.xml index 20272ee330106..91701b667d982 100644 --- a/extensions/spring-di/deployment/pom.xml +++ b/extensions/spring-di/deployment/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java b/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java index 1aa9c9ed62c17..f5842469cdaa4 100644 --- a/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java +++ b/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.spring.di.deployment; import static org.jboss.jandex.AnnotationInstance.create; @@ -44,6 +28,7 @@ import io.quarkus.arc.deployment.AdditionalStereotypeBuildItem; import io.quarkus.arc.deployment.AnnotationsTransformerBuildItem; import io.quarkus.arc.deployment.BeanArchiveIndexBuildItem; +import io.quarkus.arc.processor.BuildExtension; import io.quarkus.arc.processor.BuiltinScope; import io.quarkus.arc.processor.DotNames; import io.quarkus.arc.processor.Transformation; @@ -123,7 +108,8 @@ AnnotationsTransformerBuildItem beanTransformer( return; } final AnnotationTarget target = context.getTarget(); - final Set annotationsToAdd = getAnnotationsToAdd(target, scopes); + final Set annotationsToAdd = getAnnotationsToAdd(target, scopes, context + .get(BuildExtension.Key.SCOPES).stream().map(item -> item.getDotName()).collect(Collectors.toList())); if (!annotationsToAdd.isEmpty()) { final Transformation transform = context.transform(); for (AnnotationInstance annotationInstance : annotationsToAdd) { @@ -253,7 +239,10 @@ private void visitAnnotation(final DotName clazz, final IndexView index, final M */ Set getAnnotationsToAdd( final AnnotationTarget target, - final Map> stereotypeScopes) { + final Map> stereotypeScopes, + final List allArcScopes) { + List arcScopes = allArcScopes != null ? allArcScopes + : Arrays.stream(BuiltinScope.values()).map(i -> i.getName()).collect(Collectors.toList()); final Set stereotypes = stereotypeScopes.keySet(); final Set annotationsToAdd = new HashSet<>(); @@ -268,7 +257,7 @@ Set getAnnotationsToAdd( for (AnnotationInstance instance : classInfo.classAnnotations()) { // make sure that we don't mix and match Spring and CDI annotations since this can cause a lot of problems - if (BuiltinScope.from(instance.name()) != null) { + if (arcScopes.contains(instance.name())) { return annotationsToAdd; } } diff --git a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java index d961389d970c9..f7269e5eb8964 100644 --- a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java +++ b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.spring.di.deployment; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -86,13 +71,13 @@ public void getAnnotationsToAddConflictingScopesThrow() { Assertions.assertThrows(DefinitionException.class, () -> { final ClassInfo target = index.getClassByName(DotName.createSimple(ConflictBean.class.getName())); - processor.getAnnotationsToAdd(target, scopes); + processor.getAnnotationsToAdd(target, scopes, null); }); Assertions.assertThrows(DefinitionException.class, () -> { final ClassInfo target = index .getClassByName(DotName.createSimple(ConflictStereotypeBean.class.getName())); - processor.getAnnotationsToAdd(target, scopes); + processor.getAnnotationsToAdd(target, scopes, null); }); } @@ -102,7 +87,7 @@ public void getAnnotationsToAddExplicitScopeOnConflictWorks() { final ClassInfo target = index .getClassByName(DotName.createSimple(OverrideConflictStereotypeBean.class.getName())); - final Set ret = processor.getAnnotationsToAdd(target, scopes); + final Set ret = processor.getAnnotationsToAdd(target, scopes, null); final Set expected = setOf( AnnotationInstance.create(DotName.createSimple(ApplicationScoped.class.getName()), target, @@ -115,7 +100,7 @@ public void getAnnotationsToAdd() { final Map> scopes = processor.getStereotypeScopes(index); final ClassInfo target = index.getClassByName(DotName.createSimple(RequestBean.class.getName())); - final Set ret = processor.getAnnotationsToAdd(target, scopes); + final Set ret = processor.getAnnotationsToAdd(target, scopes, null); final Set expected = setOf( AnnotationInstance.create(DotName.createSimple(RequestScoped.class.getName()), target, @@ -128,7 +113,7 @@ public void getAnnotationsToAddDefaultsToSingleton() { final Map> scopes = processor.getStereotypeScopes(index); final ClassInfo target = index.getClassByName(DotName.createSimple(UndeclaredBean.class.getName())); - final Set ret = processor.getAnnotationsToAdd(target, scopes); + final Set ret = processor.getAnnotationsToAdd(target, scopes, null); final Set expected = setOf( AnnotationInstance.create(DotName.createSimple(Singleton.class.getName()), target, @@ -141,7 +126,7 @@ public void getAnnotationsToAddNamed() { final Map> scopes = processor.getStereotypeScopes(index); final ClassInfo target = index.getClassByName(DotName.createSimple(NamedBean.class.getName())); - final Set ret = processor.getAnnotationsToAdd(target, scopes); + final Set ret = processor.getAnnotationsToAdd(target, scopes, null); final Set expected = setOf( AnnotationInstance.create(DotName.createSimple(Singleton.class.getName()), target, @@ -157,7 +142,7 @@ public void getAnnotationsToAddMultipleNamesThrows() { final ClassInfo target = index.getClassByName(DotName.createSimple(ConflictNamedBean.class.getName())); Assertions.assertThrows(DefinitionException.class, () -> { - processor.getAnnotationsToAdd(target, scopes); + processor.getAnnotationsToAdd(target, scopes, null); }); } diff --git a/extensions/spring-di/pom.xml b/extensions/spring-di/pom.xml index c6e31733373a8..b0e9d4fab6e23 100644 --- a/extensions/spring-di/pom.xml +++ b/extensions/spring-di/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/spring-di/runtime/pom.xml b/extensions/spring-di/runtime/pom.xml index 86bbe436a291b..a0e766cc9901b 100644 --- a/extensions/spring-di/runtime/pom.xml +++ b/extensions/spring-di/runtime/pom.xml @@ -1,19 +1,4 @@ - diff --git a/extensions/undertow-websockets/deployment/pom.xml b/extensions/undertow-websockets/deployment/pom.xml index 2bd4c65fcbfb7..df5c0a559bb9a 100644 --- a/extensions/undertow-websockets/deployment/pom.xml +++ b/extensions/undertow-websockets/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/undertow-websockets/deployment/src/main/java/io/quarkus/undertow/websockets/deployment/UndertowWebsocketProcessor.java b/extensions/undertow-websockets/deployment/src/main/java/io/quarkus/undertow/websockets/deployment/UndertowWebsocketProcessor.java index 72f779d13dadf..8629a78b7ed09 100644 --- a/extensions/undertow-websockets/deployment/src/main/java/io/quarkus/undertow/websockets/deployment/UndertowWebsocketProcessor.java +++ b/extensions/undertow-websockets/deployment/src/main/java/io/quarkus/undertow/websockets/deployment/UndertowWebsocketProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.websockets.deployment; import java.lang.reflect.Modifier; diff --git a/extensions/undertow-websockets/pom.xml b/extensions/undertow-websockets/pom.xml index 8abf62219ee8e..2f24d50e342a4 100644 --- a/extensions/undertow-websockets/pom.xml +++ b/extensions/undertow-websockets/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/undertow-websockets/runtime/pom.xml b/extensions/undertow-websockets/runtime/pom.xml index f9f1ff9537ccd..30ddd7254b191 100644 --- a/extensions/undertow-websockets/runtime/pom.xml +++ b/extensions/undertow-websockets/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/UndertowWebsocketTemplate.java b/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/UndertowWebsocketTemplate.java index b98c5cb8b0fea..5fb175633d77b 100644 --- a/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/UndertowWebsocketTemplate.java +++ b/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/UndertowWebsocketTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.websockets.runtime; import java.util.HashSet; diff --git a/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/WorkerSupplier.java b/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/WorkerSupplier.java index 9aa8455dec307..54a7dfee0a975 100644 --- a/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/WorkerSupplier.java +++ b/extensions/undertow-websockets/runtime/src/main/java/io/quarkus/undertow/websockets/runtime/WorkerSupplier.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.websockets.runtime; import java.util.function.Supplier; diff --git a/extensions/undertow/deployment/pom.xml b/extensions/undertow/deployment/pom.xml index 39020530ee4fc..42d4400e69647 100644 --- a/extensions/undertow/deployment/pom.xml +++ b/extensions/undertow/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java index 0c4cb8e2cb8df..138bb1aa15631 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import java.util.ArrayList; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/GeneratedWebResourceBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/GeneratedWebResourceBuildItem.java index c52f45647d1af..4c716d95785dd 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/GeneratedWebResourceBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/GeneratedWebResourceBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/HttpHandlerWrapperBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/HttpHandlerWrapperBuildItem.java index 970fadae1a67c..cfbf419c9ce8c 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/HttpHandlerWrapperBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/HttpHandlerWrapperBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ListenerBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ListenerBuildItem.java index 10f6f3c1fd665..42e19cfe3021b 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ListenerBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ListenerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java index 3a433e9766eee..7452477eddc15 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import java.util.ArrayList; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContainerInitializerBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContainerInitializerBuildItem.java index 20aaa14ece496..6e8185baf1620 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContainerInitializerBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContainerInitializerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import java.util.Set; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContextAttributeBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContextAttributeBuildItem.java index 14a47c9a828b7..608c70c3e9330 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContextAttributeBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletContextAttributeBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletDeploymentManagerBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletDeploymentManagerBuildItem.java index 74121221df299..47391f3fd4549 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletDeploymentManagerBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletDeploymentManagerBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletExtensionBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletExtensionBuildItem.java index ddb866f4ea14f..d3924ee3ebcae 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletExtensionBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletExtensionBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletInitParamBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletInitParamBuildItem.java index 23d59058a4e7b..f2eb4893930ed 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletInitParamBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletInitParamBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowArcIntegrationBuildStep.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowArcIntegrationBuildStep.java index 65f5d3f780e81..4c285872bfc3a 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowArcIntegrationBuildStep.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowArcIntegrationBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.arc.deployment.BeanContainerBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildItem.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildItem.java index 2df29decd845e..cc4ba87610a31 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildItem.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildItem.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.builder.item.SimpleBuildItem; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java index 76ed2927d5a01..5abee6e87736e 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import static io.quarkus.deployment.annotations.ExecutionTime.RUNTIME_INIT; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowLogFilterBuildStep.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowLogFilterBuildStep.java index 950e3d1d62fa2..20176fa99ee66 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowLogFilterBuildStep.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowLogFilterBuildStep.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.deployment; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java index a85dfdad0d687..ab7cd800d495d 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import java.io.IOException; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java index 67d29af4cf44a..b2d149b773b59 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import javax.servlet.ServletContextEvent; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationServletTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationServletTestCase.java index ef18be627314a..34bc2957c9e0e 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationServletTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationServletTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.is; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationWithWebXmlTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationWithWebXmlTestCase.java index bb53244127515..91a2c9507fc10 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationWithWebXmlTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotationWithWebXmlTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.containsString; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSDisabledServletTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSDisabledServletTestCase.java index b9c754a883e64..d6cbde6687fd6 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSDisabledServletTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSDisabledServletTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static io.restassured.RestAssured.given; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSFullConfigServletTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSFullConfigServletTestCase.java index 363707686e4ac..40b470acc0ead 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSFullConfigServletTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSFullConfigServletTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static io.restassured.RestAssured.given; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSServletTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSServletTestCase.java index e5af3a9c64379..4cf4c91765549 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSServletTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/CORSServletTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static io.restassured.RestAssured.given; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java index c43facba90c39..23a47380c7b5d 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import java.io.IOException; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java index ca6580095ef0a..4e0f3f4a5480e 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.is; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletDestroyTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletDestroyTestCase.java index 794217baf3739..09a35f86e7eb9 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletDestroyTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletDestroyTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.is; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletEmptyWebXmlTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletEmptyWebXmlTestCase.java index 27983e108caa1..e5946088ff973 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletEmptyWebXmlTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletEmptyWebXmlTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlMergingTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlMergingTestCase.java index 14d62a9e784a7..699584a549740 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlMergingTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlMergingTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.is; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlTestCase.java index 44879a419222b..61621b36b4365 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebFragmentXmlTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.is; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebXmlTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebXmlTestCase.java index 25c4fb50c7a06..66824b42d28a3 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebXmlTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletWebXmlTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import static org.hamcrest.Matchers.is; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java index f38ec00687fca..aba4f2ef2d297 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import java.io.IOException; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java index 479d3b5f36e7f..b9a78c46a517b 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import java.io.IOException; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java index 69187290a7c56..94fd87226714f 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import javax.servlet.ServletContextEvent; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java index dfdd68065bc8b..264a1761b2717 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test; import java.io.IOException; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/SessionContextTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/SessionContextTestCase.java index 0e20c1e64c31d..d3586e99fae4d 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/SessionContextTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/SessionContextTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.test.sessioncontext; import static io.restassured.RestAssured.given; diff --git a/extensions/undertow/pom.xml b/extensions/undertow/pom.xml index 6e3d159640021..dd69eff0cd85e 100644 --- a/extensions/undertow/pom.xml +++ b/extensions/undertow/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/undertow/runtime/pom.xml b/extensions/undertow/runtime/pom.xml index 473635333d98b..040be2c74b619 100644 --- a/extensions/undertow/runtime/pom.xml +++ b/extensions/undertow/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpBuildConfig.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpBuildConfig.java index b788b9e1c8385..b399b4c329dc7 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpBuildConfig.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpBuildConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import io.quarkus.runtime.annotations.ConfigItem; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpConfig.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpConfig.java index b242e9803b577..5f4aa286fd983 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpConfig.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpConfig.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import java.util.OptionalInt; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java index a5c117154af62..8a400a0bf39eb 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import java.io.File; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusInstanceFactory.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusInstanceFactory.java index a83a6410e67a4..6252ea6b45584 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusInstanceFactory.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusInstanceFactory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import io.quarkus.arc.runtime.BeanContainer; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoProxy.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoProxy.java index a5c7afed57aeb..6e53ade481f34 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoProxy.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoProxy.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import java.util.ArrayList; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoSubstitution.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoSubstitution.java index 57d710896f74c..8a0ddfcc9f15a 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoSubstitution.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletSecurityInfoSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import io.quarkus.runtime.ObjectSubstitution; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentTemplate.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentTemplate.java index 2f571ec62d90e..6cc2de8c310bc 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentTemplate.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime; import java.io.IOException; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSConfig.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSConfig.java index c08d9dace22e9..3a40c50a9963f 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSConfig.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSConfig.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.filters; import java.util.Optional; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSFilter.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSFilter.java index 6252618dfd47f..d267fe7b1309d 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSFilter.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSFilter.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.filters; import java.io.IOException; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSTemplate.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSTemplate.java index 4dd5db0d2b508..674fa46048042 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSTemplate.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/filters/CORSTemplate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.filters; import javax.servlet.DispatcherType; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ALPNManagerSubstitution.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ALPNManagerSubstitution.java index 0ac08b4340f8b..91794a921be36 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ALPNManagerSubstitution.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ALPNManagerSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.graal; import javax.net.ssl.SSLEngine; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ChannelsSubstitution.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ChannelsSubstitution.java index 478451a3fab62..c945c92e127b8 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ChannelsSubstitution.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/ChannelsSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.graal; import java.io.IOException; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/URLResourceSubstitution.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/URLResourceSubstitution.java index 85af0713b6048..09279327a7ff0 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/URLResourceSubstitution.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/URLResourceSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.graal; import java.io.IOException; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/XnioSubstitution.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/XnioSubstitution.java index 178f5bd1d9bf4..13d31c0d7129d 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/XnioSubstitution.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/graal/XnioSubstitution.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.undertow.runtime.graal; import java.io.Closeable; diff --git a/extensions/vertx-web/deployment/pom.xml b/extensions/vertx-web/deployment/pom.xml index 1e13046ca2738..54dbd42ef26f8 100644 --- a/extensions/vertx-web/deployment/pom.xml +++ b/extensions/vertx-web/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/vertx-web/pom.xml b/extensions/vertx-web/pom.xml index bd5afd10598f6..7f1634349eeff 100644 --- a/extensions/vertx-web/pom.xml +++ b/extensions/vertx-web/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/vertx-web/runtime/pom.xml b/extensions/vertx-web/runtime/pom.xml index be8a09f1df4d3..7be6cc63ae287 100644 --- a/extensions/vertx-web/runtime/pom.xml +++ b/extensions/vertx-web/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/vertx-web/runtime/src/main/java/io/quarkus/vertx/web/runtime/VertxHttpConfiguration.java b/extensions/vertx-web/runtime/src/main/java/io/quarkus/vertx/web/runtime/VertxHttpConfiguration.java index ca529f8ccd4f6..3728e5cc3fda4 100644 --- a/extensions/vertx-web/runtime/src/main/java/io/quarkus/vertx/web/runtime/VertxHttpConfiguration.java +++ b/extensions/vertx-web/runtime/src/main/java/io/quarkus/vertx/web/runtime/VertxHttpConfiguration.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx.web.runtime; import io.quarkus.runtime.LaunchMode; diff --git a/extensions/vertx/deployment/pom.xml b/extensions/vertx/deployment/pom.xml index 6e12165291cde..ddb96714ba8bc 100644 --- a/extensions/vertx/deployment/pom.xml +++ b/extensions/vertx/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java b/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java index a18cb3725ab3b..6a7b3a9468287 100644 --- a/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java +++ b/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx.deployment; import java.lang.annotation.Annotation; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerFailureTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerFailureTest.java index bee04f4a431bb..913d468d3156e 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerFailureTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerFailureTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.vertx; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerMethodTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerMethodTest.java index 9e8b135a0ac69..2852b221fbb38 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerMethodTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MessageConsumerMethodTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxProducerTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxProducerTest.java index 3faddb65e7823..6fcc67ce4e60d 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxProducerTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxProducerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx; import java.io.File; diff --git a/extensions/vertx/pom.xml b/extensions/vertx/pom.xml index 1c4144bc2b5d0..de795aa5d2937 100644 --- a/extensions/vertx/pom.xml +++ b/extensions/vertx/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/vertx/runtime/pom.xml b/extensions/vertx/runtime/pom.xml index 3a87d31102c64..6ec7a2ff3045b 100644 --- a/extensions/vertx/runtime/pom.xml +++ b/extensions/vertx/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/EventConsumerInvoker.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/EventConsumerInvoker.java index 00426193af56a..0ae8b262f0016 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/EventConsumerInvoker.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/EventConsumerInvoker.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx.runtime; import io.quarkus.vertx.ConsumeEvent; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayReader.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayReader.java index 60d88ab55fa73..11d43328de50e 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayReader.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayReader.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.vertx.runtime; import java.io.ByteArrayOutputStream; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayWriter.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayWriter.java index 54cf8b54f37b6..056f975eb4343 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayWriter.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonArrayWriter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.vertx.runtime; import java.io.IOException; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectReader.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectReader.java index c943d6ab3e064..c01a1c7ddc6a7 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectReader.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectReader.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.vertx.runtime; import java.io.ByteArrayOutputStream; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectWriter.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectWriter.java index 69178581e64b7..e0abea8983568 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectWriter.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/JsonObjectWriter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.vertx.runtime; import java.io.IOException; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/JdkSubstitutions.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/JdkSubstitutions.java index cd199a7a7e760..b6dbaebc198e1 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/JdkSubstitutions.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/JdkSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx.runtime.graal; import java.io.FileDescriptor; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/VertxSubstitutions.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/VertxSubstitutions.java index 11edb26e987ee..a732a86ea424f 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/VertxSubstitutions.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/graal/VertxSubstitutions.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.vertx.runtime.graal; import com.oracle.svm.core.annotate.Substitute; diff --git a/independent-projects/arc/pom.xml b/independent-projects/arc/pom.xml index 9909e3b3733d4..b085ede927e41 100644 --- a/independent-projects/arc/pom.xml +++ b/independent-projects/arc/pom.xml @@ -1,19 +1,4 @@ - diff --git a/independent-projects/arc/processor/pom.xml b/independent-projects/arc/processor/pom.xml index 698eda8656ae8..d214620a79a7e 100644 --- a/independent-projects/arc/processor/pom.xml +++ b/independent-projects/arc/processor/pom.xml @@ -1,19 +1,4 @@ - diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AbstractGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AbstractGenerator.java index 3179ddd2089dc..e29f8dc621921 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AbstractGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AbstractGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.Arc; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralGenerator.java index 4c8fd622a36e3..1f5ee3cb1dbd6 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_FINAL; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralProcessor.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralProcessor.java index 8c6d0436b8803..e9d3ce6a61b83 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralProcessor.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.ComputingCache; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java index 7d4d410b11bd2..95546c919b2bc 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.AnnotationsTransformer.TransformationContext; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Annotations.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Annotations.java index c9238a28372f9..0c2edd5a54aef 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Annotations.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Annotations.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.Collection; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationsTransformer.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationsTransformer.java index 7f354097a4a02..7d02597538a83 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationsTransformer.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationsTransformer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.Collection; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java index 9856936545aa4..a3055ac07e5bf 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.BeanCreator; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDefiningAnnotation.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDefiningAnnotation.java index 562854c014755..c4d01cce4c0db 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDefiningAnnotation.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDefiningAnnotation.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java index 333de8fd6cdd1..0caa53cb013c0 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.BeanDeploymentValidator.ValidationContext; @@ -26,6 +10,7 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Modifier; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -129,6 +114,12 @@ public class BeanDeployment { customContexts = new HashMap<>(); registerCustomContexts(contextRegistrars, beanDefiningAnnotations, buildContext); + if (buildContext != null) { + List allScopes = Arrays.stream(BuiltinScope.values()).map(i -> i.getInfo()).collect(Collectors.toList()); + allScopes.addAll(customContexts.keySet()); + buildContext.putInternal(Key.SCOPES.asString(), Collections.unmodifiableList(allScopes)); + } + this.qualifiers = findQualifiers(index); this.interceptorBindings = findInterceptorBindings(index); this.transitiveInterceptorBindings = findTransitiveInterceptorBindigs(interceptorBindings.keySet(), index, @@ -146,6 +137,9 @@ public class BeanDeployment { buildContext.putInternal(Key.INJECTION_POINTS.asString(), Collections.unmodifiableList(injectionPoints)); buildContext.putInternal(Key.OBSERVERS.asString(), Collections.unmodifiableList(observers)); buildContext.putInternal(Key.BEANS.asString(), Collections.unmodifiableList(beans)); + buildContext.putInternal(Key.QUALIFIERS.asString(), Collections.unmodifiableMap(qualifiers)); + buildContext.putInternal(Key.INTERCEPTOR_BINDINGS.asString(), Collections.unmodifiableMap(interceptorBindings)); + buildContext.putInternal(Key.STEREOTYPES.asString(), Collections.unmodifiableMap(stereotypes)); } registerSyntheticBeans(beanRegistrars, buildContext); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java index efbfdf6926688..de975e4a1bd38 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.List; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java index 2f527cecf3419..466dc1792ee6b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_BRIDGE; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java index 8b5c18597fe16..506ee4f83c2c4 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.BeanDeploymentValidator.ValidationRule; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java index c06a27aea90c2..ab126343a4aea 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.BuildExtension.BuildContext; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanRegistrar.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanRegistrar.java index 7c471056fbe56..51fb9733806a3 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanRegistrar.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanRegistrar.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java index 1103d3bc2a066..5591fc8b8629b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static java.util.Collections.singletonList; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java index ea97e9058e4cb..7b35383ac73f4 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.InjectionPointInfo.TypeAndQualifiers; @@ -39,9 +23,12 @@ import org.jboss.jandex.MethodInfo; import org.jboss.jandex.Type; import org.jboss.jandex.Type.Kind; +import org.jboss.logging.Logger; final class Beans { + static final Logger LOGGER = Logger.getLogger(Beans.class); + private Beans() { } @@ -102,7 +89,12 @@ static BeanInfo createClassBean(ClassInfo beanClass, BeanDeployment beanDeployme } ScopeInfo scope; if (scopes.isEmpty()) { + // try to search stereotypes for scope scope = initStereotypeScope(stereotypes, beanClass); + // if that fails, try inheriting them + if (scope == null) { + scope = inheritScope(beanClass, beanDeployment); + } } else { scope = scopes.get(0); } @@ -122,6 +114,29 @@ static BeanInfo createClassBean(ClassInfo beanClass, BeanDeployment beanDeployme return bean; } + private static ScopeInfo inheritScope(ClassInfo beanClass, BeanDeployment beanDeployment) { + DotName superClassName = beanClass.superName(); + while (!superClassName.equals(DotNames.OBJECT)) { + ClassInfo classFromIndex = beanDeployment.getIndex().getClassByName(superClassName); + if (classFromIndex == null) { + // class not in index + LOGGER.warnf("Unable to determine scope for bean %s using inheritance because its super class " + + "%s is not part of Jandex index. Dependent scope will be used instead.", beanClass, superClassName); + return null; + } + for (AnnotationInstance annotation : beanDeployment.getAnnotationStore().getAnnotations(classFromIndex)) { + ScopeInfo scopeAnnotation = beanDeployment.getScope(annotation.name()); + if (scopeAnnotation != null && scopeAnnotation.declaresInherited()) { + // found some scope, return + return scopeAnnotation; + } + } + superClassName = classFromIndex.superName(); + } + // none found + return null; + } + /** * * @param producerMethod diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuildExtension.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuildExtension.java index 0acc0fab06b04..9eb2cf21a84f8 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuildExtension.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuildExtension.java @@ -1,22 +1,9 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.List; +import java.util.Map; +import org.jboss.jandex.ClassInfo; +import org.jboss.jandex.DotName; import org.jboss.jandex.IndexView; /** @@ -68,6 +55,10 @@ interface Key { static Key> BEANS = new SimpleKey<>(BUILT_IN_PREFIX + "beans"); static Key> OBSERVERS = new SimpleKey<>(BUILT_IN_PREFIX + "observers"); static Key ANNOTATION_STORE = new SimpleKey<>(BUILT_IN_PREFIX + "annotationStore"); + static Key> SCOPES = new SimpleKey<>(BUILT_IN_PREFIX + "scopes"); + static Key> QUALIFIERS = new SimpleKey<>(BUILT_IN_PREFIX + "qualifiers"); + static Key> INTERCEPTOR_BINDINGS = new SimpleKey<>(BUILT_IN_PREFIX + "interceptorBindings"); + static Key> STEREOTYPES = new SimpleKey<>(BUILT_IN_PREFIX + "stereotypes"); String asString(); } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java index 277478ee8b35b..7f2a3150ed649 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.BeanManagerProvider; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java index 67bf1aa406a48..41d25f94d1561 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.gizmo.BytecodeCreator; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ClientProxyGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ClientProxyGenerator.java index b2c276ddeec6a..65e681d76736d 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ClientProxyGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ClientProxyGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_FINAL; @@ -54,6 +38,9 @@ public class ClientProxyGenerator extends AbstractGenerator { static final String CLIENT_PROXY_SUFFIX = "_ClientProxy"; + static final String DELEGATE_METHOD_NAME = "arc$delegate"; + static final String GET_CONTEXTUAL_INSTANCE_METHOD_NAME = "getContextualInstance"; + private final Predicate applicationClassPredicate; public ClientProxyGenerator(Predicate applicationClassPredicate) { @@ -103,7 +90,6 @@ Collection generate(BeanInfo bean, String beanClassName, ReflectionReg for (MethodInfo method : getDelegatingMethods(bean)) { MethodDescriptor originalMethodDescriptor = MethodDescriptor.of(method); - MethodCreator forward = clientProxy.getMethodCreator(originalMethodDescriptor); // Exceptions @@ -116,9 +102,27 @@ Collection generate(BeanInfo bean, String beanClassName, ReflectionReg params[i] = forward.getMethodParam(i); } + if (!superClass.equals(Object.class.getName())) { + // Skip delegation if proxy is not constructed yet + // This check is unnecessary for producers that return an interface + // if(!this.bean == null) return super.foo() + BytecodeCreator notConstructed = forward + .ifNull(forward.readInstanceField(beanField.getFieldDescriptor(), forward.getThis())).trueBranch(); + if (Modifier.isAbstract(method.flags())) { + notConstructed.throwException(IllegalStateException.class, "Cannot delegate to an abstract method"); + } else { + MethodDescriptor superDescriptor = MethodDescriptor.ofMethod(superClass, method.name(), + method.returnType().name().toString(), + method.parameters().stream().map(p -> p.name().toString()).toArray()); + notConstructed.returnValue( + notConstructed.invokeSpecialMethod(superDescriptor, notConstructed.getThis(), params)); + } + } + ResultHandle delegate = forward .invokeVirtualMethod( - MethodDescriptor.ofMethod(generatedName, "delegate", DescriptorUtils.typeToString(providerType)), + MethodDescriptor.ofMethod(generatedName, DELEGATE_METHOD_NAME, + DescriptorUtils.typeToString(providerType)), forward.getThis()); ResultHandle ret; @@ -170,7 +174,8 @@ void createConstructor(ClassCreator clientProxy, String beanClassName, String su } void implementDelegate(ClassCreator clientProxy, String providerTypeName, FieldDescriptor beanField) { - MethodCreator creator = clientProxy.getMethodCreator("delegate", providerTypeName).setModifiers(Modifier.PRIVATE); + MethodCreator creator = clientProxy.getMethodCreator(DELEGATE_METHOD_NAME, providerTypeName) + .setModifiers(Modifier.PRIVATE); // Arc.container() ResultHandle container = creator.invokeStaticMethod(MethodDescriptors.ARC_CONTAINER); // bean.getScope() @@ -196,10 +201,11 @@ void implementDelegate(ClassCreator clientProxy, String providerTypeName, FieldD } void implementGetContextualInstance(ClassCreator clientProxy, String providerTypeName) { - MethodCreator creator = clientProxy.getMethodCreator("getContextualInstance", Object.class) + MethodCreator creator = clientProxy.getMethodCreator(GET_CONTEXTUAL_INSTANCE_METHOD_NAME, Object.class) .setModifiers(Modifier.PUBLIC); creator.returnValue( - creator.invokeVirtualMethod(MethodDescriptor.ofMethod(clientProxy.getClassName(), "delegate", providerTypeName), + creator.invokeVirtualMethod( + MethodDescriptor.ofMethod(clientProxy.getClassName(), DELEGATE_METHOD_NAME, providerTypeName), creator.getThis())); } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ComponentsProviderGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ComponentsProviderGenerator.java index 9662c762407e0..a55f7726a596d 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ComponentsProviderGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ComponentsProviderGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_PUBLIC; @@ -272,9 +256,7 @@ private void addBean(MethodCreator getComponents, ResultHandle beansResultHandle private boolean isDependency(BeanInfo bean, Map> beanToInjections) { for (Iterator>> iterator = beanToInjections.entrySet().iterator(); iterator.hasNext();) { Entry> entry = iterator.next(); - if (entry.getKey().equals(bean)) { - continue; - } else if (entry.getValue().contains(bean)) { + if (entry.getValue().contains(bean)) { return true; } } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java index 8a826725164a5..f97a84ceb9c5d 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.ContextCreator; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextRegistrar.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextRegistrar.java index 849461f74c9d9..36dac1c9e865c 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextRegistrar.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextRegistrar.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.InjectableContext; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DeploymentEnhancer.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DeploymentEnhancer.java index f5b31f90e9c2b..8c45ef21fd77a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DeploymentEnhancer.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DeploymentEnhancer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; /** diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java index 64383b71fdc4b..ce3c266546a9f 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.ArrayList; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java index dedfd4ade71e6..560ae96795387 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.ComputingCache; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Hashes.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Hashes.java index 974674eee07dd..f1f97f4b9f0f0 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Hashes.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Hashes.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.nio.charset.StandardCharsets; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java index 671da6a7b392d..1b5807c310a5a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.lang.reflect.Modifier; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java index fe68f060408ec..09d8bc411b9ca 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.ArrayList; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointModifier.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointModifier.java index 6f971413ee250..5f46647f00209 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointModifier.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointModifier.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.Collection; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointsTransformer.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointsTransformer.java index 0a0021a584deb..c8882e54ee80b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointsTransformer.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointsTransformer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java index 5541038b8a422..8593375d34ae9 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_FINAL; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java index 4eb6fb3459d61..ff87de8aa65ed 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.Collections; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java index aa651a5ea7a5f..4ee8eeb0a7422 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.ArrayList; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java index 37f77e2517427..d51d394301c4a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.HashSet; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java index 8403bde5852ab..2dec0ef2ddf82 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.Arc; @@ -115,7 +99,7 @@ final class MethodDescriptors { Class[].class, Object[].class); static final MethodDescriptor CLIENT_PROXY_GET_CONTEXTUAL_INSTANCE = MethodDescriptor.ofMethod(ClientProxy.class, - "getContextualInstance", Object.class); + ClientProxyGenerator.GET_CONTEXTUAL_INSTANCE_METHOD_NAME, Object.class); static final MethodDescriptor INJECTABLE_BEAN_DESTROY = MethodDescriptor.ofMethod(InjectableBean.class, "destroy", void.class, Object.class, diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java index f46d71f11107f..4da53eac51873 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java @@ -1,25 +1,8 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collection; -import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Map; @@ -80,14 +63,12 @@ static void addDelegatingMethods(IndexView index, ClassInfo classInfo, Map resolved = Collections.emptyMap(); addDelegatingMethods(index, interfaceClassInfo, methods); } } if (classInfo.superClassType() != null) { ClassInfo superClassInfo = index.getClassByName(classInfo.superName()); if (superClassInfo != null) { - Map resolved = Collections.emptyMap(); addDelegatingMethods(index, superClassInfo, methods); } } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java index b7cde5d186216..f82cb1911c890 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_FINAL; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java index 43433ecb4c50b..6f963af9c7fa7 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.ArrayList; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ReflectionRegistration.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ReflectionRegistration.java index 2083f543d7a92..894e061a5ec4d 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ReflectionRegistration.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ReflectionRegistration.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import org.jboss.jandex.FieldInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceClassOutput.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceClassOutput.java index 39c3869259020..6fc8a7111c44e 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceClassOutput.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceClassOutput.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.ResourceOutput.Resource; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceImpl.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceImpl.java index 431f2b8f79947..d8344274eda22 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceImpl.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.ResourceOutput.Resource; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceOutput.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceOutput.java index 7afd1cef3a32b..1b028eac927db 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceOutput.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ResourceOutput.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.io.File; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ScopeInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ScopeInfo.java index 0a4bd8785d1d2..df1e7ac920292 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ScopeInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ScopeInfo.java @@ -1,22 +1,7 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.lang.annotation.Annotation; +import java.lang.annotation.Inherited; import java.util.Objects; import org.jboss.jandex.DotName; @@ -26,9 +11,12 @@ public class ScopeInfo { private final boolean isNormal; + private boolean declaresInherited; + ScopeInfo(Class clazz, boolean isNormal) { this.dotName = DotName.createSimple(clazz.getName()); this.isNormal = isNormal; + declaresInherited = clazz.getAnnotation(Inherited.class) == null ? false : true; } public DotName getDotName() { @@ -39,6 +27,10 @@ public boolean isNormal() { return isNormal; } + public boolean declaresInherited() { + return declaresInherited; + } + @Override public int hashCode() { return Objects.hash(dotName); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeInfo.java index 43948434b958a..09a5c104234b6 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeInfo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.List; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java index 98d2a2aeb87b8..847b767a7eb3f 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.objectweb.asm.Opcodes.ACC_FINAL; @@ -36,6 +20,7 @@ import io.quarkus.gizmo.MethodDescriptor; import io.quarkus.gizmo.ResultHandle; import io.quarkus.gizmo.TryBlock; +import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -262,7 +247,8 @@ private void createForwardingMethod(ClassOutput classOutput, BeanInfo bean, Meth String providerTypeName, FieldDescriptor interceptorChainsField, FieldDescriptor methodsField, InterceptionInfo interceptedMethod) { - MethodCreator forwardMethod = subclass.getMethodCreator(MethodDescriptor.of(method)); + MethodDescriptor originalMethodDescriptor = MethodDescriptor.of(method); + MethodCreator forwardMethod = subclass.getMethodCreator(originalMethodDescriptor); // Params // Object[] params = new Object[] {p1} @@ -271,6 +257,23 @@ private void createForwardingMethod(ClassOutput classOutput, BeanInfo bean, Meth forwardMethod.writeArrayValue(paramsHandle, i, forwardMethod.getMethodParam(i)); } + // if(!this.bean == null) return super.foo() + BytecodeCreator notConstructed = forwardMethod + .ifNull(forwardMethod.readInstanceField(methodsField, forwardMethod.getThis())).trueBranch(); + ResultHandle[] params = new ResultHandle[method.parameters().size()]; + for (int i = 0; i < method.parameters().size(); ++i) { + params[i] = notConstructed.getMethodParam(i); + } + if (Modifier.isAbstract(method.flags())) { + notConstructed.throwException(IllegalStateException.class, "Cannot delegate to an abstract method"); + } else { + MethodDescriptor superDescriptor = MethodDescriptor.ofMethod(providerTypeName, method.name(), + method.returnType().name().toString(), + method.parameters().stream().map(p -> p.name().toString()).toArray()); + notConstructed.returnValue( + notConstructed.invokeSpecialMethod(superDescriptor, notConstructed.getThis(), params)); + } + // Forwarding function // Function forward = ctx -> super.foo((java.lang.String)ctx.getParameters()[0]) FunctionCreator func = forwardMethod.createFunction(Function.class); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Transformation.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Transformation.java index 7a7ebd461c190..f8c86f8d37e2a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Transformation.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Transformation.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.processor.AnnotationStore.TransformationContextImpl; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java index c2b1d261ccd3a..26b06e8065c66 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import io.quarkus.arc.GenericArrayTypeImpl; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/Basics.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/Basics.java index f009ef7820cf5..9ed9acfedbe80 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/Basics.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/Basics.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.io.IOException; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanGeneratorTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanGeneratorTest.java index bfcb745ce91d3..0c6170d5e76ab 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanGeneratorTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanGeneratorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoInjectionsTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoInjectionsTest.java index ededb348c853a..992a397082407 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoInjectionsTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoInjectionsTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoQualifiersTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoQualifiersTest.java index b1583d16af87e..413f2ff5122dd 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoQualifiersTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoQualifiersTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoTypesTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoTypesTest.java index 00f03c2aaef58..9a1852407d0d8 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoTypesTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/BeanInfoTypesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/ClientProxyGeneratorTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/ClientProxyGeneratorTest.java index 688fa02e85a06..be4711b9d85d9 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/ClientProxyGeneratorTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/ClientProxyGeneratorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/InterceptorGeneratorTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/InterceptorGeneratorTest.java index c5ffcb4208eba..f1c3c48478df5 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/InterceptorGeneratorTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/InterceptorGeneratorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassGeneratorTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassGeneratorTest.java index eb9e18909c98d..270525d936930 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassGeneratorTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassGeneratorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static io.quarkus.arc.processor.Basics.index; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TruePredicate.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TruePredicate.java index c8d079911c5e2..5eb7fee795f30 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TruePredicate.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TruePredicate.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import java.util.function.Predicate; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java index e6e69b816ae1d..8c37636b7df59 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java index 34cc072e087f1..78e8b78502421 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor.types; import java.util.List; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java index cec6261921063..241f1002b8cd8 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor.types; import java.util.List; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java index 70aebdbbe27db..b0f9839b0d7c2 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor.types; import java.util.AbstractList; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java index bfa6bc7c2873e..16b4349606e4f 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.processor.types; import static java.lang.annotation.ElementType.FIELD; diff --git a/independent-projects/arc/runtime/pom.xml b/independent-projects/arc/runtime/pom.xml index 3a4aa7e75cf1a..8355bb294a5fc 100644 --- a/independent-projects/arc/runtime/pom.xml +++ b/independent-projects/arc/runtime/pom.xml @@ -1,19 +1,4 @@ - diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AbstractSharedContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AbstractSharedContext.java index 9a3d68915f3ca..57da3ed092b20 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AbstractSharedContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AbstractSharedContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.ArrayList; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ActivateRequestContextInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ActivateRequestContextInterceptor.java index 7e07726b0b993..bab40ef8a60b4 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ActivateRequestContextInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ActivateRequestContextInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.annotation.Priority; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ApplicationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ApplicationContext.java index 5c1c2754f1b86..d32303d12d552 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ApplicationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ApplicationContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Arc.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Arc.java index 8a608fab3c89b..6112a7ea35e4a 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Arc.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Arc.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcCDIProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcCDIProvider.java index 166d5550fcf5c..70a1850fec360 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcCDIProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcCDIProvider.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java index 5e8165cb4ab58..317c567cffc15 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainerImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainerImpl.java index 9f7a19a1a313a..125cc0a7565a9 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainerImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainerImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import io.quarkus.arc.ArcCDIProvider.ArcCDI; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncEventDeliveryStage.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncEventDeliveryStage.java index 9b9b7dbe1d8ba..eb2c37bca27df 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncEventDeliveryStage.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncEventDeliveryStage.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.concurrent.CompletableFuture; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java index 722633318a1af..67a67c759aac5 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.Map; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java index e09b610fedcd3..f622c382e70c5 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.Map; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerImpl.java index 7fe2c8563166a..2006f89599a44 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerProvider.java index 15ca7385c65a9..934c8da1b7164 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanManagerProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.context.spi.CreationalContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanMetadataProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanMetadataProvider.java index ae686fe555a0f..1e40f6c25a30e 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanMetadataProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanMetadataProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.context.spi.CreationalContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanTypeAssignabilityRules.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanTypeAssignabilityRules.java index a3c89f561c3dd..a33490c8c8c8f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanTypeAssignabilityRules.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanTypeAssignabilityRules.java @@ -1,18 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.ParameterizedType; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ClientProxy.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ClientProxy.java index f0fd80f3b81dd..9dba1635d7b5b 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ClientProxy.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ClientProxy.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; /** diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java index 75432dde047ae..70a729b11ac64 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComponentsProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComponentsProvider.java index 06374a1726782..a5de4ab63c015 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComponentsProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComponentsProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; /** diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComputingCache.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComputingCache.java index b7d259a23646c..6b6d891ebb76c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComputingCache.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ComputingCache.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.Map; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextCreator.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextCreator.java index 72b1038e9ca45..cdd590104eedb 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextCreator.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextCreator.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.Map; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandleImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandleImpl.java index dedfe03b5a245..c9029d2ee378f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandleImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandleImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.context.spi.CreationalContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CovariantTypes.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CovariantTypes.java index cf9cffdcf9ff3..05a9379224adc 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CovariantTypes.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CovariantTypes.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.GenericArrayType; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CreationalContextImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CreationalContextImpl.java index c7b4c0bd40c93..1346a3a25150f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CreationalContextImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CreationalContextImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.ArrayList; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentInjectionPointProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentInjectionPointProvider.java index 0167909756a1b..679e05a2c52de 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentInjectionPointProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentInjectionPointProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventImpl.java index 42fb7353a5b1f..f3f9431ba8a3c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventObjectTypeResolverBuilder.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventObjectTypeResolverBuilder.java index a6c4593b01845..2af31199cc867 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventObjectTypeResolverBuilder.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventObjectTypeResolverBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.ParameterizedType; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventProvider.java index e7cabd6747380..c32bbe6e5ab90 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventTypeAssignabilityRules.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventTypeAssignabilityRules.java index ae30af687d465..5300e5559b0f9 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventTypeAssignabilityRules.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/EventTypeAssignabilityRules.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.ParameterizedType; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/GenericArrayTypeImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/GenericArrayTypeImpl.java index 34ef7c97465ea..b4c71f926051b 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/GenericArrayTypeImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/GenericArrayTypeImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.GenericArrayType; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/HierarchyDiscovery.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/HierarchyDiscovery.java index 5ac429b3dcdc1..94c20c768f8c0 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/HierarchyDiscovery.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/HierarchyDiscovery.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.Array; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InitializedInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InitializedInterceptor.java index 860cbcea328f8..936d4dadce545 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InitializedInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InitializedInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java index 0c2297265068f..735df62450d62 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java index 3ed5a17cf3bda..d88d64c7514a5 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.Collection; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java index aa7c294288f20..1fea3e9bb78e1 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.inject.spi.Interceptor; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java index 5b7fcb1bd5493..721599faf5bcd 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java index ec9c1f960bb76..fabf2583c7afc 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.context.spi.CreationalContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectionPointProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectionPointProvider.java index 1fda9831d0f8d..195728961d9ae 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectionPointProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectionPointProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.context.spi.CreationalContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java index cf4b057e1d149..ed421f38ee2d1 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import javax.enterprise.context.Dependent; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandleImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandleImpl.java index 48c2a389e8392..54e77a06baad5 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandleImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandleImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceImpl.java index 0eb3744a0537e..728e4e4eddf6a 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import io.quarkus.arc.CurrentInjectionPointProvider.InjectionPointImpl; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceProvider.java index 6605ccaa0bc40..44539b9d9ce5c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvariantTypes.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvariantTypes.java index e21c499400447..e3eacc031504b 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvariantTypes.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvariantTypes.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.GenericArrayType; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvocationContextImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvocationContextImpl.java index 62e9434fcc677..86aff56e70015 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvocationContextImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InvocationContextImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/LazyValue.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/LazyValue.java index fbeb4dd856ed6..fd922b6e1aa46 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/LazyValue.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/LazyValue.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.function.Supplier; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ManagedContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ManagedContext.java index 6b9aef35c74ee..b29c80c5469ea 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ManagedContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ManagedContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.util.Collection; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ParameterizedTypeImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ParameterizedTypeImpl.java index 4207acbbec4cd..214bfc27f520d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ParameterizedTypeImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ParameterizedTypeImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.io.Serializable; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Qualifiers.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Qualifiers.java index 026b757552947..b4d1bd250006c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Qualifiers.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Qualifiers.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Reflections.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Reflections.java index 36431dd2a7922..0b8d301b68d17 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Reflections.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Reflections.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.Constructor; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/RequestContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/RequestContext.java index f60902ae4fd3b..c8505036c6f55 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/RequestContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/RequestContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceProvider.java index 44b5c5d2d1a5b..c4070e5abb3be 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceReferenceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceReferenceProvider.java index 17b13d0d3ec9e..6482fe6b3fe93 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceReferenceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ResourceReferenceProvider.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/SingletonContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/SingletonContext.java index b80e763424672..c90acc28bd92f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/SingletonContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/SingletonContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Subclass.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Subclass.java index 065ee7128ce0d..d6be9d8302f6c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Subclass.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Subclass.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; /** diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeResolver.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeResolver.java index 9f851b3db110f..a38a9e19e9072 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeResolver.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeResolver.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.Array; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeVariableImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeVariableImpl.java index 69841d70ec92a..f8bee34be5c0a 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeVariableImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/TypeVariableImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.annotation.Annotation; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Types.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Types.java index 2919dc23e9ecb..e450024db6513 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Types.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Types.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.Array; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WildcardTypeImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WildcardTypeImpl.java index 6d033a1aa08b4..a541aecb3cf6c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WildcardTypeImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WildcardTypeImpl.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc; import java.lang.reflect.Type; diff --git a/independent-projects/arc/tests/pom.xml b/independent-projects/arc/tests/pom.xml index 32482751ef828..acdd59b49bd50 100644 --- a/independent-projects/arc/tests/pom.xml +++ b/independent-projects/arc/tests/pom.xml @@ -1,19 +1,4 @@ - diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/ArcTestContainer.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/ArcTestContainer.java index 00340a9de5d49..6e33615a0a3e6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/ArcTestContainer.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/ArcTestContainer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test; import io.quarkus.arc.Arc; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java index 19171c2666253..a11153d6fd23f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test; import static java.lang.annotation.ElementType.FIELD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java index 556dd25dc6b63..03d3ebd1ea090 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.alternatives; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java index 9fe7390edf364..10d5f4427bcc6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.alternatives; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java index 85eb93d2d922c..a5b9e69425c67 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.beanmanager; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java index f0023f1c45978..d7f2f1d5c0843 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.beanmanager; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java index 953abe88322c6..7f95ccafd6d42 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.beanmanager; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AddObservesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AddObservesTest.java index 297a7e3f2ce15..9d6aeebe4fde2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AddObservesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AddObservesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.annotations; import static org.junit.Assert.assertTrue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerInterceptorBindingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerInterceptorBindingTest.java index 4db8ce3bcb90a..cf5d17b023d1a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerInterceptorBindingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerInterceptorBindingTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.annotations; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerTest.java index e80414fa2027e..ce4d8d4f29b0e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/AnnotationsTransformerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.annotations; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/Simple.java index 09ca783271dad..a28478771e9dd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/Simple.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.annotations; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/SimpleInterceptor.java index 42cdaa3760a5d..59bcde427b36a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/annotations/SimpleInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.annotations; import javax.annotation.Priority; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/beans/BeanRegistrarTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/beans/BeanRegistrarTest.java index 0d832846d6a87..f6da6b496bdaf 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/beans/BeanRegistrarTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/beans/BeanRegistrarTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.beans; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/deployment/DeploymentEnhancerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/deployment/DeploymentEnhancerTest.java index a92b566cbbd9e..5c3c0f36b4404 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/deployment/DeploymentEnhancerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/deployment/DeploymentEnhancerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.deployment; import static org.junit.Assert.assertTrue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/validator/BeanDeploymentValidatorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/validator/BeanDeploymentValidatorTest.java index 865ee579aee68..65ec02af1ed2b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/validator/BeanDeploymentValidatorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/build/extension/validator/BeanDeploymentValidatorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.build.extension.validator; import static org.junit.Assert.assertTrue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java index 9bc2e90dd94e0..205d3d7b2f709 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.cdiprovider; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java index 963bd81a6785c..1f0968e79f617 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.clientproxy; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java index ba0aac8199ee4..6266dfc4e898a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.clientproxy; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java new file mode 100644 index 0000000000000..b4fd146238806 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java @@ -0,0 +1,41 @@ +package io.quarkus.arc.test.clientproxy.constructor; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.ClientProxy; +import io.quarkus.arc.test.ArcTestContainer; +import java.io.IOException; +import javax.enterprise.context.ApplicationScoped; +import org.junit.Rule; +import org.junit.Test; + +public class ClientProxyConstructorGuardTest { + + @Rule + public ArcTestContainer container = new ArcTestContainer(Moo.class); + + @Test + public void testProducer() throws IOException { + Moo moo = Arc.container().instance(Moo.class).get(); + assertTrue(moo instanceof ClientProxy); + assertEquals(10, ((Moo) ((ClientProxy) moo).getContextualInstance()).val); + } + + @ApplicationScoped + static class Moo { + + private int val; + + public Moo() { + init(); + } + + void init() { + val = 10; + } + + } + +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java index e541bf1d8f96c..a82b642f7bda6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.application; import static org.junit.Assert.assertTrue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java index b26a75eac5a94..d19c982b10ebd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.request; import java.util.UUID; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java index b1fc713dc1a25..e94ba36e7a9e9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.request; import javax.enterprise.context.ApplicationScoped; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java index 0a301742fbe63..19bf65093cc7b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.request; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java index ffc64800edf1b..4820471abab2a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.request.propagation; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java index 49e213c0d3610..66b941da07525 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.request.propagation; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java index 41022c6f42d0e..f3fb12dd7169b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.contexts.request.propagation; import java.util.UUID; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java new file mode 100644 index 0000000000000..31cc2f1c0db57 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java @@ -0,0 +1,73 @@ +package io.quarkus.arc.test.inheritance; + +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.PARAMETER; +import static java.lang.annotation.ElementType.TYPE; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.test.ArcTestContainer; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; +import java.util.Set; +import javax.enterprise.context.ApplicationScoped; +import javax.enterprise.context.RequestScoped; +import javax.enterprise.inject.Stereotype; +import javax.enterprise.inject.spi.Bean; +import javax.enterprise.inject.spi.BeanManager; +import org.junit.Assert; +import org.junit.Rule; +import org.junit.Test; + +public class ScopeInheritanceTest { + + @Rule + public ArcTestContainer container = new ArcTestContainer(SuperBean.class, SubBean.class, RequestScopedSubBean.class, + InheritedScopeSubBean.class, JustSomeBeanDefiningAnnotation.class); + + @Test + public void testScopeInheritanceIsTakenIntoAccount() { + // we'll use BM to verify scopes + BeanManager bm = Arc.container().beanManager(); + Set> beans = bm.getBeans(RequestScopedSubBean.class); + Assert.assertTrue(beans.size() == 1); + Assert.assertEquals(RequestScoped.class.getSimpleName(), beans.iterator().next().getScope().getSimpleName()); + beans = bm.getBeans(InheritedScopeSubBean.class); + Assert.assertTrue(beans.size() == 1); + Assert.assertEquals(ApplicationScoped.class.getSimpleName(), beans.iterator().next().getScope().getSimpleName()); + } + + @ApplicationScoped + static class SuperBean { + + public void ping() { + } + } + + // should inherit dependent + static class SubBean extends SuperBean { + + } + + @RequestScoped + // declares explicit scope, no inheritance + static class RequestScopedSubBean extends SubBean { + + } + + // should inherit scope + @JustSomeBeanDefiningAnnotation // just to add bean defining annotation to have it recognized + static class InheritedScopeSubBean extends SubBean { + + } + + @Stereotype + @Inherited + @Target({ TYPE, METHOD, FIELD, PARAMETER }) + @Retention(RUNTIME) + @interface JustSomeBeanDefiningAnnotation { + + } +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java index 0897cfbeb13cb..f9ee55b865fd8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.assignability; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java index 9f3b97e1218a5..bd431d29e2cbc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.assignability; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java index 7305e6195f066..76dfdc4c674d7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.constructornoinject; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java new file mode 100644 index 0000000000000..518843b1dbde5 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java @@ -0,0 +1,54 @@ +package io.quarkus.arc.test.injection.erroneous; + +import io.quarkus.arc.test.ArcTestContainer; +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.RuleChain; +import org.junit.rules.TestRule; +import org.junit.runner.Description; +import org.junit.runners.model.Statement; + +public class CircularInjectionNotSupportedTest { + + @Rule + public RuleChain chain = RuleChain.outerRule(new TestRule() { + @Override + public Statement apply(Statement base, Description description) { + return new Statement() { + @Override + public void evaluate() throws Throwable { + try { + base.evaluate(); + } catch (IllegalStateException e) { + // expected failure on ISE due to circular dependency + } + } + }; + } + }).around(new ArcTestContainer(Foo.class, AbstractServiceImpl.class, ActualServiceImpl.class)); + + @Test + public void testExceptionThrown() { + // throws exception during deployment + } + + static abstract class AbstractServiceImpl { + @Inject + protected Foo foo; + } + + @ApplicationScoped + static class ActualServiceImpl extends AbstractServiceImpl implements Foo { + + @Override + public void ping() { + } + } + + interface Foo { + void ping(); + } + +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java index 8c5e8d818fc06..fdc5256319221 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.privateconstructor; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java index 18157a0b3038e..b80a84d86e322 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.privatefield; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java index 42e2b0b1109ef..56d6adce0afc5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.privateinitializer; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java index 90e77ce603b56..4c0a609febd8e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.resource; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java index cf3226f1f3d41..6ecc5c8df0ac2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.superclass; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java index 45afbd135051d..1477c0b584ad4 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.injection.superclass.foo; import io.quarkus.arc.test.injection.superclass.SuperclassInjectionTest.Head; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java index 0f0d85c0ad5c8..c317171f9838b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.instance.destroy; import static org.junit.Assert.assertFalse; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java index a377af0b46003..9d0bcbd2d1d19 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.instance.frombean; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java index b46dbaa90384d..f8d6856d61867 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import java.util.concurrent.atomic.AtomicInteger; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java index ae7cc47b68154..b39f6c0b28803 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java index 502c393b2273f..4e3269b2110a8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import io.quarkus.arc.InvocationContextImpl; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java index 4ffb6d99a530e..8781d432b7008 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java index 83ae9db9b6abf..e65e92b2b6d0c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import java.util.concurrent.atomic.AtomicReference; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java index af301747c986e..a7e8659021681 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java index aed0b4d31193f..b7ccff5af421f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import javax.annotation.PostConstruct; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java index 4ff424336b333..e2a6b0b5195fd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import io.quarkus.arc.InvocationContextImpl; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptorTest.java index 52b09d62b4fb7..48507479c0807 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java index 094be9d7c0d69..261dfb639d413 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.aroundconstruct; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java index 5aa18c762ace8..c7c0beb97c6da 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.aroundconstruct; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java index 971174bf26b7a..33d31a4c2e8b3 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.aroundconstruct; import static java.lang.annotation.ElementType.TYPE; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java index a60e74b3e169c..7a746b8e473e8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.bindingdefaultvalue; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java index eeeac4536beb0..2b8ea3ee1734d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.bindingdefaultvalue; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java index f96e18d670cb0..c67ec3c47e52d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.bindings; import static org.junit.Assert.assertTrue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java index cea1d685d78c5..010ba136bb2fb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.bindings; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java new file mode 100644 index 0000000000000..07f69e041a723 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java @@ -0,0 +1,59 @@ +package io.quarkus.arc.test.interceptors.constructor; + +import static org.junit.Assert.assertEquals; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.test.ArcTestContainer; +import io.quarkus.arc.test.interceptors.Simple; +import java.io.IOException; +import javax.annotation.Priority; +import javax.inject.Singleton; +import javax.interceptor.AroundInvoke; +import javax.interceptor.Interceptor; +import javax.interceptor.InvocationContext; +import org.junit.Rule; +import org.junit.Test; + +public class SubclassConstructorGuardTest { + + @Rule + public ArcTestContainer container = new ArcTestContainer(Simple.class, SimpleBean.class, + SimpleInterceptor.class); + + @Test + public void testConstructorGuard() throws IOException { + assertEquals("foo::bar", Arc.container().instance(SimpleBean.class).get().foo()); + } + + @Simple + @Singleton + static class SimpleBean { + + private String val; + + public SimpleBean() { + init(); + } + + void init() { + this.val = "bar"; + } + + String foo() { + return val; + } + + } + + @Simple + @Priority(1) + @Interceptor + public static class SimpleInterceptor { + + @AroundInvoke + Object mySuperCoolAroundInvoke(InvocationContext ctx) throws Exception { + return "foo" + "::" + ctx.proceed(); + } + } + +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java index 1a3d2088e2982..6205fe93924f9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; import javax.enterprise.context.Dependent; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingCase.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingCase.java index 8ca60f2600331..ddf60346a8100 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingCase.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; public enum ExceptionHandlingCase { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java index 120d9d8c10c89..22b634a2a7818 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; import javax.annotation.Priority; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java index b1a4f9273007b..8c1d1be754658 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/InterceptorExceptionHandlingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/InterceptorExceptionHandlingTest.java index a14bd47e1c647..dfece4efaaf3a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/InterceptorExceptionHandlingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/InterceptorExceptionHandlingTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyDeclaredException.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyDeclaredException.java index 6b5c155cf8884..bcb6feb7d7498 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyDeclaredException.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyDeclaredException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; public class MyDeclaredException extends Exception { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyOtherException.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyOtherException.java index e3c998200f3e7..eca56e9e32c84 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyOtherException.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyOtherException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; public class MyOtherException extends Exception { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyRuntimeException.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyRuntimeException.java index 768727a9cc656..0d9564a19b429 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyRuntimeException.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/MyRuntimeException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.exceptionhandling; public class MyRuntimeException extends RuntimeException { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java index 1dabf8e19f8df..f46ec344ebd82 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.interceptors.privatemethod; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java index 2fc9f2c1f1f68..876307106564b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.metadata; import io.quarkus.arc.Arc; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java index 21fe825abf3da..65925953c3512 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.metadata; import javax.enterprise.context.Dependent; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java index ab60da7613ea9..7ec73283c2b8c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.metadata; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java index 4fa10b26a9251..47974c045b409 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.name; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java index 77bf989715f66..5d8fd8bee395f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.name; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java index 589e03330b339..6498279231777 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java index 08ca74fdeca07..e68b688b2c369 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java index ece01a0f3ae2f..6d3db294e47f7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java index eae403312345f..9c97353820d36 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.async; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java index 60266ea23ad5a..034a7ace807d0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.async; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java index 096cea0558383..2dbf9086997eb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.discovery; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java index 08e8db23002e8..385f926eb0800 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - - * - * 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 io.quarkus.arc.test.observers.ifexists; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java index 8889d024299e1..47132ca8dbc8d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.injection; import static org.junit.Assert.assertNotEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java index e9bb219c1eb53..b83d8e7a97207 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.metadata; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java index 4e7cadfe81861..dc6211f38b839 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.metadata; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java index 21139f6651fd5..a9825f87f2d7f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.observers.ordering; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java index a94b6b53bcc4f..a127a7269a0a3 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.async; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java index b7c9759d92fc7..6ee4a4783101d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.dependent; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java index f29d7e4131519..5640302dd7781 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.discovery; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java index d42aa827f6306..5a10e747cb7f0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.disposer; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java index bfccee507bdba..a02bef79242e0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.primitive; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java index 13a2929ae1b69..b27b339c5d1c8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.privatemember; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java index 73e896b2cc1fb..d19c867dfa4be 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.producer.privatemember; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java index 05c703c72d4c6..6ae741fe5c165 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.resolution; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java index 3adbc5441f116..91e76ca7b8807 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.resolution; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java index 85ea110f300ac..075a6b32d92a9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotypes; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java index b58456449722f..05c47fe1afc36 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotypes; import javax.annotation.Priority; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java index b2818622ea309..f64d9b2db91d5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotypes; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java index 939eadb8fefe6..d8b9bf91dbf79 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotypes; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java index 31a0d71c904a1..5b3ebe75b68f5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotypes; import static org.junit.Assert.assertTrue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java index b119ef25ecb36..0c7649d86e380 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.stereotypes; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java index 44e26054c17cc..b3c860c3fe1a9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.validation; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java index 7732f5cd74809..50af5f93924bc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.validation; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java index 2c579bd5c2641..dd433ed522f12 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.validation; import static org.junit.Assert.assertNotNull; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java index b443abe4a811f..d71dec60e40f2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.validation; import static java.lang.annotation.ElementType.METHOD; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java index ecb5ceda2017a..dba0728e1995a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.validation; import javax.annotation.Priority; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java index 65381de56ec00..ee603810cf61e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.arc.test.vetoed; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/bootstrap/core/pom.xml b/independent-projects/bootstrap/core/pom.xml index 18ba70eee3dfb..5ff9b9df2df5e 100644 --- a/independent-projects/bootstrap/core/pom.xml +++ b/independent-projects/bootstrap/core/pom.xml @@ -1,19 +1,4 @@ - diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapClassLoaderFactory.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapClassLoaderFactory.java index 70df5bc2047ed..aaa63b28dde16 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapClassLoaderFactory.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapClassLoaderFactory.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap; import java.io.BufferedReader; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapConstants.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapConstants.java index 44647f8db9d3e..022e2b0850a76 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapConstants.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapConstants.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapDependencyProcessingException.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapDependencyProcessingException.java index a6768e050bf9e..4d0e165b47fe2 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapDependencyProcessingException.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapDependencyProcessingException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapException.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapException.java index a7b7500d3e163..134761fae7a25 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapException.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifact.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifact.java index 765a22e78c2a0..5f146ad44f8c7 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifact.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifact.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.model; import java.nio.file.Path; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactCoords.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactCoords.java index cff48a6d09f5e..a1d780c0cff6a 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactCoords.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactCoords.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.model; import io.quarkus.bootstrap.BootstrapConstants; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactKey.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactKey.java index 22bb465f6b464..02014614a81c9 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactKey.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppArtifactKey.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.model; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppDependency.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppDependency.java index 22ec46c339009..13e6369c652b5 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppDependency.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppDependency.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.model; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppModel.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppModel.java index 58f6c3f5f9f0a..0ead21881cf6b 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppModel.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/model/AppModel.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.model; import java.util.ArrayList; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolver.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolver.java index b6a990235c47e..ed18361422f2b 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolver.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolver.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver; import java.nio.file.Path; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolverException.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolverException.java index d22d44c2cc39e..16ef3a2ecd055 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolverException.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/AppModelResolverException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/BootstrapAppModelResolver.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/BootstrapAppModelResolver.java index 8216cfcf60d6e..3c272618db80d 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/BootstrapAppModelResolver.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/BootstrapAppModelResolver.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver; import java.io.File; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectingDependencyVisitor.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectingDependencyVisitor.java index 5c9ddd66c0ed7..2c656a4cecccc 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectingDependencyVisitor.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectingDependencyVisitor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.maven; import java.io.BufferedReader; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectionException.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectionException.java index d1badcd0a147b..f7d86c848be87 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectionException.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/DeploymentInjectionException.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.maven; /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenArtifactResolver.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenArtifactResolver.java index 15fc8b166d9f5..cd915f7f2b807 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenArtifactResolver.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenArtifactResolver.java @@ -12,6 +12,7 @@ import java.util.List; import java.util.Set; +import org.apache.maven.repository.internal.MavenRepositorySystemUtils; import org.eclipse.aether.DefaultRepositoryCache; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.RepositorySystem; @@ -21,8 +22,10 @@ import org.eclipse.aether.collection.CollectResult; import org.eclipse.aether.collection.DependencyCollectionException; import org.eclipse.aether.graph.Dependency; +import org.eclipse.aether.impl.RemoteRepositoryManager; import org.eclipse.aether.installation.InstallRequest; import org.eclipse.aether.installation.InstallationException; +import org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager; import org.eclipse.aether.repository.LocalRepository; import org.eclipse.aether.repository.RemoteRepository; import org.eclipse.aether.resolution.ArtifactDescriptorException; @@ -102,10 +105,9 @@ public static Builder builder() { protected final RepositorySystemSession repoSession; protected final List remoteRepos; protected final MavenLocalRepositoryManager localRepoManager; + protected final RemoteRepositoryManager remoteRepoManager; private MavenArtifactResolver(Builder builder) throws AppModelResolverException { - - this.repoSystem = builder.repoSystem == null ? MavenRepoInitializer.getRepositorySystem( (builder.offline == null ? (builder.repoSession == null ? MavenRepoInitializer.getSettings().isOffline() @@ -136,7 +138,11 @@ private MavenArtifactResolver(Builder builder) throws AppModelResolverException } this.repoSession = newSession; - this.remoteRepos = builder.remoteRepos == null ? MavenRepoInitializer.getRemoteRepos() : builder.remoteRepos; + this.remoteRepos = builder.remoteRepos == null ? MavenRepoInitializer.getRemoteRepos(this.repoSystem, this.repoSession) : builder.remoteRepos; + + final DefaultRemoteRepositoryManager remoteRepoManager = new DefaultRemoteRepositoryManager(); + remoteRepoManager.initService(MavenRepositorySystemUtils.newServiceLocator()); + this.remoteRepoManager = remoteRepoManager; } public MavenLocalRepositoryManager getLocalRepositoryManager() { @@ -183,7 +189,8 @@ public ArtifactDescriptorResult resolveDescriptor(final Artifact artifact) try { return repoSystem.readArtifactDescriptor(repoSession, new ArtifactDescriptorRequest() - .setArtifact(artifact)); + .setArtifact(artifact) + .setRepositories(remoteRepos)); } catch (ArtifactDescriptorException e) { throw new AppModelResolverException("Failed to read descriptor of " + artifact, e); } @@ -242,6 +249,7 @@ public DependencyResult resolveDependencies(Artifact artifact, String... exclude deps.add(dep); } } + final List requestRepos = remoteRepoManager.aggregateRepositories(repoSession, remoteRepos, descr.getRepositories(), true); try { return repoSystem.resolveDependencies(repoSession, new DependencyRequest().setCollectRequest( @@ -249,7 +257,7 @@ public DependencyResult resolveDependencies(Artifact artifact, String... exclude .setRootArtifact(artifact) .setDependencies(deps) .setManagedDependencies(descr.getManagedDependencies()) - .setRepositories(descr.getRepositories()))); + .setRepositories(requestRepos))); } catch (DependencyResolutionException e) { throw new AppModelResolverException("Failed to resolve dependencies for " + artifact, e); } diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenLocalRepositoryManager.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenLocalRepositoryManager.java index aad07e7e6b325..b22339e806a7f 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenLocalRepositoryManager.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenLocalRepositoryManager.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver.maven; import java.io.IOException; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenModelBuilder.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenModelBuilder.java index d5ce56df6ac03..6c726bd2b457b 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenModelBuilder.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenModelBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.maven; import java.io.File; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenRepoInitializer.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenRepoInitializer.java index 92340a440da7c..34ff435dbc587 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenRepoInitializer.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenRepoInitializer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver.maven; import java.io.File; @@ -49,13 +33,13 @@ import org.apache.maven.settings.building.SettingsProblem; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.RepositorySystem; +import org.eclipse.aether.RepositorySystemSession; import org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory; import org.eclipse.aether.impl.DefaultServiceLocator; import org.eclipse.aether.repository.ArtifactRepository; import org.eclipse.aether.repository.Authentication; import org.eclipse.aether.repository.LocalRepository; import org.eclipse.aether.repository.Proxy; -import org.eclipse.aether.repository.ProxySelector; import org.eclipse.aether.repository.RemoteRepository; import org.eclipse.aether.repository.RepositoryPolicy; import org.eclipse.aether.spi.connector.RepositoryConnectorFactory; @@ -69,7 +53,6 @@ import io.quarkus.bootstrap.resolver.AppModelResolverException; import io.quarkus.bootstrap.util.PropertyUtils; -import static java.util.stream.Collectors.toList; /** * @author Alexey Loubyansky @@ -144,7 +127,6 @@ private static File resolveUserSettings(String settingsArg) { return null; } - private static List remoteRepos; private static Settings settings; private static final Logger log = Logger.getLogger(MavenRepoInitializer.class); @@ -168,7 +150,6 @@ public void serviceCreationFailed(Class type, Class impl, Throwable except log.error("Failed to initialize " + impl.getName() + " as a service implementing " + type.getName(), exception); } }); - return locator.getService(RepositorySystem.class); } @@ -217,15 +198,17 @@ public static DefaultRepositorySystemSession newSession(RepositorySystem system, return session; } - public static List getRemoteRepos() throws AppModelResolverException { - if (remoteRepos != null) { - return remoteRepos; - } - return remoteRepos = Collections.unmodifiableList(getRemoteRepos(getSettings())); + public static List getRemoteRepos(RepositorySystem repoSystem, RepositorySystemSession repoSession) throws AppModelResolverException { + return Collections.unmodifiableList(getRemoteRepos(getSettings(), repoSystem, repoSession)); } public static List getRemoteRepos(Settings settings) throws AppModelResolverException { - final List remotes = new ArrayList<>(); + final RepositorySystem system = getRepositorySystem(); + return getRemoteRepos(settings, system, newSession(system, settings)); + } + + public static List getRemoteRepos(Settings settings, RepositorySystem repoSystem, RepositorySystemSession repoSession) throws AppModelResolverException { + List remotes = new ArrayList<>(); final int profilesTotal = settings.getProfiles().size(); if(profilesTotal > 0) { @@ -297,34 +280,7 @@ public void add(ModelProblemCollectorRequest req) { .setSnapshotPolicy(new RepositoryPolicy(false, RepositoryPolicy.UPDATE_POLICY_DAILY, RepositoryPolicy.CHECKSUM_POLICY_WARN)) .build()); } - final ProxyAwareMirrorSelector proxyAwareMirrorSelector = new ProxyAwareMirrorSelector( - settings.getMirrors(), - getProxySelector(settings) - ); - return remotes.stream() - .map(proxyAwareMirrorSelector::getMirror) - // remove duplicates - .distinct() - .collect(toList()); - } - - private static ProxySelector getProxySelector(Settings settings) { - final org.apache.maven.settings.Proxy settingsProxy = settings.getActiveProxy(); - if (settingsProxy == null) { - return null; - } - return new DefaultProxySelector().add( - new Proxy( - settingsProxy.getProtocol(), - settingsProxy.getHost(), - settingsProxy.getPort(), - settingsProxy.getUsername() == null ? null : new AuthenticationBuilder() - .addUsername(settingsProxy.getUsername()) - .addPassword(settingsProxy.getPassword()) - .build() - ), - settingsProxy.getNonProxyHosts() - ); + return repoSystem.newResolutionRepositories(repoSession, remotes); } /** diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/ProxyAwareMirrorSelector.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/ProxyAwareMirrorSelector.java deleted file mode 100644 index 2aae3823f7f4e..0000000000000 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/ProxyAwareMirrorSelector.java +++ /dev/null @@ -1,73 +0,0 @@ -package io.quarkus.bootstrap.resolver.maven; - -import org.apache.maven.settings.Mirror; -import org.eclipse.aether.repository.MirrorSelector; -import org.eclipse.aether.repository.Proxy; -import org.eclipse.aether.repository.ProxySelector; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.util.repository.DefaultMirrorSelector; - -import java.util.List; - -/** - * Retrieve mirror for a {@link RemoteRepository} if applicable, and setup proxy if applicable. - */ -class ProxyAwareMirrorSelector implements MirrorSelector { - private final ProxySelector proxySelector; - private final MirrorSelector wrappedMirrorSelector; - private static final ProxySelector NULL_PROXY_SELECTOR = new ProxySelector() { - @Override - public Proxy getProxy(RemoteRepository repository) { - return null; - } - }; - - - private static MirrorSelector createMirrorSelector(List mirrors) { - DefaultMirrorSelector ms = new DefaultMirrorSelector(); - if (mirrors != null) { - for (Mirror m : mirrors) { - ms.add( - m.getId(), - m.getUrl(), - m.getLayout(), - false, - m.getMirrorOf(), - m.getMirrorOfLayouts() - ); - } - } - return ms; - } - - ProxyAwareMirrorSelector(List mirrors, ProxySelector proxySelector) { - this.wrappedMirrorSelector = createMirrorSelector(mirrors); - this.proxySelector = proxySelector == null ? NULL_PROXY_SELECTOR : proxySelector; - } - - /** - * Replace repo with it's mirror if applicable, and ensure proxy is set-up if needed. - * - * @param remoteRepository Remote repository to enhance - * @return Mirror or RemoteRepository (if no mirror is applicable) but add proxy on this mirror or RemoteRepository if needed - */ - @Override - public RemoteRepository getMirror(final RemoteRepository remoteRepository) { - RemoteRepository remoteRepositoryResult = wrappedMirrorSelector.getMirror(remoteRepository); - if (remoteRepositoryResult == null) { - // No Mirror, take remoteRepository it-self - remoteRepositoryResult = remoteRepository; - } - - final Proxy proxy = proxySelector.getProxy(remoteRepositoryResult); - if (proxy == null) { - // No Proxy, return remoteRepositoryMirror - return remoteRepositoryResult; - } - - // Available proxy, use it - return new RemoteRepository.Builder(remoteRepositoryResult) - .setProxy(proxy) - .build(); - } -} \ No newline at end of file diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/SimpleDependencyGraphTransformationContext.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/SimpleDependencyGraphTransformationContext.java index 985f3f4195424..866f9943edd40 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/SimpleDependencyGraphTransformationContext.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/SimpleDependencyGraphTransformationContext.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.maven; import java.util.HashMap; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalProject.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalProject.java index 254de4bf024f6..3cf591fe9d92a 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalProject.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalProject.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.maven.workspace; import java.io.IOException; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalWorkspace.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalWorkspace.java index 30a5979bb5d30..b59510e82d4f5 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalWorkspace.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalWorkspace.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.maven.workspace; import java.io.File; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/ModelUtils.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/ModelUtils.java index eddbd4c6d03e0..f6c8ba7d03a04 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/ModelUtils.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/ModelUtils.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver.maven.workspace; import java.io.BufferedReader; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/BootstrapUtils.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/BootstrapUtils.java index fb2a78c48df03..d7f5d14fed39d 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/BootstrapUtils.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/BootstrapUtils.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.util; import java.io.InputStream; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/IoUtils.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/IoUtils.java index 3053c7407bf3b..d47750e541906 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/IoUtils.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/IoUtils.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.util; import java.io.BufferedReader; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/PropertyUtils.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/PropertyUtils.java index ae8b31dbb388f..647bfb2226b11 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/PropertyUtils.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/PropertyUtils.java @@ -1,20 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.util; import java.security.AccessController; diff --git a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/ZipUtils.java b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/ZipUtils.java index 5681715ae92b7..36d0171fe7247 100644 --- a/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/ZipUtils.java +++ b/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/util/ZipUtils.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.util; import java.io.IOException; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/CollectDependenciesBase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/CollectDependenciesBase.java index 0b4c1c60b28dc..0efb5a689b96e 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/CollectDependenciesBase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/CollectDependenciesBase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver; import static org.junit.Assert.assertEquals; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/PropsBuilder.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/PropsBuilder.java index 28568590af318..11423a76f0d92 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/PropsBuilder.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/PropsBuilder.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver; import java.util.Properties; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/ResolverSetupCleanup.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/ResolverSetupCleanup.java index f0fdc39706c85..8417761cb5c3c 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/ResolverSetupCleanup.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/ResolverSetupCleanup.java @@ -1,20 +1,3 @@ -/* - * Copyright 2016-2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver; import java.io.IOException; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsArtifact.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsArtifact.java index 6b1e75cd1dead..53ffaa1d4b619 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsArtifact.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsArtifact.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver; import java.io.IOException; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsDependency.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsDependency.java index aa4333dc52985..624350572b840 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsDependency.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsDependency.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver; import java.util.ArrayList; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsJar.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsJar.java index 7e9dc58e0f57d..01adaf20b4c50 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsJar.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsJar.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver; import java.io.BufferedWriter; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsRepoBuilder.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsRepoBuilder.java index c1f5219774057..26a3a27361884 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsRepoBuilder.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/TsRepoBuilder.java @@ -1,20 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates - * and other contributors as indicated by the @author tags. - * - * 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 io.quarkus.bootstrap.resolver; import java.io.BufferedWriter; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/maven/test/MavenRepoInitializerTest.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/maven/test/MavenRepoInitializerTest.java index ef21df18c538e..69e18d4ca4c2c 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/maven/test/MavenRepoInitializerTest.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/maven/test/MavenRepoInitializerTest.java @@ -1,139 +1,149 @@ -package io.quarkus.bootstrap.resolver.maven.test; - -import io.quarkus.bootstrap.resolver.AppModelResolverException; -import io.quarkus.bootstrap.resolver.maven.MavenRepoInitializer; -import org.apache.maven.settings.*; -import org.eclipse.aether.repository.RemoteRepository; -import org.junit.BeforeClass; -import org.junit.Test; - -import java.util.List; - -import static org.eclipse.aether.repository.RepositoryPolicy.CHECKSUM_POLICY_WARN; -import static org.eclipse.aether.repository.RepositoryPolicy.UPDATE_POLICY_DAILY; -import static org.junit.Assert.*; - -public class MavenRepoInitializerTest { - private static Mirror mirrorA; - private static Proxy localProxy; - private static Settings baseSettings; - - @BeforeClass - public static void init() { - baseSettings = new Settings(); - - baseSettings.setInteractiveMode(true); - baseSettings.setUsePluginRegistry(false); - baseSettings.setOffline(false); - - final Profile profile = new Profile(); - profile.setId("foo-profile"); - - final RepositoryPolicy releasesPolicy = new RepositoryPolicy(); - releasesPolicy.setEnabled(true); - releasesPolicy.setUpdatePolicy(null); - releasesPolicy.setChecksumPolicy(CHECKSUM_POLICY_WARN); - - final RepositoryPolicy snapshotsPolicy = new RepositoryPolicy(); - snapshotsPolicy.setEnabled(true); - snapshotsPolicy.setUpdatePolicy(UPDATE_POLICY_DAILY); - snapshotsPolicy.setChecksumPolicy(CHECKSUM_POLICY_WARN); - - final RepositoryPolicy noSnapshotsPolicy = new RepositoryPolicy(); - noSnapshotsPolicy.setEnabled(false); - - final Repository customRepository = new Repository(); - customRepository.setId("custom-repo"); - customRepository.setUrl("https://foo.repo/artifact/content/groups/foo/"); - customRepository.setReleases(releasesPolicy); - customRepository.setSnapshots(snapshotsPolicy); - profile.addRepository(customRepository); - - final Repository jbossRepository = new Repository(); - jbossRepository.setId("jboss-public-repository"); - jbossRepository.setUrl("https://repository.jboss.org/nexus/content/repositories/releases/"); - jbossRepository.setReleases(releasesPolicy); - jbossRepository.setSnapshots(noSnapshotsPolicy); - profile.addRepository(jbossRepository); - - final Repository springRepository = new Repository(); - springRepository.setId("spring-public-repository"); - springRepository.setUrl("http://repo.spring.io/libs-release/"); - springRepository.setReleases(releasesPolicy); - springRepository.setSnapshots(noSnapshotsPolicy); - profile.addRepository(springRepository); - - baseSettings.addProfile(profile); - baseSettings.addActiveProfile("foo-profile"); - - localProxy = new Proxy(); - localProxy.setActive(true); - localProxy.setProtocol("http"); - localProxy.setUsername(null); - localProxy.setPassword(null); - localProxy.setPort(8888); - localProxy.setHost("localhost"); - localProxy.setNonProxyHosts("localhost"); - localProxy.setId("local-proxy-http"); - - mirrorA = new Mirror(); - mirrorA.setMirrorOf("central,jboss-public-repository,spring-public-repository"); - mirrorA.setUrl("https://mirror.com/artifact/content/groups/public/"); - mirrorA.setId("mirror-A"); - } - - @Test - public void getRemoteRepoFromSettingsWithNeitherProxyNorMirror() throws AppModelResolverException { - final Settings settings = baseSettings.clone(); - - List repos = MavenRepoInitializer.getRemoteRepos(settings); - assertEquals(4, repos.size()); - - assertEquals("custom-repo", repos.get(0).getId()); - assertNull(repos.get(0).getProxy()); - assertTrue(repos.get(0).getMirroredRepositories().isEmpty()); - - final RemoteRepository centralRepo = repos.get(repos.size() - 1); - assertEquals("central", centralRepo.getId()); - assertNull(centralRepo.getProxy()); - assertTrue(centralRepo.getMirroredRepositories().isEmpty()); - } - - @Test - public void getRemoteRepoFromSettingsWithProxyButWithoutMirror() throws AppModelResolverException { - final Settings settings = baseSettings.clone(); - settings.addProxy(localProxy); - - List repos = MavenRepoInitializer.getRemoteRepos(settings); - assertEquals(4, repos.size()); - - assertEquals("custom-repo", repos.get(0).getId()); - assertNotNull(repos.get(0).getProxy()); - assertNotNull(repos.get(0).getMirroredRepositories()); - - final RemoteRepository centralRepo = repos.get(repos.size() - 1); - assertEquals("central repo must be added as default repository", "central", centralRepo.getId()); - assertNotNull(centralRepo.getProxy()); - assertTrue(centralRepo.getMirroredRepositories().isEmpty()); - } - - @Test - public void getRemoteRepoFromSettingsWithProxyAndMirror() throws AppModelResolverException { - final Settings settings = baseSettings.clone(); - settings.addProxy(localProxy); - settings.addMirror(mirrorA); - - List repos = MavenRepoInitializer.getRemoteRepos(settings); - assertEquals(4, repos.size()); - - assertEquals("custom-repo", repos.get(0).getId()); - assertNotNull(repos.get(0).getProxy()); - assertNotNull(repos.get(0).getMirroredRepositories()); - - final RemoteRepository centralRepo = repos.get(repos.size() - 1); - assertEquals("Central repo must be substitute by mirror", "mirror-A", centralRepo.getId()); - assertNotNull(centralRepo.getProxy()); - assertEquals(1, centralRepo.getMirroredRepositories().size()); - assertEquals("central", centralRepo.getMirroredRepositories().get(0).getId()); - } +package io.quarkus.bootstrap.resolver.maven.test; + +import io.quarkus.bootstrap.resolver.AppModelResolverException; +import io.quarkus.bootstrap.resolver.maven.MavenRepoInitializer; + +import org.apache.maven.settings.Mirror; +import org.apache.maven.settings.Profile; +import org.apache.maven.settings.Proxy; +import org.apache.maven.settings.Repository; +import org.apache.maven.settings.RepositoryPolicy; +import org.apache.maven.settings.Settings; +import org.eclipse.aether.repository.RemoteRepository; +import org.junit.BeforeClass; +import org.junit.Test; + +import java.util.Arrays; +import java.util.List; + +import static org.eclipse.aether.repository.RepositoryPolicy.CHECKSUM_POLICY_WARN; +import static org.eclipse.aether.repository.RepositoryPolicy.UPDATE_POLICY_DAILY; +import static org.junit.Assert.*; + +public class MavenRepoInitializerTest { + private static Mirror mirrorA; + private static Proxy localProxy; + private static Settings baseSettings; + + @BeforeClass + public static void init() { + baseSettings = new Settings(); + + baseSettings.setInteractiveMode(true); + baseSettings.setUsePluginRegistry(false); + baseSettings.setOffline(false); + + final Profile profile = new Profile(); + profile.setId("foo-profile"); + + final RepositoryPolicy releasesPolicy = new RepositoryPolicy(); + releasesPolicy.setEnabled(true); + releasesPolicy.setUpdatePolicy(null); + releasesPolicy.setChecksumPolicy(CHECKSUM_POLICY_WARN); + + final RepositoryPolicy snapshotsPolicy = new RepositoryPolicy(); + snapshotsPolicy.setEnabled(true); + snapshotsPolicy.setUpdatePolicy(UPDATE_POLICY_DAILY); + snapshotsPolicy.setChecksumPolicy(CHECKSUM_POLICY_WARN); + + final RepositoryPolicy noSnapshotsPolicy = new RepositoryPolicy(); + noSnapshotsPolicy.setEnabled(false); + + final Repository customRepository = new Repository(); + customRepository.setId("custom-repo"); + customRepository.setUrl("https://foo.repo/artifact/content/groups/foo/"); + customRepository.setReleases(releasesPolicy); + customRepository.setSnapshots(snapshotsPolicy); + profile.addRepository(customRepository); + + final Repository jbossRepository = new Repository(); + jbossRepository.setId("jboss-public-repository"); + jbossRepository.setUrl("https://repository.jboss.org/nexus/content/repositories/releases/"); + jbossRepository.setReleases(releasesPolicy); + jbossRepository.setSnapshots(noSnapshotsPolicy); + profile.addRepository(jbossRepository); + + final Repository springRepository = new Repository(); + springRepository.setId("spring-public-repository"); + springRepository.setUrl("http://repo.spring.io/libs-release/"); + springRepository.setReleases(releasesPolicy); + springRepository.setSnapshots(noSnapshotsPolicy); + profile.addRepository(springRepository); + + baseSettings.addProfile(profile); + baseSettings.addActiveProfile("foo-profile"); + + localProxy = new Proxy(); + localProxy.setActive(true); + localProxy.setProtocol("http"); + localProxy.setUsername(null); + localProxy.setPassword(null); + localProxy.setPort(8888); + localProxy.setHost("localhost"); + localProxy.setNonProxyHosts("localhost"); + localProxy.setId("local-proxy-http"); + + mirrorA = new Mirror(); + mirrorA.setMirrorOf("central,jboss-public-repository,spring-public-repository"); + mirrorA.setUrl("https://mirror.com/artifact/content/groups/public/"); + mirrorA.setId("mirror-A"); + } + + @Test + public void getRemoteRepoFromSettingsWithNeitherProxyNorMirror() throws AppModelResolverException { + final Settings settings = baseSettings.clone(); + + List repos = MavenRepoInitializer.getRemoteRepos(settings); + assertEquals(4, repos.size()); + + assertEquals("custom-repo", repos.get(0).getId()); + assertNull(repos.get(0).getProxy()); + assertTrue(repos.get(0).getMirroredRepositories().isEmpty()); + + final RemoteRepository centralRepo = repos.get(repos.size() - 1); + assertEquals("central", centralRepo.getId()); + assertNull(centralRepo.getProxy()); + assertTrue(centralRepo.getMirroredRepositories().isEmpty()); + } + + @Test + public void getRemoteRepoFromSettingsWithProxyButWithoutMirror() throws AppModelResolverException { + final Settings settings = baseSettings.clone(); + settings.addProxy(localProxy); + + List repos = MavenRepoInitializer.getRemoteRepos(settings); + assertEquals(4, repos.size()); + + assertEquals("custom-repo", repos.get(0).getId()); + assertNotNull(repos.get(0).getProxy()); + assertNotNull(repos.get(0).getMirroredRepositories()); + + final RemoteRepository centralRepo = repos.get(repos.size() - 1); + assertEquals("central repo must be added as default repository", "central", centralRepo.getId()); + assertNotNull(centralRepo.getProxy()); + assertTrue(centralRepo.getMirroredRepositories().isEmpty()); + } + + @Test + public void getRemoteRepoFromSettingsWithProxyAndMirror() throws AppModelResolverException { + final Settings settings = baseSettings.clone(); + settings.addProxy(localProxy); + settings.addMirror(mirrorA); + + List repos = MavenRepoInitializer.getRemoteRepos(settings); + assertEquals(2, repos.size()); + + assertEquals("custom-repo", repos.get(0).getId()); + assertNotNull(repos.get(0).getProxy()); + assertNotNull(repos.get(0).getMirroredRepositories()); + + final RemoteRepository centralRepo = repos.get(repos.size() - 1); + assertEquals("Central repo must be substitute by mirror", "mirror-A", centralRepo.getId()); + assertNotNull(centralRepo.getProxy()); + assertEquals(3, centralRepo.getMirroredRepositories().size()); + final List mirrored = Arrays.asList("central", "jboss-public-repository", "spring-public-repository"); + for (RemoteRepository repo : centralRepo.getMirroredRepositories()) { + assertTrue(mirrored.contains(repo.getId())); + } + } } \ No newline at end of file diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/replace/test/SimpleReplacedDependencyTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/replace/test/SimpleReplacedDependencyTestCase.java index f19d672170042..d112782be75fe 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/replace/test/SimpleReplacedDependencyTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/replace/test/SimpleReplacedDependencyTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.replace.test; import io.quarkus.bootstrap.BootstrapConstants; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependenciesOnDifferentVersionsOfAnArtifactTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependenciesOnDifferentVersionsOfAnArtifactTestCase.java index 133dceaf2ec4f..e1a3d92046bb3 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependenciesOnDifferentVersionsOfAnArtifactTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependenciesOnDifferentVersionsOfAnArtifactTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndProvidedScopesTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndProvidedScopesTestCase.java index 996f07baee2b1..5f8b5321468e9 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndProvidedScopesTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndProvidedScopesTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndTestScopesTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndTestScopesTestCase.java index 8d65cd2ad6bb3..a82bad9056c71 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndTestScopesTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphInCompileAndTestScopesTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphTestCase.java index 519a3214b6a64..e75385dd52364 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphWithDifferentClassifierAndTypeTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphWithDifferentClassifierAndTypeTestCase.java index 791da114d95e3..151444ddf1dae 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphWithDifferentClassifierAndTypeTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DependencyPresentTwiceInTheGraphWithDifferentClassifierAndTypeTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectDependencyVersionOverridesTransitiveVersionTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectDependencyVersionOverridesTransitiveVersionTestCase.java index 64d7ef66f0db6..7bf314316ddc6 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectDependencyVersionOverridesTransitiveVersionTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectDependencyVersionOverridesTransitiveVersionTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectOptionalOverridesTransitiveNonOptionalVersionTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectOptionalOverridesTransitiveNonOptionalVersionTestCase.java index 65a54010ce1d3..9380bd23b6371 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectOptionalOverridesTransitiveNonOptionalVersionTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/DirectOptionalOverridesTransitiveNonOptionalVersionTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ExclusionsTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ExclusionsTestCase.java index ee068cc79593b..b56644d49c4ab 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ExclusionsTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ExclusionsTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/OnlyDirectOptionalDepsAreCollectedTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/OnlyDirectOptionalDepsAreCollectedTestCase.java index b6cd2a8e40aed..1379cb80d537f 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/OnlyDirectOptionalDepsAreCollectedTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/OnlyDirectOptionalDepsAreCollectedTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ProvidedScopeDepsAreNotCollectedTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ProvidedScopeDepsAreNotCollectedTestCase.java index ddb3bf6696799..c790ec044fc0d 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ProvidedScopeDepsAreNotCollectedTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/ProvidedScopeDepsAreNotCollectedTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TestScopeIsNotAmongRuntimeDependenciesTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TestScopeIsNotAmongRuntimeDependenciesTestCase.java index 68df26b0b2d18..1adb0ebd1e9c7 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TestScopeIsNotAmongRuntimeDependenciesTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TestScopeIsNotAmongRuntimeDependenciesTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TransitiveVersionOverridesTestCase.java b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TransitiveVersionOverridesTestCase.java index f43fa7d68d14d..36780873c293e 100644 --- a/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TransitiveVersionOverridesTestCase.java +++ b/independent-projects/bootstrap/core/src/test/java/io/quarkus/bootstrap/resolver/test/TransitiveVersionOverridesTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.bootstrap.resolver.test; import io.quarkus.bootstrap.resolver.CollectDependenciesBase; diff --git a/independent-projects/bootstrap/maven-plugin/pom.xml b/independent-projects/bootstrap/maven-plugin/pom.xml index e9df5ef5e1165..c7b5c1943aba9 100644 --- a/independent-projects/bootstrap/maven-plugin/pom.xml +++ b/independent-projects/bootstrap/maven-plugin/pom.xml @@ -1,18 +1,3 @@ - diff --git a/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java b/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java index 14bd681c52c5b..e79fa676298bb 100644 --- a/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java +++ b/independent-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.maven; import java.io.BufferedWriter; diff --git a/independent-projects/bootstrap/pom.xml b/independent-projects/bootstrap/pom.xml index 4b11d1e3606a0..0d86055d052db 100644 --- a/independent-projects/bootstrap/pom.xml +++ b/independent-projects/bootstrap/pom.xml @@ -1,18 +1,3 @@ - diff --git a/integration-tests/amazon-lambda/pom.xml b/integration-tests/amazon-lambda/pom.xml index 0e2a298f8e4b4..e60e89553d9da 100644 --- a/integration-tests/amazon-lambda/pom.xml +++ b/integration-tests/amazon-lambda/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleIT.java b/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleIT.java index c8cdcb95ca7aa..6c2087a0ce02e 100644 --- a/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleIT.java +++ b/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.amazon.lambda; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java b/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java index dae0bf3248646..0999db1a52df5 100644 --- a/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java +++ b/integration-tests/amazon-lambda/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.amazon.lambda; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/azure-functions-resteasy/pom.xml b/integration-tests/azure-functions-resteasy/pom.xml new file mode 100644 index 0000000000000..4f7a73dde584d --- /dev/null +++ b/integration-tests/azure-functions-resteasy/pom.xml @@ -0,0 +1,66 @@ + + + + + + quarkus-integration-tests-parent + io.quarkus + 999-SNAPSHOT + ../ + + 4.0.0 + + quarkus-integration-test-azure-functions-resteasy + Quarkus - Integration Tests - Azure Functions + Module that contains Azure Functions related tests + + + io.quarkus + quarkus-azure-functions-resteasy + + + + + io.quarkus + quarkus-junit5 + test + + + com.microsoft.azure.functions + azure-functions-java-library + test + + + + + + + ${project.groupId} + quarkus-maven-plugin + + + + build + + + + + + + diff --git a/integration-tests/azure-functions-resteasy/src/main/java/io/quarkus/it/azure/functions/resteasy/GreetingResource.java b/integration-tests/azure-functions-resteasy/src/main/java/io/quarkus/it/azure/functions/resteasy/GreetingResource.java new file mode 100644 index 0000000000000..ff9dc3f3227d3 --- /dev/null +++ b/integration-tests/azure-functions-resteasy/src/main/java/io/quarkus/it/azure/functions/resteasy/GreetingResource.java @@ -0,0 +1,23 @@ +package io.quarkus.it.azure.functions.resteasy; + +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; + +@Path("hello") +public class GreetingResource { + @GET + @Produces("text/plain") + public String get(@QueryParam("name") String name) { + return "Hello " + ((name == null) ? "nobody" : name); + } + + @POST + @Consumes("text/plain") + public String post(String name) { + return "Hello " + ((name == null) ? "nobody" : name); + } +} diff --git a/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/FunctionTest.java b/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/FunctionTest.java new file mode 100644 index 0000000000000..72611d8fc7b7a --- /dev/null +++ b/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/FunctionTest.java @@ -0,0 +1,86 @@ +package io.quarkus.it; + +import java.net.URI; +import java.util.logging.Logger; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import com.microsoft.azure.functions.ExecutionContext; +import com.microsoft.azure.functions.HttpMethod; +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; + +import io.quarkus.azure.functions.resteasy.runtime.Function; +import io.quarkus.test.junit.QuarkusTest; + +/** + * Unit test for Function class. + */ +@QuarkusTest +public class FunctionTest { + @Test + public void testAzureFunctionGet() throws Exception { + // Setup + @SuppressWarnings("unchecked") + final HttpRequestMessageMock req = new HttpRequestMessageMock(); + req.setUri(URI.create("https://foo.com/api/hello?name=Bill")); + req.setHttpMethod(HttpMethod.GET); + + // Invoke + final HttpResponseMessage ret = new Function().run(req, new ExecutionContext() { + @Override + public Logger getLogger() { + return null; + } + + @Override + public String getInvocationId() { + return null; + } + + @Override + public String getFunctionName() { + return null; + } + }); + + // Verify + Assertions.assertEquals(ret.getStatus(), HttpStatus.OK); + Assertions.assertEquals("Hello Bill", new String((byte[]) ret.getBody())); + } + + @Test + public void testAzureFunctionPost() throws Exception { + // Setup + @SuppressWarnings("unchecked") + final HttpRequestMessageMock req = new HttpRequestMessageMock(); + req.setUri(URI.create("https://foo.com/api/hello")); + req.setHttpMethod(HttpMethod.POST); + req.setBody("Bill".getBytes()); + req.getHeaders().put("Content-Type", "text/plain"); + + // Invoke + final HttpResponseMessage ret = new Function().run(req, new ExecutionContext() { + @Override + public Logger getLogger() { + return null; + } + + @Override + public String getInvocationId() { + return null; + } + + @Override + public String getFunctionName() { + return null; + } + }); + + // Verify + Assertions.assertEquals(ret.getStatus(), HttpStatus.OK); + Assertions.assertEquals("Hello Bill", new String((byte[]) ret.getBody())); + } + +} diff --git a/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpRequestMessageMock.java b/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpRequestMessageMock.java new file mode 100644 index 0000000000000..f3566c0f9dcca --- /dev/null +++ b/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpRequestMessageMock.java @@ -0,0 +1,75 @@ +package io.quarkus.it; + +import java.net.URI; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +import com.microsoft.azure.functions.HttpMethod; +import com.microsoft.azure.functions.HttpRequestMessage; +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.HttpStatusType; + +public class HttpRequestMessageMock implements HttpRequestMessage> { + protected URI uri; + protected HttpMethod httpMethod; + protected Map headers = new HashMap<>(); + protected Map queryParameters = new HashMap<>(); + protected byte[] body; + + @Override + public URI getUri() { + return uri; + } + + @Override + public HttpMethod getHttpMethod() { + return httpMethod; + } + + @Override + public Map getHeaders() { + return headers; + } + + @Override + public Map getQueryParameters() { + return queryParameters; + } + + @Override + public Optional getBody() { + return Optional.ofNullable(body); + } + + @Override + public HttpResponseMessage.Builder createResponseBuilder(HttpStatus httpStatus) { + return new HttpResponseMessageMock.HttpResponseMessageBuilderMock().status(httpStatus); + } + + @Override + public HttpResponseMessage.Builder createResponseBuilder(HttpStatusType httpStatusType) { + return new HttpResponseMessageMock.HttpResponseMessageBuilderMock().status(httpStatusType); + } + + public void setUri(URI uri) { + this.uri = uri; + } + + public void setHttpMethod(HttpMethod httpMethod) { + this.httpMethod = httpMethod; + } + + public void setHeaders(Map headers) { + this.headers = headers; + } + + public void setQueryParameters(Map queryParameters) { + this.queryParameters = queryParameters; + } + + public void setBody(byte[] body) { + this.body = body; + } +} diff --git a/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpResponseMessageMock.java b/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpResponseMessageMock.java new file mode 100644 index 0000000000000..baebabca31768 --- /dev/null +++ b/integration-tests/azure-functions-resteasy/src/test/java/io/quarkus/it/HttpResponseMessageMock.java @@ -0,0 +1,83 @@ +package io.quarkus.it; + +import java.util.HashMap; +import java.util.Map; + +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.HttpStatusType; + +/** + * The mock for HttpResponseMessage, can be used in unit tests to verify if the + * returned response by HTTP trigger function is correct or not. + */ +public class HttpResponseMessageMock implements HttpResponseMessage { + private int httpStatusCode; + private HttpStatusType httpStatus; + private Object body; + private Map headers; + + public HttpResponseMessageMock(final HttpStatusType status, final Map headers, final Object body) { + this.httpStatus = status; + this.httpStatusCode = status.value(); + this.headers = headers; + this.body = body; + } + + @Override + public HttpStatusType getStatus() { + return this.httpStatus; + } + + @Override + public int getStatusCode() { + return httpStatusCode; + } + + @Override + public String getHeader(String key) { + return this.headers.get(key); + } + + @Override + public Object getBody() { + return this.body; + } + + public static class HttpResponseMessageBuilderMock implements HttpResponseMessage.Builder { + private Object body; + private int httpStatusCode; + private Map headers = new HashMap<>(); + private HttpStatusType httpStatus; + + public Builder status(HttpStatus status) { + this.httpStatusCode = status.value(); + this.httpStatus = status; + return this; + } + + @Override + public Builder status(final HttpStatusType httpStatusType) { + this.httpStatusCode = httpStatusType.value(); + this.httpStatus = httpStatusType; + return this; + } + + @Override + public HttpResponseMessage.Builder header(final String key, final String value) { + this.headers.put(key, value); + return this; + } + + @Override + public HttpResponseMessage.Builder body(final Object body) { + this.body = body; + return this; + } + + @Override + public HttpResponseMessage build() { + return new HttpResponseMessageMock(this.httpStatus, this.headers, this.body); + } + } +} diff --git a/integration-tests/camel-jdbc/pom.xml b/integration-tests/camel-jdbc/pom.xml index 8f3e15756f54d..8ccbc7e80e4d2 100644 --- a/integration-tests/camel-jdbc/pom.xml +++ b/integration-tests/camel-jdbc/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/camel-jdbc/src/test/java/io/quarkus/it/camel/jdbc/TestResources.java b/integration-tests/camel-jdbc/src/test/java/io/quarkus/it/camel/jdbc/TestResources.java index d6dcbfcce0879..37c88873974d6 100644 --- a/integration-tests/camel-jdbc/src/test/java/io/quarkus/it/camel/jdbc/TestResources.java +++ b/integration-tests/camel-jdbc/src/test/java/io/quarkus/it/camel/jdbc/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.camel.jdbc; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/camel-servlet/pom.xml b/integration-tests/camel-servlet/pom.xml index 2ab770fc4927d..6a53158d9bd09 100644 --- a/integration-tests/camel-servlet/pom.xml +++ b/integration-tests/camel-servlet/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/class-transformer/deployment/pom.xml b/integration-tests/class-transformer/deployment/pom.xml index 891639c7dab72..6fc8ad7eb3203 100644 --- a/integration-tests/class-transformer/deployment/pom.xml +++ b/integration-tests/class-transformer/deployment/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java b/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java index 332f965255e85..9545c590df8e7 100644 --- a/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java +++ b/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.classtransformer; import java.lang.reflect.Modifier; diff --git a/integration-tests/class-transformer/pom.xml b/integration-tests/class-transformer/pom.xml index 980998b3bff97..60b13af2764bf 100644 --- a/integration-tests/class-transformer/pom.xml +++ b/integration-tests/class-transformer/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/class-transformer/runtime/pom.xml b/integration-tests/class-transformer/runtime/pom.xml index 1e8c58c27c780..df981afe02748 100644 --- a/integration-tests/class-transformer/runtime/pom.xml +++ b/integration-tests/class-transformer/runtime/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/common-jpa-entities/pom.xml b/integration-tests/common-jpa-entities/pom.xml index 7b5fb153019e4..a2a3cc8a9de56 100644 --- a/integration-tests/common-jpa-entities/pom.xml +++ b/integration-tests/common-jpa-entities/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java b/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java index dcc6dab0cd2dd..a442bd4b374f9 100644 --- a/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java +++ b/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.common; import javax.persistence.Entity; diff --git a/integration-tests/elytron-security/pom.xml b/integration-tests/elytron-security/pom.xml index d70c8b5259839..7a01d638c3923 100644 --- a/integration-tests/elytron-security/pom.xml +++ b/integration-tests/elytron-security/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/elytron-security/src/main/resources/META-INF/microprofile-config.properties b/integration-tests/elytron-security/src/main/resources/META-INF/microprofile-config.properties index 1fe8aaeb04288..ec19cb13dc76b 100644 --- a/integration-tests/elytron-security/src/main/resources/META-INF/microprofile-config.properties +++ b/integration-tests/elytron-security/src/main/resources/META-INF/microprofile-config.properties @@ -1,19 +1,3 @@ -# -# Copyright 2018 Red Hat, Inc. -# -# 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. -# - # used to test the client behavior when SSL is disabled # we probably won't be able to test SSL proper so it seems reasonable to set it globally quarkus.ssl.native=false diff --git a/integration-tests/flyway/pom.xml b/integration-tests/flyway/pom.xml index dbf531645af88..4e054314779a1 100644 --- a/integration-tests/flyway/pom.xml +++ b/integration-tests/flyway/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java index 170f972de627d..a6f43273a9ce6 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.flyway; import javax.ws.rs.ApplicationPath; diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java index d3a383ac1216f..201be80dbcc49 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.flyway; import java.util.Objects; diff --git a/integration-tests/flyway/src/main/resources/application.properties b/integration-tests/flyway/src/main/resources/application.properties index eca2d905aa66a..451ccfdd0df14 100644 --- a/integration-tests/flyway/src/main/resources/application.properties +++ b/integration-tests/flyway/src/main/resources/application.properties @@ -1,18 +1,3 @@ -# -# Copyright 2019 Red Hat, Inc. -# -# 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. -# quarkus.log.console.level=DEBUG quarkus.log.category."org.flywaydb.core".level=DEBUG quarkus.log.category."io.quarkus.flyway".level=DEBUG diff --git a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityNativeIT.java b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityNativeIT.java index fac057ba780b9..17184e7676f46 100644 --- a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityNativeIT.java +++ b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityNativeIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.flyway; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java index 669cdc42b0688..9b0a56c2c41b6 100644 --- a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java +++ b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.flyway; import static io.restassured.RestAssured.when; diff --git a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java index 3c0de66b37abf..a21293f94ad99 100644 --- a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java +++ b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.flyway; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/hibernate-orm-panache/pom.xml b/integration-tests/hibernate-orm-panache/pom.xml index 74e4d34e6e7cd..c64931193dd59 100644 --- a/integration-tests/hibernate-orm-panache/pom.xml +++ b/integration-tests/hibernate-orm-panache/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java index 4fc422c0df440..b7d1063750b51 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import javax.persistence.Entity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java index dd0354f465ea9..e8467494e0b3c 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import javax.persistence.Entity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java index ff37677715054..5c65b6ce2b6df 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import javax.persistence.MappedSuperclass; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java index ce5ed79ca1191..af6398739e9df 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import java.util.ArrayList; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Status.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Status.java index b4b438ef65e92..a7ec2e06037a2 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Status.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Status.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; public enum Status { diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java index a89136261a8ba..f02cb0ca32644 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import java.lang.reflect.Method; diff --git a/integration-tests/hibernate-orm-panache/src/main/resources/application.properties b/integration-tests/hibernate-orm-panache/src/main/resources/application.properties index 05f341a5538c1..fd159c0e16e3e 100644 --- a/integration-tests/hibernate-orm-panache/src/main/resources/application.properties +++ b/integration-tests/hibernate-orm-panache/src/main/resources/application.properties @@ -1,19 +1,3 @@ -# -# Copyright 2018 Red Hat, Inc. -# -# 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. -# - quarkus.datasource.url=jdbc:h2:tcp://localhost/mem:test quarkus.datasource.driver=org.h2.Driver quarkus.datasource.max-size=8 diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityInGraalITCase.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityInGraalITCase.java index ca7d603869142..4481e75b8aea1 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityInGraalITCase.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityInGraalITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java index eda52fa5261ca..fe51ed7f30f6c 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestResources.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestResources.java index 42b1b9c514139..1998c543029a2 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestResources.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.panache; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/hibernate-search-elasticsearch/pom.xml b/integration-tests/hibernate-search-elasticsearch/pom.xml index 90a2a144c7d98..8baebd21725c3 100644 --- a/integration-tests/hibernate-search-elasticsearch/pom.xml +++ b/integration-tests/hibernate-search-elasticsearch/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/hibernate-search-elasticsearch/src/main/resources/META-INF/beans.xml b/integration-tests/hibernate-search-elasticsearch/src/main/resources/META-INF/beans.xml index 1e58b4b51bb3c..139597f9cb07c 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/main/resources/META-INF/beans.xml +++ b/integration-tests/hibernate-search-elasticsearch/src/main/resources/META-INF/beans.xml @@ -1,16 +1,2 @@ - + diff --git a/integration-tests/hibernate-search-elasticsearch/src/main/resources/application.properties b/integration-tests/hibernate-search-elasticsearch/src/main/resources/application.properties index baa733492f48e..ebff208c52689 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/main/resources/application.properties +++ b/integration-tests/hibernate-search-elasticsearch/src/main/resources/application.properties @@ -1,19 +1,3 @@ -# -# Copyright 2019 Red Hat, Inc. -# -# 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. -# - quarkus.ssl.native = false quarkus.datasource.url=jdbc:h2:tcp://localhost/mem:test diff --git a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientInGraalIT.java b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientInGraalIT.java index f4c36fdb8c952..0c7c3e9f5c19d 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientInGraalIT.java +++ b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientInGraalIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.hibernate.search.elasticsearch; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientTest.java b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientTest.java index e340963518d0e..d9bea1c31228c 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientTest.java +++ b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/ElasticsearchClientTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.hibernate.search.elasticsearch; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchInGraalIT.java b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchInGraalIT.java index 80e52441940f3..406ef1806995c 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchInGraalIT.java +++ b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchInGraalIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.hibernate.search.elasticsearch; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchTest.java b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchTest.java index 90762752e8022..bf761d1d660e7 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchTest.java +++ b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/HibernateSearchTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.hibernate.search.elasticsearch; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/TestResources.java b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/TestResources.java index 60028c9ad992c..962e203fbb63f 100644 --- a/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/TestResources.java +++ b/integration-tests/hibernate-search-elasticsearch/src/test/java/io/quarkus/test/hibernate/search/elasticsearch/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.hibernate.search.elasticsearch; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/hibernate-validator/src/main/resources/META-INF/beans.xml b/integration-tests/hibernate-validator/src/main/resources/META-INF/beans.xml index e69de29bb2d1d..139597f9cb07c 100644 --- a/integration-tests/hibernate-validator/src/main/resources/META-INF/beans.xml +++ b/integration-tests/hibernate-validator/src/main/resources/META-INF/beans.xml @@ -0,0 +1,2 @@ + + diff --git a/integration-tests/infinispan-cache-jpa/pom.xml b/integration-tests/infinispan-cache-jpa/pom.xml index 8072f598ab75f..5d03139214a6c 100644 --- a/integration-tests/infinispan-cache-jpa/pom.xml +++ b/integration-tests/infinispan-cache-jpa/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/infinispan-cache-jpa/src/main/resources/META-INF/beans.xml b/integration-tests/infinispan-cache-jpa/src/main/resources/META-INF/beans.xml index e69de29bb2d1d..139597f9cb07c 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/resources/META-INF/beans.xml +++ b/integration-tests/infinispan-cache-jpa/src/main/resources/META-INF/beans.xml @@ -0,0 +1,2 @@ + + diff --git a/integration-tests/infinispan-cache-jpa/src/test/java/io/quarkus/it/infinispan/cache/jpa/TestResources.java b/integration-tests/infinispan-cache-jpa/src/test/java/io/quarkus/it/infinispan/cache/jpa/TestResources.java index 6b15f8302765f..4f8b31ecdc12a 100644 --- a/integration-tests/infinispan-cache-jpa/src/test/java/io/quarkus/it/infinispan/cache/jpa/TestResources.java +++ b/integration-tests/infinispan-cache-jpa/src/test/java/io/quarkus/it/infinispan/cache/jpa/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.infinispan.cache.jpa; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/infinispan-client/pom.xml b/integration-tests/infinispan-client/pom.xml index 2866bcffebda5..4e56b3978fe13 100644 --- a/integration-tests/infinispan-client/pom.xml +++ b/integration-tests/infinispan-client/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java index b2d12fbeb1b4a..3958c728abcc3 100644 --- a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java +++ b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.infinispan.client; import java.util.Collections; diff --git a/integration-tests/jpa-h2/pom.xml b/integration-tests/jpa-h2/pom.xml index 7f82f64d0acad..0a993c2ee3530 100644 --- a/integration-tests/jpa-h2/pom.xml +++ b/integration-tests/jpa-h2/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/jpa-h2/src/main/resources/META-INF/beans.xml b/integration-tests/jpa-h2/src/main/resources/META-INF/beans.xml index e69de29bb2d1d..139597f9cb07c 100644 --- a/integration-tests/jpa-h2/src/main/resources/META-INF/beans.xml +++ b/integration-tests/jpa-h2/src/main/resources/META-INF/beans.xml @@ -0,0 +1,2 @@ + + diff --git a/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TestResources.java b/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TestResources.java index 93572c37777e5..cab3615f001d3 100644 --- a/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TestResources.java +++ b/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.h2; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/jpa-mariadb/pom.xml b/integration-tests/jpa-mariadb/pom.xml index 3500eb9eeb209..25a36313e140f 100644 --- a/integration-tests/jpa-mariadb/pom.xml +++ b/integration-tests/jpa-mariadb/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/jpa-mariadb/src/main/resources/META-INF/beans.xml b/integration-tests/jpa-mariadb/src/main/resources/META-INF/beans.xml index c11c621e85496..139597f9cb07c 100644 --- a/integration-tests/jpa-mariadb/src/main/resources/META-INF/beans.xml +++ b/integration-tests/jpa-mariadb/src/main/resources/META-INF/beans.xml @@ -1,16 +1,2 @@ - + diff --git a/integration-tests/jpa-mariadb/src/main/resources/META-INF/persistence.xml b/integration-tests/jpa-mariadb/src/main/resources/META-INF/persistence.xml index 952d7b5948e13..a3893c33fedf0 100644 --- a/integration-tests/jpa-mariadb/src/main/resources/META-INF/persistence.xml +++ b/integration-tests/jpa-mariadb/src/main/resources/META-INF/persistence.xml @@ -1,19 +1,3 @@ - - - - diff --git a/integration-tests/jpa-postgresql/pom.xml b/integration-tests/jpa-postgresql/pom.xml index cc211e9ae033b..b836445d90b31 100644 --- a/integration-tests/jpa-postgresql/pom.xml +++ b/integration-tests/jpa-postgresql/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java index 34c2e32673f45..9c3827926e609 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import javax.persistence.Embeddable; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Animal.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Animal.java index 22d6bd26cf11f..5db8c8fe1004a 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Animal.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Animal.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; /** diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java index a8e4e5182f8a1..0a25581c9b1f7 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import javax.persistence.Embedded; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java index 06e6fea1ecf09..a44faa216253e 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import javax.persistence.MappedSuperclass; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java index 15733044b4528..feb48a98f0d1e 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import java.io.IOException; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java index 9ff0cb9bf881e..c48fdea40f5a2 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import java.io.IOException; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/NotAnEntityNotReferenced.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/NotAnEntityNotReferenced.java index 1286a8036f39b..725424592f338 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/NotAnEntityNotReferenced.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/NotAnEntityNotReferenced.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; /** diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java index 440ea6603ecc7..d49feae82c3c9 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import javax.persistence.CascadeType; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java index 138c4251e8152..b61623640c53d 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import javax.persistence.Entity; diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Status.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Status.java index ac0e0e814003f..cea1a939fdf0a 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Status.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Status.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; public enum Status { diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java index deeb8e749e8ec..33bae7211bb2a 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa.postgresql; import javax.persistence.Embeddable; diff --git a/integration-tests/jpa-postgresql/src/main/resources/META-INF/beans.xml b/integration-tests/jpa-postgresql/src/main/resources/META-INF/beans.xml index c11c621e85496..139597f9cb07c 100644 --- a/integration-tests/jpa-postgresql/src/main/resources/META-INF/beans.xml +++ b/integration-tests/jpa-postgresql/src/main/resources/META-INF/beans.xml @@ -1,16 +1,2 @@ - + diff --git a/integration-tests/jpa-postgresql/src/main/resources/META-INF/persistence.xml b/integration-tests/jpa-postgresql/src/main/resources/META-INF/persistence.xml index 021144570fef0..38e6919e6b701 100644 --- a/integration-tests/jpa-postgresql/src/main/resources/META-INF/persistence.xml +++ b/integration-tests/jpa-postgresql/src/main/resources/META-INF/persistence.xml @@ -1,19 +1,3 @@ - - - - diff --git a/integration-tests/kafka/src/main/resources/application.properties b/integration-tests/kafka/src/main/resources/application.properties index 370acf2ffc6c6..b9181891cbd5d 100644 --- a/integration-tests/kafka/src/main/resources/application.properties +++ b/integration-tests/kafka/src/main/resources/application.properties @@ -1,19 +1,3 @@ -# -# Copyright 2019 Red Hat, Inc. -# -# 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. -# - quarkus.log.category.kafka.level=WARN quarkus.log.category.\"org.apache.kafka\".level=WARN quarkus.log.category.\"org.apache.zookeeper\".level=WARN diff --git a/integration-tests/keycloak/pom.xml b/integration-tests/keycloak/pom.xml index aa3f13e65f5f8..6bb4d1c866670 100644 --- a/integration-tests/keycloak/pom.xml +++ b/integration-tests/keycloak/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/AdminResource.java b/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/AdminResource.java index 29935b72dadc0..f261e278ede34 100644 --- a/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/AdminResource.java +++ b/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/AdminResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * 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 io.quarkus.it.keycloak; import javax.annotation.security.RolesAllowed; diff --git a/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/ConfidentialResource.java b/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/ConfidentialResource.java index 09ad8eb6e4919..98fbca75fdf0b 100644 --- a/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/ConfidentialResource.java +++ b/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/ConfidentialResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * 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 io.quarkus.it.keycloak; import javax.ws.rs.GET; diff --git a/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/UsersResource.java b/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/UsersResource.java index 6751c35c0d446..4603499943ab9 100644 --- a/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/UsersResource.java +++ b/integration-tests/keycloak/src/main/java/io/quarkus/it/keycloak/UsersResource.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * 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 io.quarkus.it.keycloak; import javax.annotation.security.RolesAllowed; diff --git a/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationInGraalITCase.java b/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationInGraalITCase.java index dc1c40ee48ab9..9a31e2c1b45cd 100644 --- a/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationInGraalITCase.java +++ b/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationInGraalITCase.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * 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 io.quarkus.it.keycloak; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java b/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java index b79df7babba35..21e27c9d49665 100644 --- a/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java +++ b/integration-tests/keycloak/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java @@ -1,18 +1,3 @@ -/** - * Copyright 2019 Red Hat, Inc, and individual contributors. - *

- * 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 io.quarkus.it.keycloak; import static org.hamcrest.Matchers.equalTo; diff --git a/integration-tests/main/pom.xml b/integration-tests/main/pom.xml index 3e1929f8a1f32..f6b98bb70e350 100644 --- a/integration-tests/main/pom.xml +++ b/integration-tests/main/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java index f6724b41572e5..112b84d63899b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.arc; import javax.enterprise.context.RequestScoped; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java index 60a5a91fb6059..0afcf0bf755cd 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.arc; import javax.inject.Inject; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/somepackage/Superclass.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/somepackage/Superclass.java index 170ffcd65c2f5..ffebfa8eb99ae 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/somepackage/Superclass.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/somepackage/Superclass.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.arc.somepackage; public class Superclass { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java b/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java index 995b7b5e86a1e..09f2080536b50 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.config; import javax.inject.Inject; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java index a364dce16cfdb..c1e366ca81db6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.corestuff; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SomeReflectionObject.java b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SomeReflectionObject.java index bcb36ca5f00f9..2a7f5d9ef97a5 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SomeReflectionObject.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SomeReflectionObject.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.corestuff; public class SomeReflectionObject { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java index 4f228e85a20d6..b1392bc677c5c 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.datasource; import java.sql.Connection; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java index 6bddb5a8b818d..df577ebbecc68 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.datasource; import java.sql.Connection; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java index 84a6dfbbf3bb5..96bbf35a8eb48 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.faulttolerance; import java.util.concurrent.atomic.AtomicInteger; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/TestResource.java b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/TestResource.java index 8e996607e8fcb..3a7b3ce9a1c00 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/TestResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/TestResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.faulttolerance; import java.util.concurrent.atomic.AtomicInteger; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/health/SimpleHealthCheck.java b/integration-tests/main/src/main/java/io/quarkus/it/health/SimpleHealthCheck.java index d64c3c5ba2f97..62cc2beba0ec6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/health/SimpleHealthCheck.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/health/SimpleHealthCheck.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.health; import java.util.Map; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java index b05241a07138b..6e1a6cb82ef56 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.persistence.Embeddable; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Animal.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Animal.java index e5119a6d7f650..6ec70356bb9ae 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Animal.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Animal.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; /** diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java index 71857594e164d..d481a8f00e2cb 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.persistence.Embedded; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java index 8ccf783f4b417..cc0b91adf7685 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.persistence.MappedSuperclass; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java index d2575eef0fa35..d77b4a83ea566 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java index 09ea546e05024..43e62198943fb 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java index d2b9c188f7462..5853a1d653468 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JpaProducer.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JpaProducer.java index 39f5830a7dea7..714230433eff2 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JpaProducer.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JpaProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.enterprise.context.Dependent; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/NotAnEntityNotReferenced.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/NotAnEntityNotReferenced.java index 88c18314f72e0..afd8c1f127591 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/NotAnEntityNotReferenced.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/NotAnEntityNotReferenced.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; /** diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java index 205645b9839aa..62f533a29ac8d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.persistence.CascadeType; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java index 84a2e385d7a66..fe669f03e141b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.persistence.Entity; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java index eda16630adc85..21bf71f1c54a6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.jpa; import javax.persistence.Embeddable; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/metrics/MetricsResource.java b/integration-tests/main/src/main/java/io/quarkus/it/metrics/MetricsResource.java index 4457742b1a3fb..970bebd7584c3 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/metrics/MetricsResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/metrics/MetricsResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.metrics; import javax.inject.Inject; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/opentracing/OpenTracingResource.java b/integration-tests/main/src/main/java/io/quarkus/it/opentracing/OpenTracingResource.java index 56a341a41daca..ce7d3cea4319d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/opentracing/OpenTracingResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/opentracing/OpenTracingResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.opentracing; import javax.ws.rs.GET; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java b/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java index f0c227c00b174..4a52774b70f77 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.reactive; import javax.ws.rs.GET; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java index c6322231dae57..fcfa1b3f8a4bf 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import java.net.URL; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/CollectionType.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/CollectionType.java index a010fedac525b..fb75e48c926a6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/CollectionType.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/CollectionType.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; public class CollectionType { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ComponentType.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ComponentType.java index 5539b6b7615e6..c07d70736a788 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ComponentType.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ComponentType.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import java.util.HashSet; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java index 287aca09428b6..64e3fe8be5426 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import java.util.List; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java index 29dda6e09c98e..0e587cfc82461 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import javax.inject.Inject; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java index aade595865692..3bd261f0efefa 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import javax.ws.rs.GET; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/SubComponent.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/SubComponent.java index fc99a841602d2..acfaf28748319 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/SubComponent.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/SubComponent.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import java.util.ArrayList; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java index 412ec9161c937..040ff7b11becc 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.rest; import java.io.UnsupportedEncodingException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java b/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java index 3a19762190015..90d0ed6799798 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.transaction; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java index b573d5e357b7c..956a95354af9a 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.validator; import java.util.Set; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java b/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java index 835990c537454..2292d5f948c4b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.web; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java b/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java index 3b40e1f66949f..a95550ddf5103 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.web; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java b/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java index 0aad600653fe3..3bb818e7791c9 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.web; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java index 0cfc88d18b282..db1ef31b3492d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java index 0fcc5db9b732a..96523e064684b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import java.io.BufferedReader; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java index b40fa0f966306..036bb8c390f3c 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java index 91992010ce4ca..676c1e01f24c9 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import java.io.IOException; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/Dto.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/Dto.java index 211d59a9c8c93..3e2b1734aac73 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/Dto.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/Dto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; public class Dto { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java index e40046243fa03..b428125c38570 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import javax.websocket.OnMessage; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java index 30ab5894e822e..7244e59d5a7c7 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import javax.websocket.OnMessage; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java index b091a819a8d87..15c2234bd15e6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import java.io.Reader; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java index db1c57c77b4d3..22b8f53fe4446 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.websocket; import java.io.Writer; diff --git a/integration-tests/main/src/main/resources/META-INF/beans.xml b/integration-tests/main/src/main/resources/META-INF/beans.xml index c11c621e85496..139597f9cb07c 100644 --- a/integration-tests/main/src/main/resources/META-INF/beans.xml +++ b/integration-tests/main/src/main/resources/META-INF/beans.xml @@ -1,16 +1,2 @@ - + diff --git a/integration-tests/main/src/main/resources/META-INF/persistence.xml b/integration-tests/main/src/main/resources/META-INF/persistence.xml index 570fdc0e5d804..956cee5c6cbaf 100644 --- a/integration-tests/main/src/main/resources/META-INF/persistence.xml +++ b/integration-tests/main/src/main/resources/META-INF/persistence.xml @@ -1,19 +1,3 @@ - - - A page diff --git a/integration-tests/main/src/main/resources/application.properties b/integration-tests/main/src/main/resources/application.properties index 1e7fbc85d4ee4..f2317e8ff7003 100644 --- a/integration-tests/main/src/main/resources/application.properties +++ b/integration-tests/main/src/main/resources/application.properties @@ -1,19 +1,3 @@ -# -# Copyright 2018 Red Hat, Inc. -# -# 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. -# - io.quarkus.it.rest.RestInterface/mp-rest/url=${test.url} org.eclipse.microprofile.rest.client.propagateHeaders=header-name # Disabled by default as it establishes external connections. diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationITCase.java index d42fb1ff2d087..2a898f249cd74 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationTestCase.java index 8536a6d4f92ed..992cd8d3b892b 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ContextPropagationTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/CoreReflectionInGraalITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/CoreReflectionInGraalITCase.java index 03989a4b39343..bf944adbcfc35 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/CoreReflectionInGraalITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/CoreReflectionInGraalITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionITCase.java index 39fc81250f94b..f9234cd106f7d 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionTestCase.java index 5e53ab8522222..326b8d9c038a6 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/DataSourceTransactionTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceITCase.java index d59dbf5d2894c..987325a422cc6 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceTestCase.java index a62a7cadecb85..6cd8b34aa9778 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/DatasourceTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexITCase.java index cf0d011c39a1b..dead2179352a9 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexTestCase.java index bc2ed97bd823a..0b3165b4deccb 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ExternalIndexTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceITCase.java index 026604789b529..16a7a764677c0 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceTestCase.java index 6b5f543766256..979e28ca7ad72 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/FaultToleranceTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import java.io.ByteArrayOutputStream; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/HealthCheckTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/HealthCheckTestCase.java index 92c20ccb2b1e8..8acb760668efb 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/HealthCheckTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/HealthCheckTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import javax.inject.Inject; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/HealthITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/HealthITCase.java index 43ac702d97fac..662cf15012937 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/HealthITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/HealthITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/HealthTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/HealthTestCase.java index d9cbfbd6f6793..f0b4bdb0fbd79 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/HealthTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/HealthTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.containsInAnyOrder; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapITCase.java index 2cd770b76e413..fed4979115e90 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapTestCase.java index 39093eb362b11..1d042f8d187ba 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JPABootstrapTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JPAEntityManagerInjectionTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JPAEntityManagerInjectionTestCase.java index 5eba0591e6435..7cf296300f561 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JPAEntityManagerInjectionTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JPAEntityManagerInjectionTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JPAReflectionInGraalITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JPAReflectionInGraalITCase.java index c5b451aa88131..a2f53ab2e85e8 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JPAReflectionInGraalITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JPAReflectionInGraalITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSITCase.java index 94363e11ddd22..9a4493b48991c 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java index a1af99525b59f..cb6ed6c12df4a 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsITCase.java index ec16c7b77c87a..08738e7385ca7 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsTestCase.java index b99b14d8ed946..7a0b2eb04ba76 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MetricsTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.containsString; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigITCase.java index d68b998638851..d1ca5bea5f8d5 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigTestCase.java index 245e4e85550ca..4c181d8ba3154 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MicroProfileConfigTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiITCase.java index 8b5af12c58b5a..f08a30d6b6454 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java index 22447bf2461f6..a00189c9a3471 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import java.io.ByteArrayInputStream; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingITCase.java index a67f8088e1973..0da158845c336 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingTestCase.java index 62b829c6a35de..2d6e833d568a6 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenTracingTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsITCase.java index 1b801e0346194..a287c96fa2b29 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsTestCase.java index 65136f897dc40..d3b5b5791f461 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ReactiveStreamsOperatorsTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeITCase.java index 9edf11fc12a21..2fe5aae46f396 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeTestCase.java index ad15df6045b72..b1fb7ab4bfdb2 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/RequestScopeTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientITCase.java index 874460edf0b00..97bab1187ef54 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java index a1dddf6a9d244..c018fe19f2fde 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.*; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ServletITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ServletITCase.java index 8a8b5c818b4f2..16b6ca5b8b652 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ServletITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ServletITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ServletTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ServletTestCase.java index db946e5fbcef5..ccae29f1c2702 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ServletTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ServletTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.containsString; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUIITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUIITCase.java index 4ed756d710190..a64ae8a9e3b8a 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUIITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUIITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUITestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUITestCase.java index d240c33b58058..fb3899164fe25 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUITestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/SwaggerUITestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.containsString; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TestMockTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TestMockTestCase.java index 4cfb749bbbc4e..4c68c3170f87e 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TestMockTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TestMockTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TestResources.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TestResources.java index 3a2e96db38218..2c8f12d2518df 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TestResources.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TestResources.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionITCase.java index d6d32c9e3594b..c73efa84f081f 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionTestCase.java index be9e9a864912a..f229df74474ad 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorITCase.java index 5b7ecece1ea5e..8ab8c2256792c 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java index f629651155cae..e42a47058abb1 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import java.io.ByteArrayOutputStream; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketITCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketITCase.java index 25cd5db6e03b4..9497ec31a30ae 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketITCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java index b6bd73fc190d0..e4554369b230e 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.main; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 9d3bba489e1ad..544eef987542c 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -1,20 +1,4 @@ - - @@ -66,6 +50,7 @@ reactive-pg-client test-extension amazon-lambda + azure-functions-resteasy diff --git a/integration-tests/reactive-pg-client/pom.xml b/integration-tests/reactive-pg-client/pom.xml index 19ae05a1378ac..98a67bfab85a7 100644 --- a/integration-tests/reactive-pg-client/pom.xml +++ b/integration-tests/reactive-pg-client/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java b/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java index 4dc116adb980a..681d8f74715b6 100644 --- a/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java +++ b/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.reactive.pg.client; import java.util.concurrent.CompletionStage; diff --git a/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/FruitsEndpointTest.java b/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/FruitsEndpointTest.java index 740f5fd34ff55..ee796e4eb17da 100644 --- a/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/FruitsEndpointTest.java +++ b/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/FruitsEndpointTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.reactive.pg.client; import static io.restassured.RestAssured.given; diff --git a/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/NativeFruitsEndpointIT.java b/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/NativeFruitsEndpointIT.java index 6fdc94cc0c86d..382924efd0181 100644 --- a/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/NativeFruitsEndpointIT.java +++ b/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/NativeFruitsEndpointIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.reactive.pg.client; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/shared-library/pom.xml b/integration-tests/shared-library/pom.xml index 2af1d118a2cfd..8b98c75a0d269 100644 --- a/integration-tests/shared-library/pom.xml +++ b/integration-tests/shared-library/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java index 89d13d5517c7e..ffc88873eeecf 100644 --- a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java +++ b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.shared; import javax.ws.rs.GET; diff --git a/integration-tests/shared-library/src/main/resources/META-INF/beans.xml b/integration-tests/shared-library/src/main/resources/META-INF/beans.xml index c11c621e85496..139597f9cb07c 100644 --- a/integration-tests/shared-library/src/main/resources/META-INF/beans.xml +++ b/integration-tests/shared-library/src/main/resources/META-INF/beans.xml @@ -1,16 +1,2 @@ - + diff --git a/integration-tests/spring-di/pom.xml b/integration-tests/spring-di/pom.xml index ebb4f65ca3517..dbd869047f1b6 100644 --- a/integration-tests/spring-di/pom.xml +++ b/integration-tests/spring-di/pom.xml @@ -1,19 +1,4 @@ - diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java index 0fc7cba3423d6..a6f94bbf36b2d 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.beans.factory.annotation.Qualifier; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/Dummy.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/Dummy.java index 3efb538f3a5af..8ced53a3751dc 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/Dummy.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/Dummy.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.stereotype.Repository; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/GreeterBean.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/GreeterBean.java index 6e5a7891da29b..6445520e2a1ea 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/GreeterBean.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/GreeterBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.beans.factory.annotation.Autowired; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java index 8e9a5c9d2a963..6cf80fd105862 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import javax.inject.Inject; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MessageProducer.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MessageProducer.java index f0a3f9d8a347e..6f8cc73e5189a 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MessageProducer.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MessageProducer.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.beans.factory.annotation.Value; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MultiplierStringFunction.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MultiplierStringFunction.java index 930c02250751e..f9798506d3a29 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MultiplierStringFunction.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MultiplierStringFunction.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.stereotype.Component; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java index 1b682f65cfd5a..77707e09985a7 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import javax.ws.rs.ApplicationPath; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyService.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyService.java index 199fa1272eed0..1de1bf66d63ba 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyService.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyService.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.lang.annotation.Documented; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/NoOpSingleStringFunction.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/NoOpSingleStringFunction.java index 834663b1135e4..4b623f1ff339d 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/NoOpSingleStringFunction.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/NoOpSingleStringFunction.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.stereotype.Component; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/OtherDummy.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/OtherDummy.java index 493153ba6ce24..0dd61117bc297 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/OtherDummy.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/OtherDummy.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import org.springframework.beans.factory.annotation.Qualifier; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/PrototypeService.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/PrototypeService.java index d60d410e474e5..16dbea8357977 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/PrototypeService.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/PrototypeService.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.lang.annotation.Documented; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java index fa828018adc3b..08669ff1be239 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.util.concurrent.atomic.AtomicInteger; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestService.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestService.java index 15e34e8d046d8..25c3cd685a0a5 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestService.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestService.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.lang.annotation.Documented; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionBean.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionBean.java index 4bf78c69d96d1..3128aac5bf7b4 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionBean.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionBean.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.util.concurrent.atomic.AtomicInteger; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionService.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionService.java index a4b9e87e0d024..f7378092e4423 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionService.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/SessionService.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.lang.annotation.Documented; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/StringFunction.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/StringFunction.java index 3dbcee27006ae..213e0c8d2d4c2 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/StringFunction.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/StringFunction.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import java.util.function.Function; diff --git a/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceIT.java b/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceIT.java index e365aa786466a..7cf0d9e25c548 100644 --- a/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceIT.java +++ b/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceTest.java b/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceTest.java index fc0f02399ee73..690e58ed961ec 100644 --- a/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceTest.java +++ b/integration-tests/spring-di/src/test/java/io/quarkus/it/spring/InjectedSpringBeansResourceTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.spring; import static io.restassured.RestAssured.when; diff --git a/integration-tests/test-extension/pom.xml b/integration-tests/test-extension/pom.xml index 7050b795510b2..505a63e008d90 100644 --- a/integration-tests/test-extension/pom.xml +++ b/integration-tests/test-extension/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/integration-tests/test-extension/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java b/integration-tests/test-extension/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java index d47ee35231c32..ad64cf932fd6b 100644 --- a/integration-tests/test-extension/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java +++ b/integration-tests/test-extension/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.extension; import static java.lang.String.format; diff --git a/integration-tests/test-extension/src/test/java/io/quarkus/it/extension/FinalFieldReflectionInGraalITCase.java b/integration-tests/test-extension/src/test/java/io/quarkus/it/extension/FinalFieldReflectionInGraalITCase.java index bf7019442bc44..04fc9902e52bf 100644 --- a/integration-tests/test-extension/src/test/java/io/quarkus/it/extension/FinalFieldReflectionInGraalITCase.java +++ b/integration-tests/test-extension/src/test/java/io/quarkus/it/extension/FinalFieldReflectionInGraalITCase.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.it.extension; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java index e59e9957b5986..beb2d1f0b5800 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.vertx; import static javax.ws.rs.core.MediaType.APPLICATION_JSON; diff --git a/integration-tests/vertx/src/main/resources/META-INF/beans.xml b/integration-tests/vertx/src/main/resources/META-INF/beans.xml index c11c621e85496..139597f9cb07c 100644 --- a/integration-tests/vertx/src/main/resources/META-INF/beans.xml +++ b/integration-tests/vertx/src/main/resources/META-INF/beans.xml @@ -1,16 +1,2 @@ - + diff --git a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderIT.java b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderIT.java index 00fb77337ac4c..8aa9718ec3c66 100644 --- a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderIT.java +++ b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.vertx; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderTest.java b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderTest.java index fb0ce1e800ffc..cd8638919d67e 100644 --- a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderTest.java +++ b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonReaderTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.vertx; import static io.restassured.RestAssured.given; diff --git a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterIT.java b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterIT.java index 730b2942bf67b..d2c5e78761096 100644 --- a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterIT.java +++ b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterIT.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.vertx; import io.quarkus.test.junit.SubstrateTest; diff --git a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterTest.java b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterTest.java index 258bd4f3a8677..3dbeaf1811409 100644 --- a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterTest.java +++ b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/JsonWriterTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * Red Hat 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: - * - * 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 io.quarkus.it.vertx; import static org.hamcrest.CoreMatchers.equalTo; diff --git a/pom.xml b/pom.xml index 297854f1151cd..97c03b94b211f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,20 +1,4 @@ - - @@ -278,7 +262,7 @@ - + diff --git a/tcks/microprofile-rest-client/pom.xml b/tcks/microprofile-rest-client/pom.xml new file mode 100644 index 0000000000000..8f0c65d507389 --- /dev/null +++ b/tcks/microprofile-rest-client/pom.xml @@ -0,0 +1,81 @@ + + + + io.quarkus + quarkus-tck-parent + 999-SNAPSHOT + ../pom.xml + + 4.0.0 + + quarkus-tck-microprofile-rest-client + Quarkus - TCK - MicroProfile REST Client + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + tck-suite.xml + + + + false + + + + + org.eclipse.microprofile.rest.client:microprofile-rest-client-tck + + + + + uk.co.deliverymind + wiremock-maven-plugin + 2.7.0 + + + generate-test-sources + + run + + +

target/classes + --port=8765 --verbose + + + + + + + + + io.quarkus + quarkus-arquillian + + + io.quarkus + quarkus-smallrye-rest-client + + + org.eclipse.microprofile.rest.client + microprofile-rest-client-tck + ${microprofile-rest-client-api.version} + + + org.eclipse.jetty + jetty-servlet + + + org.eclipse.jetty + jetty-servlets + + + + +
diff --git a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/SkipProblematicTests.java b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/SkipProblematicTests.java new file mode 100644 index 0000000000000..754067d63a555 --- /dev/null +++ b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/SkipProblematicTests.java @@ -0,0 +1,60 @@ +package io.quarkus.tck.restclient; + +import java.lang.reflect.Constructor; +import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.microprofile.rest.client.tck.ClientHeaderParamTest; +import org.eclipse.microprofile.rest.client.tck.InvokeWithJsonBProviderTest; +import org.eclipse.microprofile.rest.client.tck.InvokeWithJsonPProviderTest; +import org.eclipse.microprofile.rest.client.tck.asynctests.AsyncMethodTest; +import org.testng.IAnnotationTransformer; +import org.testng.IConfigurable; +import org.testng.IConfigureCallBack; +import org.testng.ITestNGMethod; +import org.testng.ITestResult; +import org.testng.annotations.ITestAnnotation; + +public class SkipProblematicTests implements IConfigurable, IAnnotationTransformer { + + private static final Set TESTS_THAT_THROW_CLASS_NOT_FOUND = new HashSet<>(Arrays.asList( + InvokeWithJsonBProviderTest.class.getName(), InvokeWithJsonPProviderTest.class.getName(), + ClientHeaderParamTest.class.getName())); + + private static final Set RACEY_TESTS = new HashSet<>(Arrays.asList( + //testAsyncInvocationInterceptorProvider is racey, as there is no guarantee the + //removeThreadId has been set by the time the test attempts to assert it, this is + //because the removeContext action happens after the response is provided, so the + //completion stage is complete before this method is called + AsyncMethodTest.class.getName())); + + private static final Set SKIP; + + static { + SKIP = new HashSet<>(); + SKIP.addAll(TESTS_THAT_THROW_CLASS_NOT_FOUND); + SKIP.addAll(RACEY_TESTS); + } + + // ensures that the methods annotated with @BeforeTest don't run (since this is where the exception is thrown) + @Override + public void run(IConfigureCallBack callBack, ITestResult testResult) { + ITestNGMethod method = testResult.getMethod(); + if (SKIP.contains(method.getTestClass().getName())) { + return; + } + + callBack.runConfigurationMethod(testResult); + } + + // ensures the actual tests method don't run + @Override + public void transform(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) { + String className = testClass != null ? testClass.getName() : testMethod.getDeclaringClass().getName(); + if (SKIP.contains(className)) { + annotation.setEnabled(false); + } + } +} diff --git a/tcks/microprofile-rest-client/tck-suite.xml b/tcks/microprofile-rest-client/tck-suite.xml new file mode 100644 index 0000000000000..e86182d7fc8de --- /dev/null +++ b/tcks/microprofile-rest-client/tck-suite.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tcks/pom.xml b/tcks/pom.xml index 2357346cca32d..7f2924baeae05 100644 --- a/tcks/pom.xml +++ b/tcks/pom.xml @@ -16,6 +16,7 @@ microprofile-config microprofile-health + microprofile-rest-client diff --git a/test-framework/arquillian/pom.xml b/test-framework/arquillian/pom.xml index ce9ce02eaf194..c475f2ea2c39d 100644 --- a/test-framework/arquillian/pom.xml +++ b/test-framework/arquillian/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/test-framework/common/pom.xml b/test-framework/common/pom.xml index d649e4706fa3a..c9575da60a148 100644 --- a/test-framework/common/pom.xml +++ b/test-framework/common/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/NativeImageLauncher.java b/test-framework/common/src/main/java/io/quarkus/test/common/NativeImageLauncher.java index bc8d8af95fca4..d4865e1a63821 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/NativeImageLauncher.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/NativeImageLauncher.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.common; import java.io.Closeable; diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/PathTestHelper.java b/test-framework/common/src/main/java/io/quarkus/test/common/PathTestHelper.java index 769a536f87ace..bd22dcdaade88 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/PathTestHelper.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/PathTestHelper.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.common; import java.io.File; diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/PropertyTestUtil.java b/test-framework/common/src/main/java/io/quarkus/test/common/PropertyTestUtil.java index 7d4f2f3277fe5..340c52b70c516 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/PropertyTestUtil.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/PropertyTestUtil.java @@ -1,18 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.common; import java.io.File; diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResource.java b/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResource.java index d0e2054eecc26..2363ff4ed6128 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResource.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.common; import java.lang.annotation.Documented; diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResourceLifecycleManager.java b/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResourceLifecycleManager.java index bcd5769640414..7e39dfa25f9da 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResourceLifecycleManager.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/QuarkusTestResourceLifecycleManager.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.common; import java.util.Map; diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java b/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java index 9ef973fc78c85..7ffbf4fec729d 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/TestResourceManager.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.common; import static io.quarkus.test.common.PathTestHelper.getTestClassesLocation; @@ -65,20 +49,22 @@ public Map start() { } public void stop() { - for (Map.Entry e : oldSystemProps.entrySet()) { - if (e.getValue() == null) { - System.clearProperty(e.getKey()); - } else { - System.setProperty(e.getKey(), e.getValue()); - } + if (oldSystemProps != null) { + for (Map.Entry e : oldSystemProps.entrySet()) { + if (e.getValue() == null) { + System.clearProperty(e.getKey()); + } else { + System.setProperty(e.getKey(), e.getValue()); + } + } } oldSystemProps = null; for (QuarkusTestResourceLifecycleManager testResource : testResources) { try { testResource.stop(); } catch (Exception e) { - throw new RuntimeException("Unable to start Quarkus test resource " + testResource, e); + throw new RuntimeException("Unable to stop Quarkus test resource " + testResource, e); } } } diff --git a/test-framework/common/src/main/resources/META-INF/beans.xml b/test-framework/common/src/main/resources/META-INF/beans.xml index e69de29bb2d1d..139597f9cb07c 100644 --- a/test-framework/common/src/main/resources/META-INF/beans.xml +++ b/test-framework/common/src/main/resources/META-INF/beans.xml @@ -0,0 +1,2 @@ + + diff --git a/test-framework/h2/pom.xml b/test-framework/h2/pom.xml index ce235c96da3c4..c50619a433f3a 100644 --- a/test-framework/h2/pom.xml +++ b/test-framework/h2/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/test-framework/h2/src/main/java/io/quarkus/test/h2/H2DatabaseTestResource.java b/test-framework/h2/src/main/java/io/quarkus/test/h2/H2DatabaseTestResource.java index 6a64e164764f3..ee7cd5aca29a5 100644 --- a/test-framework/h2/src/main/java/io/quarkus/test/h2/H2DatabaseTestResource.java +++ b/test-framework/h2/src/main/java/io/quarkus/test/h2/H2DatabaseTestResource.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.h2; import java.sql.SQLException; diff --git a/test-framework/junit4/pom.xml b/test-framework/junit4/pom.xml index 8fd44487c36bc..c96a7f12001be 100644 --- a/test-framework/junit4/pom.xml +++ b/test-framework/junit4/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusRunListener.java b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusRunListener.java index 9097623b63ebe..4f88b21b099f1 100644 --- a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusRunListener.java +++ b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusRunListener.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit4; import java.util.ArrayList; diff --git a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusTestRunner.java b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusTestRunner.java index 4077c04777117..42c0a74b3f04d 100644 --- a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusTestRunner.java +++ b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/AbstractQuarkusTestRunner.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit4; import java.util.function.BiFunction; diff --git a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/QuarkusTest.java b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/QuarkusTest.java index 845bd05d913a4..20be68c071bfc 100644 --- a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/QuarkusTest.java +++ b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/QuarkusTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit4; import static io.quarkus.test.common.PathTestHelper.getAppClassLocation; diff --git a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/SubstrateTest.java b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/SubstrateTest.java index a3e1a09634fdb..39fdfffe1c36b 100644 --- a/test-framework/junit4/src/main/java/io/quarkus/test/junit4/SubstrateTest.java +++ b/test-framework/junit4/src/main/java/io/quarkus/test/junit4/SubstrateTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit4; import java.io.IOException; diff --git a/test-framework/junit5-internal/pom.xml b/test-framework/junit5-internal/pom.xml index 8f2111d37e398..9f40a6500123d 100644 --- a/test-framework/junit5-internal/pom.xml +++ b/test-framework/junit5-internal/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusUnitTest.java b/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusUnitTest.java index f9f9ba8c372c5..315b3faec8737 100644 --- a/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusUnitTest.java +++ b/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusUnitTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/test-framework/junit5/pom.xml b/test-framework/junit5/pom.xml index 1278d125049d3..554d134a3d365 100644 --- a/test-framework/junit5/pom.xml +++ b/test-framework/junit5/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTest.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTest.java index 831115d18cb0c..aec439aa1bdba 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTest.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit; import java.lang.annotation.ElementType; diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java index 9e9e79d066326..acddae105d8a3 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit; import static io.quarkus.test.common.PathTestHelper.getAppClassLocation; @@ -304,7 +288,11 @@ public Object createTestInstance(TestInstanceFactoryContext factoryContext, Exte store.put(ExtensionState.class.getName(), state); } catch (RuntimeException e) { - testResourceManager.stop(); + try { + testResourceManager.stop(); + } catch (Exception ex) { + e.addSuppressed(ex); + } failedBoot = true; throw e; } diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/SubstrateTest.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/SubstrateTest.java index b66233658fe95..39fe443f915ff 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/SubstrateTest.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/SubstrateTest.java @@ -1,19 +1,3 @@ -/* - * Copyright 2019 Red Hat, Inc. - * - * 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 io.quarkus.test.junit; import java.lang.annotation.ElementType; diff --git a/test-framework/pom.xml b/test-framework/pom.xml index b3c482469627b..750ee0bb8d5df 100644 --- a/test-framework/pom.xml +++ b/test-framework/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/war-launcher/launcher/pom.xml b/war-launcher/launcher/pom.xml index 4c18e350dc892..6700e272f90e2 100644 --- a/war-launcher/launcher/pom.xml +++ b/war-launcher/launcher/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/war-launcher/launcher/src/main/java/io/quarkus/legacy/launcher/Main.java b/war-launcher/launcher/src/main/java/io/quarkus/legacy/launcher/Main.java index a7f83770ea0a8..2c13f0af8c3cf 100644 --- a/war-launcher/launcher/src/main/java/io/quarkus/legacy/launcher/Main.java +++ b/war-launcher/launcher/src/main/java/io/quarkus/legacy/launcher/Main.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.legacy.launcher; import java.io.File; diff --git a/war-launcher/pom.xml b/war-launcher/pom.xml index ef27ab1287e99..001ae339ba9b1 100644 --- a/war-launcher/pom.xml +++ b/war-launcher/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/war-launcher/runner/pom.xml b/war-launcher/runner/pom.xml index 0e312c89abc26..660f3635f5cf9 100644 --- a/war-launcher/runner/pom.xml +++ b/war-launcher/runner/pom.xml @@ -1,20 +1,4 @@ - - diff --git a/war-launcher/runner/src/main/java/io/quarkus/legacy/Main.java b/war-launcher/runner/src/main/java/io/quarkus/legacy/Main.java index 702efacfa3fbd..03173f9d3f3c1 100644 --- a/war-launcher/runner/src/main/java/io/quarkus/legacy/Main.java +++ b/war-launcher/runner/src/main/java/io/quarkus/legacy/Main.java @@ -1,19 +1,3 @@ -/* - * Copyright 2018 Red Hat, Inc. - * - * 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 io.quarkus.legacy; import java.io.FileInputStream;