You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/08/06 07:13:22 UTC
[camel-kameleon] branch main updated: Polished
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kameleon.git
The following commit(s) were added to refs/heads/main by this push:
new f4b4b45 Polished
f4b4b45 is described below
commit f4b4b4532f74e390491561eccb530021a073bc98
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Aug 6 09:13:14 2022 +0200
Polished
---
.../org/apache/camel/kameleon/WarmUpService.java | 34 +++++++--------
.../component/AbstractComponentService.java | 34 +++++++--------
.../component/ClassicComponentService.java | 34 +++++++--------
.../kameleon/component/ComponentResource.java | 34 +++++++--------
.../component/KameletComponentService.java | 34 +++++++--------
.../component/QuarkusComponentService.java | 34 +++++++--------
.../kameleon/config/ConfigurationResource.java | 34 +++++++--------
.../kameleon/generator/GeneratorResource.java | 34 +++++++--------
.../camel/kameleon/generator/GeneratorService.java | 48 +++++++++++-----------
.../camel/kameleon/model/AbstractComponent.java | 34 +++++++--------
.../camel/kameleon/model/CamelComponent.java | 34 +++++++--------
.../org/apache/camel/kameleon/model/CamelType.java | 34 +++++++--------
.../apache/camel/kameleon/model/CamelVersion.java | 34 +++++++--------
.../kameleon/model/KameleonConfiguration.java | 34 +++++++--------
.../camel/kameleon/model/KameletComponent.java | 34 +++++++--------
src/main/resources/application.properties | 4 +-
.../camel/kameleon/ComponentResourceTest.java | 34 +++++++--------
.../camel/kameleon/ConfigurationResourceTest.java | 34 +++++++--------
.../camel/kameleon/GeneratorResourceTest.java | 35 +++++++---------
19 files changed, 281 insertions(+), 350 deletions(-)
diff --git a/src/main/java/org/apache/camel/kameleon/WarmUpService.java b/src/main/java/org/apache/camel/kameleon/WarmUpService.java
index fdd2a61..5d63806 100644
--- a/src/main/java/org/apache/camel/kameleon/WarmUpService.java
+++ b/src/main/java/org/apache/camel/kameleon/WarmUpService.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon;
import io.quarkus.runtime.StartupEvent;
import io.quarkus.runtime.configuration.ProfileManager;
diff --git a/src/main/java/org/apache/camel/kameleon/component/AbstractComponentService.java b/src/main/java/org/apache/camel/kameleon/component/AbstractComponentService.java
index 0f8c176..c06beed 100644
--- a/src/main/java/org/apache/camel/kameleon/component/AbstractComponentService.java
+++ b/src/main/java/org/apache/camel/kameleon/component/AbstractComponentService.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.component;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.component;
import io.vertx.core.json.JsonObject;
diff --git a/src/main/java/org/apache/camel/kameleon/component/ClassicComponentService.java b/src/main/java/org/apache/camel/kameleon/component/ClassicComponentService.java
index b27c499..5a19c41 100644
--- a/src/main/java/org/apache/camel/kameleon/component/ClassicComponentService.java
+++ b/src/main/java/org/apache/camel/kameleon/component/ClassicComponentService.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.component;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.component;
import io.vertx.core.json.JsonArray;
import org.apache.camel.catalog.CamelCatalog;
diff --git a/src/main/java/org/apache/camel/kameleon/component/ComponentResource.java b/src/main/java/org/apache/camel/kameleon/component/ComponentResource.java
index eacf171..35ad66d 100644
--- a/src/main/java/org/apache/camel/kameleon/component/ComponentResource.java
+++ b/src/main/java/org/apache/camel/kameleon/component/ComponentResource.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.component;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.component;
import io.vertx.core.json.JsonArray;
diff --git a/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java b/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
index b6840c7..4ba44ee 100644
--- a/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
+++ b/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.component;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.component;
import io.vertx.core.json.JsonArray;
diff --git a/src/main/java/org/apache/camel/kameleon/component/QuarkusComponentService.java b/src/main/java/org/apache/camel/kameleon/component/QuarkusComponentService.java
index 285bd22..3bc17fb 100644
--- a/src/main/java/org/apache/camel/kameleon/component/QuarkusComponentService.java
+++ b/src/main/java/org/apache/camel/kameleon/component/QuarkusComponentService.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.component;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.component;
import io.vertx.core.json.JsonArray;
import org.apache.camel.catalog.CamelCatalog;
diff --git a/src/main/java/org/apache/camel/kameleon/config/ConfigurationResource.java b/src/main/java/org/apache/camel/kameleon/config/ConfigurationResource.java
index 4dda687..e358821 100644
--- a/src/main/java/org/apache/camel/kameleon/config/ConfigurationResource.java
+++ b/src/main/java/org/apache/camel/kameleon/config/ConfigurationResource.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.config;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.config;
import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/src/main/java/org/apache/camel/kameleon/generator/GeneratorResource.java b/src/main/java/org/apache/camel/kameleon/generator/GeneratorResource.java
index 59963e5..4c11a39 100644
--- a/src/main/java/org/apache/camel/kameleon/generator/GeneratorResource.java
+++ b/src/main/java/org/apache/camel/kameleon/generator/GeneratorResource.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.generator;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.generator;
import javax.inject.Inject;
import javax.ws.rs.*;
diff --git a/src/main/java/org/apache/camel/kameleon/generator/GeneratorService.java b/src/main/java/org/apache/camel/kameleon/generator/GeneratorService.java
index c9e39ba..9b3c3d5 100644
--- a/src/main/java/org/apache/camel/kameleon/generator/GeneratorService.java
+++ b/src/main/java/org/apache/camel/kameleon/generator/GeneratorService.java
@@ -1,24 +1,21 @@
-package org.apache.camel.kameleon.generator;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.generator;
import io.vertx.mutiny.core.Vertx;
@@ -130,7 +127,7 @@ public class GeneratorService {
Properties properties = new Properties();
properties.setProperty("groupId", groupId);
- properties.setProperty("package", generatePackageName(groupId , artifactId));
+ properties.setProperty("package", generatePackageName(groupId, artifactId));
properties.setProperty("artifactId", artifactId);
properties.setProperty("version", version);
properties.setProperty("archetypeVersion", archetypeVersion);
@@ -150,12 +147,12 @@ public class GeneratorService {
throws MavenInvocationException, IOException {
Properties properties = new Properties();
properties.setProperty("groupId", groupId);
- properties.setProperty("package", generatePackageName(groupId , artifactId));
+ properties.setProperty("package", generatePackageName(groupId, artifactId));
properties.setProperty("artifactId", artifactId);
properties.setProperty("version", version);
// properties.setProperty("noExamples", "true");
properties.setProperty("extensions",
- (components !=null && !components.trim().isEmpty()) ? CAMEL_QUARKUS_CORE +"," + components: CAMEL_QUARKUS_CORE);
+ (components != null && !components.trim().isEmpty()) ? CAMEL_QUARKUS_CORE + "," + components : CAMEL_QUARKUS_CORE);
InvocationRequest request = new DefaultInvocationRequest();
request.setGoals(Collections.singletonList("io.quarkus:quarkus-maven-plugin:" + quarkusVersion + ":create "));
@@ -172,7 +169,7 @@ public class GeneratorService {
cleanArtifact.append(c);
}
}
- return groupId +"."+ cleanArtifact;
+ return groupId + "." + cleanArtifact;
}
private void execute(InvocationRequest request) throws MavenInvocationException, IOException {
@@ -180,10 +177,13 @@ public class GeneratorService {
Path localRepo = Files.exists(path) ? path : Files.createDirectory(path);
Invoker invoker = new DefaultInvoker();
- invoker.setMavenHome(new File(System.getenv("MAVEN_HOME")));
+ String mHome = System.getenv("MAVEN_HOME");
+ if (mHome == null) {
+ throw new IllegalStateException("OS Environment MAVEN_HOME is not set");
+ }
+ invoker.setMavenHome(new File(mHome));
invoker.setLocalRepositoryDirectory(localRepo.toFile());
invoker.execute(request);
-
}
private void packageProject(String folder, String filename) {
diff --git a/src/main/java/org/apache/camel/kameleon/model/AbstractComponent.java b/src/main/java/org/apache/camel/kameleon/model/AbstractComponent.java
index 9087a7a..7de8cbe 100644
--- a/src/main/java/org/apache/camel/kameleon/model/AbstractComponent.java
+++ b/src/main/java/org/apache/camel/kameleon/model/AbstractComponent.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.model;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.model;
import java.util.List;
diff --git a/src/main/java/org/apache/camel/kameleon/model/CamelComponent.java b/src/main/java/org/apache/camel/kameleon/model/CamelComponent.java
index 60c5c16..31a8853 100644
--- a/src/main/java/org/apache/camel/kameleon/model/CamelComponent.java
+++ b/src/main/java/org/apache/camel/kameleon/model/CamelComponent.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.model;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.model;
import java.util.List;
diff --git a/src/main/java/org/apache/camel/kameleon/model/CamelType.java b/src/main/java/org/apache/camel/kameleon/model/CamelType.java
index e39d5fe..963c08e 100644
--- a/src/main/java/org/apache/camel/kameleon/model/CamelType.java
+++ b/src/main/java/org/apache/camel/kameleon/model/CamelType.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.model;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.model;
import java.util.List;
diff --git a/src/main/java/org/apache/camel/kameleon/model/CamelVersion.java b/src/main/java/org/apache/camel/kameleon/model/CamelVersion.java
index 2ffcd92..55ff41d 100644
--- a/src/main/java/org/apache/camel/kameleon/model/CamelVersion.java
+++ b/src/main/java/org/apache/camel/kameleon/model/CamelVersion.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.model;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.model;
import java.util.List;
diff --git a/src/main/java/org/apache/camel/kameleon/model/KameleonConfiguration.java b/src/main/java/org/apache/camel/kameleon/model/KameleonConfiguration.java
index 3620416..8e1d512 100644
--- a/src/main/java/org/apache/camel/kameleon/model/KameleonConfiguration.java
+++ b/src/main/java/org/apache/camel/kameleon/model/KameleonConfiguration.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.model;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.model;
import java.util.List;
diff --git a/src/main/java/org/apache/camel/kameleon/model/KameletComponent.java b/src/main/java/org/apache/camel/kameleon/model/KameletComponent.java
index 477f122..f8e1a86 100644
--- a/src/main/java/org/apache/camel/kameleon/model/KameletComponent.java
+++ b/src/main/java/org/apache/camel/kameleon/model/KameletComponent.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon.model;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon.model;
import java.util.List;
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 7807cbf..fc234e0 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -23,7 +23,7 @@ quarkus.container-image.name=camel-kameleon
quarkus.container-image.tag=${project.version}
quarkus.cache.caffeine."components".expire-after-write=3600S
-quarkus.cache.caffeine."components".initial-capacity=100
-quarkus.cache.caffeine."components".maximum-size=100
+quarkus.cache.caffeine."components".initial-capacity=100
+quarkus.cache.caffeine."components".maximum-size=100
application.version=${project.version}
diff --git a/src/test/java/org/apache/camel/kameleon/ComponentResourceTest.java b/src/test/java/org/apache/camel/kameleon/ComponentResourceTest.java
index 5957cdc..d8d8ad3 100644
--- a/src/test/java/org/apache/camel/kameleon/ComponentResourceTest.java
+++ b/src/test/java/org/apache/camel/kameleon/ComponentResourceTest.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.response.Response;
diff --git a/src/test/java/org/apache/camel/kameleon/ConfigurationResourceTest.java b/src/test/java/org/apache/camel/kameleon/ConfigurationResourceTest.java
index ea47efb..9ceac8e 100644
--- a/src/test/java/org/apache/camel/kameleon/ConfigurationResourceTest.java
+++ b/src/test/java/org/apache/camel/kameleon/ConfigurationResourceTest.java
@@ -1,24 +1,20 @@
-package org.apache.camel.kameleon;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.http.ContentType;
diff --git a/src/test/java/org/apache/camel/kameleon/GeneratorResourceTest.java b/src/test/java/org/apache/camel/kameleon/GeneratorResourceTest.java
index e884872..199cd86 100644
--- a/src/test/java/org/apache/camel/kameleon/GeneratorResourceTest.java
+++ b/src/test/java/org/apache/camel/kameleon/GeneratorResourceTest.java
@@ -1,29 +1,24 @@
-package org.apache.camel.kameleon;
-
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF 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 org.apache.camel.kameleon;
import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;
-
@QuarkusTest
public class GeneratorResourceTest {