diff --git a/.github/workflows/build-maven.yml b/.github/workflows/build-maven.yml index 56958dad2..66efa51dd 100644 --- a/.github/workflows/build-maven.yml +++ b/.github/workflows/build-maven.yml @@ -32,4 +32,4 @@ jobs: ${{ runner.os }}-maven- - name: Run Maven - run: mvn -B clean verify com.mycila:license-maven-plugin:check + run: mvn -B clean -P checkFormat verify diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04c521e0b..ebf5e2eea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,7 +134,8 @@ jobs: -DpushChanges=${PUSH_CHANGES} \ -DremoteTagging=${PUSH_CHANGES} \ -DlocalCheckout=${{ inputs.dryRun }} \ - -Darguments='-P license-header-check -Dskip.central.release=${SKIP_REPO_DEPLOY} -Dskip.camunda.release=${SKIP_REPO_DEPLOY} -Dgpg.passphrase="${{ steps.secrets.outputs.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }}"' + -P-autoFormat \ + -Darguments='-P-autoFormat -Dskip.central.release=${SKIP_REPO_DEPLOY} -Dskip.camunda.release=${SKIP_REPO_DEPLOY} -Dgpg.passphrase="${{ steps.secrets.outputs.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }}"' # switch to the directory to which maven checks out the release tag # see https://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html#workingDirectory diff --git a/pom.xml b/pom.xml index 711bcc0cf..6d3ada177 100644 --- a/pom.xml +++ b/pom.xml @@ -241,14 +241,6 @@ --diff - - - validate - - format - - - @@ -397,60 +389,98 @@ + + + com.mycila + license-maven-plugin + + + **/*.scala + **/*.java + + + SLASHSTAR_STYLE + SLASHSTAR_STYLE + + + + + - license-header-check - - 4.2 - - Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH - under one or more contributor license agreements. See the NOTICE file - distributed with this work for additional information regarding copyright - ownership. Camunda licenses this file to you under the Apache License, - Version 2.0; you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - + autoFormat + + true + - + + org.antipathy + mvn-scalafmt_2.12 + + + scala-format + validate + + format + + + + + com.mycila license-maven-plugin - ${plugin.version.license} - - false - - **/*.scala - **/*.java - - - SLASHSTAR_STYLE - SLASHSTAR_STYLE - - - add-license-header - compile + add-license + + format + + process-sources + + + + + + + + + + checkFormat + + + + org.antipathy + mvn-scalafmt_2.12 + + + scala-format + validate format + + + com.mycila + license-maven-plugin + + + check-license + + check + + validate + + + diff --git a/src/main/scala/org/camunda/feel/FeelEngineClock.scala b/src/main/scala/org/camunda/feel/FeelEngineClock.scala index 49ea711f4..1b1fcb805 100644 --- a/src/main/scala/org/camunda/feel/FeelEngineClock.scala +++ b/src/main/scala/org/camunda/feel/FeelEngineClock.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel import java.time.ZonedDateTime diff --git a/src/main/scala/org/camunda/feel/api/EvaluationFailure.scala b/src/main/scala/org/camunda/feel/api/EvaluationFailure.scala index e2b651c9f..1a4723fa5 100644 --- a/src/main/scala/org/camunda/feel/api/EvaluationFailure.scala +++ b/src/main/scala/org/camunda/feel/api/EvaluationFailure.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api /** diff --git a/src/main/scala/org/camunda/feel/api/EvaluationFailureType.scala b/src/main/scala/org/camunda/feel/api/EvaluationFailureType.scala index f40564876..123a37ee5 100644 --- a/src/main/scala/org/camunda/feel/api/EvaluationFailureType.scala +++ b/src/main/scala/org/camunda/feel/api/EvaluationFailureType.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api sealed trait EvaluationFailureType diff --git a/src/main/scala/org/camunda/feel/api/EvaluationResult.scala b/src/main/scala/org/camunda/feel/api/EvaluationResult.scala index 3d4443401..cb5c8a131 100644 --- a/src/main/scala/org/camunda/feel/api/EvaluationResult.scala +++ b/src/main/scala/org/camunda/feel/api/EvaluationResult.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api import org.camunda.feel.FeelEngine.Failure diff --git a/src/main/scala/org/camunda/feel/api/FeelEngineApi.scala b/src/main/scala/org/camunda/feel/api/FeelEngineApi.scala index 4929a4e92..bcc2fc82d 100644 --- a/src/main/scala/org/camunda/feel/api/FeelEngineApi.scala +++ b/src/main/scala/org/camunda/feel/api/FeelEngineApi.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api import org.camunda.feel.FeelEngine diff --git a/src/main/scala/org/camunda/feel/api/FeelEngineBuilder.scala b/src/main/scala/org/camunda/feel/api/FeelEngineBuilder.scala index 8c85acb17..f7971d835 100644 --- a/src/main/scala/org/camunda/feel/api/FeelEngineBuilder.scala +++ b/src/main/scala/org/camunda/feel/api/FeelEngineBuilder.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api import org.camunda.feel.{FeelEngine, FeelEngineClock} diff --git a/src/main/scala/org/camunda/feel/api/ParseResult.scala b/src/main/scala/org/camunda/feel/api/ParseResult.scala index 495287e6a..ac63d6c1a 100644 --- a/src/main/scala/org/camunda/feel/api/ParseResult.scala +++ b/src/main/scala/org/camunda/feel/api/ParseResult.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api import org.camunda.feel.FeelEngine.Failure diff --git a/src/main/scala/org/camunda/feel/impl/builtin/BooleanBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/BooleanBuiltinFunctions.scala index 046d97fbb..9b0862acc 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/BooleanBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/BooleanBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.impl.builtin.BuiltinFunction.builtinFunction diff --git a/src/main/scala/org/camunda/feel/impl/builtin/BuiltinFunction.scala b/src/main/scala/org/camunda/feel/impl/builtin/BuiltinFunction.scala index b53cba0fe..20eb67fa6 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/BuiltinFunction.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/BuiltinFunction.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.logger diff --git a/src/main/scala/org/camunda/feel/impl/builtin/ContextBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/ContextBuiltinFunctions.scala index 6050ef1be..94480767b 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/ContextBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/ContextBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.context.Context diff --git a/src/main/scala/org/camunda/feel/impl/builtin/ConversionBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/ConversionBuiltinFunctions.scala index d947469ed..9ff6eb138 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/ConversionBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/ConversionBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.impl.builtin.BuiltinFunction.builtinFunction diff --git a/src/main/scala/org/camunda/feel/impl/builtin/ListBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/ListBuiltinFunctions.scala index a9053b8d1..4880c05aa 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/ListBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/ListBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.impl.builtin.BuiltinFunction.builtinFunction diff --git a/src/main/scala/org/camunda/feel/impl/builtin/NumericBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/NumericBuiltinFunctions.scala index 2ebca4369..e6f74e52d 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/NumericBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/NumericBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.Number diff --git a/src/main/scala/org/camunda/feel/impl/builtin/RangeBuiltinFunction.scala b/src/main/scala/org/camunda/feel/impl/builtin/RangeBuiltinFunction.scala index 3ecf6541c..43ad71207 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/RangeBuiltinFunction.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/RangeBuiltinFunction.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.impl.builtin.BuiltinFunction.builtinFunction diff --git a/src/main/scala/org/camunda/feel/impl/builtin/StringBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/StringBuiltinFunctions.scala index 4e3841661..e2d0ace89 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/StringBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/StringBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.impl.builtin.BuiltinFunction.builtinFunction diff --git a/src/main/scala/org/camunda/feel/impl/builtin/TemporalBuiltinFunctions.scala b/src/main/scala/org/camunda/feel/impl/builtin/TemporalBuiltinFunctions.scala index 6527f90c2..25743a0b0 100644 --- a/src/main/scala/org/camunda/feel/impl/builtin/TemporalBuiltinFunctions.scala +++ b/src/main/scala/org/camunda/feel/impl/builtin/TemporalBuiltinFunctions.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.{Date, FeelEngineClock} diff --git a/src/main/scala/org/camunda/feel/impl/interpreter/EvaluationFailureCollector.scala b/src/main/scala/org/camunda/feel/impl/interpreter/EvaluationFailureCollector.scala index 2efb7f68b..c733bb331 100644 --- a/src/main/scala/org/camunda/feel/impl/interpreter/EvaluationFailureCollector.scala +++ b/src/main/scala/org/camunda/feel/impl/interpreter/EvaluationFailureCollector.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.interpreter import org.camunda.feel.api.{EvaluationFailure, EvaluationFailureType} diff --git a/src/main/scala/org/camunda/feel/syntaxtree/ConstRangeBoundary.scala b/src/main/scala/org/camunda/feel/syntaxtree/ConstRangeBoundary.scala index abeb39d65..c17bf1326 100644 --- a/src/main/scala/org/camunda/feel/syntaxtree/ConstRangeBoundary.scala +++ b/src/main/scala/org/camunda/feel/syntaxtree/ConstRangeBoundary.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.syntaxtree sealed trait ConstRangeBoundary { diff --git a/src/main/scala/org/camunda/feel/syntaxtree/RangeBoundary.scala b/src/main/scala/org/camunda/feel/syntaxtree/RangeBoundary.scala index db7bb2773..885eacd9f 100644 --- a/src/main/scala/org/camunda/feel/syntaxtree/RangeBoundary.scala +++ b/src/main/scala/org/camunda/feel/syntaxtree/RangeBoundary.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.syntaxtree sealed trait RangeBoundary { diff --git a/src/test/scala/org/camunda/feel/api/context/SimpleTestContext.scala b/src/test/scala/org/camunda/feel/api/context/SimpleTestContext.scala index 54bcbc88b..230174fee 100644 --- a/src/test/scala/org/camunda/feel/api/context/SimpleTestContext.scala +++ b/src/test/scala/org/camunda/feel/api/context/SimpleTestContext.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.api.context import org.camunda.feel.context.VariableProvider diff --git a/src/test/scala/org/camunda/feel/impl/EvaluationResultMatchers.scala b/src/test/scala/org/camunda/feel/impl/EvaluationResultMatchers.scala index 6b1131c37..01c7881e8 100644 --- a/src/test/scala/org/camunda/feel/impl/EvaluationResultMatchers.scala +++ b/src/test/scala/org/camunda/feel/impl/EvaluationResultMatchers.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl import org.camunda.feel.api.{EvaluationFailure, EvaluationFailureType, EvaluationResult, FailedEvaluationResult, SuccessfulEvaluationResult} diff --git a/src/test/scala/org/camunda/feel/impl/SuppressedFailuresTest.scala b/src/test/scala/org/camunda/feel/impl/SuppressedFailuresTest.scala index 88ea7a543..4ef024b98 100644 --- a/src/test/scala/org/camunda/feel/impl/SuppressedFailuresTest.scala +++ b/src/test/scala/org/camunda/feel/impl/SuppressedFailuresTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl import org.camunda.feel.api.{EvaluationFailureType, EvaluationFailure} diff --git a/src/test/scala/org/camunda/feel/impl/TimeTravelClock.scala b/src/test/scala/org/camunda/feel/impl/TimeTravelClock.scala index 64683fabf..2b92d3c29 100644 --- a/src/test/scala/org/camunda/feel/impl/TimeTravelClock.scala +++ b/src/test/scala/org/camunda/feel/impl/TimeTravelClock.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl import java.time.ZonedDateTime diff --git a/src/test/scala/org/camunda/feel/impl/builtin/BuiltinRangeFunctionTest.scala b/src/test/scala/org/camunda/feel/impl/builtin/BuiltinRangeFunctionTest.scala index 3fe440368..de1d6a42e 100644 --- a/src/test/scala/org/camunda/feel/impl/builtin/BuiltinRangeFunctionTest.scala +++ b/src/test/scala/org/camunda/feel/impl/builtin/BuiltinRangeFunctionTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.builtin import org.camunda.feel.impl.FeelIntegrationTest diff --git a/src/test/scala/org/camunda/feel/impl/interpreter/EvaluationErrorMatcher.scala b/src/test/scala/org/camunda/feel/impl/interpreter/EvaluationErrorMatcher.scala index 7b110c5e1..632d0bea3 100644 --- a/src/test/scala/org/camunda/feel/impl/interpreter/EvaluationErrorMatcher.scala +++ b/src/test/scala/org/camunda/feel/impl/interpreter/EvaluationErrorMatcher.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.interpreter import org.camunda.feel.syntaxtree.{Val, ValError} diff --git a/src/test/scala/org/camunda/feel/impl/interpreter/InterpreterNonExistingVariableExpressionTest.scala b/src/test/scala/org/camunda/feel/impl/interpreter/InterpreterNonExistingVariableExpressionTest.scala index 58ef21efc..07489307e 100644 --- a/src/test/scala/org/camunda/feel/impl/interpreter/InterpreterNonExistingVariableExpressionTest.scala +++ b/src/test/scala/org/camunda/feel/impl/interpreter/InterpreterNonExistingVariableExpressionTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.interpreter; import org.camunda.feel.impl.FeelIntegrationTest diff --git a/src/test/scala/org/camunda/feel/impl/script/PinnedClock.scala b/src/test/scala/org/camunda/feel/impl/script/PinnedClock.scala index e6bd8ab95..6f4cecad8 100644 --- a/src/test/scala/org/camunda/feel/impl/script/PinnedClock.scala +++ b/src/test/scala/org/camunda/feel/impl/script/PinnedClock.scala @@ -1,3 +1,19 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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.camunda.feel.impl.script import java.time.{Instant, ZoneId, ZonedDateTime}