From 626f37ef392a09580b7cf972f52256a8699408ca Mon Sep 17 00:00:00 2001 From: rafaelbey <24432403+rafaelbey@users.noreply.github.com> Date: Mon, 7 Mar 2022 11:03:15 -0500 Subject: [PATCH] Pass through template copyright and licence to generated service runner classes, as agreed with OSS --- .../ServiceExecutionClassGenerator.ftl | 27 +++++++++---------- .../ModelToModelService.generated.java | 14 ++++++++++ .../ModelToModelServiceMulti.generated.java | 14 ++++++++++ ...elServiceWithMultipleParams.generated.java | 14 ++++++++++ ...rviceWithNMultiplicityParam.generated.java | 14 ++++++++++ ...odelToModelServiceWithParam.generated.java | 14 ++++++++++ .../service/RelationalService.generated.java | 14 ++++++++++ ...RelationalServiceWithParams.generated.java | 14 ++++++++++ 8 files changed, 111 insertions(+), 14 deletions(-) diff --git a/legend-sdlc-generation-service/src/main/resources/generation/service/ServiceExecutionClassGenerator.ftl b/legend-sdlc-generation-service/src/main/resources/generation/service/ServiceExecutionClassGenerator.ftl index 7cedb00fc0..83080a5b13 100644 --- a/legend-sdlc-generation-service/src/main/resources/generation/service/ServiceExecutionClassGenerator.ftl +++ b/legend-sdlc-generation-service/src/main/resources/generation/service/ServiceExecutionClassGenerator.ftl @@ -1,18 +1,17 @@ -<#-- -Copyright 2022 Goldman Sachs +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> package ${classPackage}; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelService.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelService.generated.java index 6ad4a50252..bbc16bffca 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelService.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelService.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceMulti.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceMulti.generated.java index 5d68572f6e..b009de4239 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceMulti.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceMulti.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithMultipleParams.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithMultipleParams.generated.java index d3cfba8145..dc807749a6 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithMultipleParams.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithMultipleParams.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithNMultiplicityParam.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithNMultiplicityParam.generated.java index 5b501980db..15a1b2e1b9 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithNMultiplicityParam.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithNMultiplicityParam.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithParam.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithParam.generated.java index 44a3cafc5c..4ed616baf1 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithParam.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/ModelToModelServiceWithParam.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalService.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalService.generated.java index 93f230e772..c9594f9b13 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalService.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalService.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists; diff --git a/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalServiceWithParams.generated.java b/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalServiceWithParams.generated.java index cb58bcdbab..01dac25507 100644 --- a/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalServiceWithParams.generated.java +++ b/legend-sdlc-generation-service/src/test/resources/generation/service/RelationalServiceWithParams.generated.java @@ -1,3 +1,17 @@ +// Copyright 2022 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org.finos.service; import org.eclipse.collections.api.factory.Lists;