This is an automated email from the ASF dual-hosted git repository.
zregvart 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 6b6e0dd chore: set license headers
6b6e0dd is described below
commit 6b6e0dd244427b06505993f3786071e120d3e2d4
Author: Zoran Regvart <[email protected]>
AuthorDate: Fri Jul 9 09:35:53 2021 +0200
chore: set license headers
This sets license headers using Rat. Some files were omitted that were
not authored by Marat Gubaidullin, but licensed separately, for example
JavaScript/CSS libraries used.
---
pom.xml | 20 ++++++++++++++++++++
src/main/java/dev/kameleon/WarmUpService.java | 22 +++++++++++++++++++++-
.../component/AbstractComponentService.java | 22 +++++++++++++++++++++-
.../component/ClassicComponentService.java | 22 +++++++++++++++++++++-
.../dev/kameleon/component/ComponentResource.java | 22 +++++++++++++++++++++-
.../component/KameletComponentService.java | 22 +++++++++++++++++++++-
.../component/QuarkusComponentService.java | 22 +++++++++++++++++++++-
.../dev/kameleon/config/ConfigurationResource.java | 20 ++++++++++++++++++++
.../dev/kameleon/generator/GeneratorResource.java | 20 ++++++++++++++++++++
.../dev/kameleon/generator/GeneratorService.java | 22 +++++++++++++++++++++-
.../java/dev/kameleon/model/AbstractComponent.java | 20 ++++++++++++++++++++
.../java/dev/kameleon/model/CamelComponent.java | 20 ++++++++++++++++++++
src/main/java/dev/kameleon/model/CamelType.java | 20 ++++++++++++++++++++
src/main/java/dev/kameleon/model/CamelVersion.java | 20 ++++++++++++++++++++
.../dev/kameleon/model/KameleonConfiguration.java | 20 ++++++++++++++++++++
.../java/dev/kameleon/model/KameletComponent.java | 20 ++++++++++++++++++++
src/main/resources/META-INF/resources/app.js | 19 +++++++++++++++++++
.../META-INF/resources/components/classic.js | 21 ++++++++++++++++++++-
.../META-INF/resources/components/components.js | 21 ++++++++++++++++++++-
.../META-INF/resources/components/event-hub.js | 21 ++++++++++++++++++++-
.../META-INF/resources/components/project.js | 21 ++++++++++++++++++++-
.../META-INF/resources/components/selected.js | 21 ++++++++++++++++++++-
.../resources/META-INF/resources/css/kameleon.css | 19 +++++++++++++++++++
src/main/resources/META-INF/resources/index.html | 21 ++++++++++++++++++++-
.../resources/templates/classic-template.js | 19 +++++++++++++++++++
.../resources/templates/components-template.js | 21 ++++++++++++++++++++-
.../META-INF/resources/templates/main-template.js | 21 ++++++++++++++++++++-
.../resources/templates/project-template.js | 21 ++++++++++++++++++++-
.../resources/templates/selected-template.js | 21 ++++++++++++++++++++-
src/main/resources/application.properties | 19 ++++++++++++++++++-
.../dev/kameleon/test/ComponentResourceTest.java | 22 +++++++++++++++++++++-
.../kameleon/test/ConfigurationResourceTest.java | 22 +++++++++++++++++++++-
.../dev/kameleon/test/GeneratorResourceTest.java | 22 +++++++++++++++++++++-
33 files changed, 665 insertions(+), 21 deletions(-)
diff --git a/pom.xml b/pom.xml
index a7e649f..74588a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,24 @@
<?xml version="1.0"?>
+
+<!--
+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.
+-->
+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
diff --git a/src/main/java/dev/kameleon/WarmUpService.java
b/src/main/java/dev/kameleon/WarmUpService.java
index 70a2938..ae4ce07 100644
--- a/src/main/java/dev/kameleon/WarmUpService.java
+++ b/src/main/java/dev/kameleon/WarmUpService.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.component.ComponentResource;
import dev.kameleon.config.ConfigurationResource;
import dev.kameleon.generator.GeneratorService;
@@ -102,4 +122,4 @@ public class WarmUpService {
this.javaVersion = javaVersion;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/component/AbstractComponentService.java
b/src/main/java/dev/kameleon/component/AbstractComponentService.java
index 982da3e..dd949e8 100644
--- a/src/main/java/dev/kameleon/component/AbstractComponentService.java
+++ b/src/main/java/dev/kameleon/component/AbstractComponentService.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.model.CamelComponent;
import io.vertx.core.json.JsonObject;
@@ -87,4 +107,4 @@ public abstract class AbstractComponentService {
return false;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/component/ClassicComponentService.java
b/src/main/java/dev/kameleon/component/ClassicComponentService.java
index 288d5fc..9583e26 100644
--- a/src/main/java/dev/kameleon/component/ClassicComponentService.java
+++ b/src/main/java/dev/kameleon/component/ClassicComponentService.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.model.CamelComponent;
import io.vertx.core.json.JsonArray;
import org.apache.camel.catalog.CamelCatalog;
@@ -56,4 +76,4 @@ public class ClassicComponentService extends
AbstractComponentService {
return new JsonArray(list);
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/component/ComponentResource.java
b/src/main/java/dev/kameleon/component/ComponentResource.java
index 00af1f6..14b419d 100644
--- a/src/main/java/dev/kameleon/component/ComponentResource.java
+++ b/src/main/java/dev/kameleon/component/ComponentResource.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import io.vertx.core.json.JsonArray;
import javax.inject.Inject;
@@ -36,4 +56,4 @@ public class ComponentResource {
}
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/component/KameletComponentService.java
b/src/main/java/dev/kameleon/component/KameletComponentService.java
index 9ecc403..b9220a9 100644
--- a/src/main/java/dev/kameleon/component/KameletComponentService.java
+++ b/src/main/java/dev/kameleon/component/KameletComponentService.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.model.KameletComponent;
import io.vertx.core.json.JsonArray;
import org.apache.camel.kamelets.catalog.KameletsCatalog;
@@ -25,4 +45,4 @@ public class KameletComponentService {
)).collect(Collectors.toList());
return new JsonArray(list);
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/component/QuarkusComponentService.java
b/src/main/java/dev/kameleon/component/QuarkusComponentService.java
index a244ed9..31266bd 100644
--- a/src/main/java/dev/kameleon/component/QuarkusComponentService.java
+++ b/src/main/java/dev/kameleon/component/QuarkusComponentService.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.model.CamelComponent;
import io.vertx.core.json.JsonArray;
import org.apache.camel.catalog.CamelCatalog;
@@ -52,4 +72,4 @@ public class QuarkusComponentService extends
AbstractComponentService {
return new JsonArray(list);
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/config/ConfigurationResource.java
b/src/main/java/dev/kameleon/config/ConfigurationResource.java
index b7c1cb5..4692236 100644
--- a/src/main/java/dev/kameleon/config/ConfigurationResource.java
+++ b/src/main/java/dev/kameleon/config/ConfigurationResource.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.kameleon.model.KameleonConfiguration;
import io.quarkus.runtime.StartupEvent;
diff --git a/src/main/java/dev/kameleon/generator/GeneratorResource.java
b/src/main/java/dev/kameleon/generator/GeneratorResource.java
index bacd371..b49f94c 100644
--- a/src/main/java/dev/kameleon/generator/GeneratorResource.java
+++ b/src/main/java/dev/kameleon/generator/GeneratorResource.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import javax.inject.Inject;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
diff --git a/src/main/java/dev/kameleon/generator/GeneratorService.java
b/src/main/java/dev/kameleon/generator/GeneratorService.java
index 0baf7bd..9042cf7 100644
--- a/src/main/java/dev/kameleon/generator/GeneratorService.java
+++ b/src/main/java/dev/kameleon/generator/GeneratorService.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.model.CamelType;
import dev.kameleon.model.CamelVersion;
import dev.kameleon.config.ConfigurationResource;
@@ -182,4 +202,4 @@ public class GeneratorService {
e.printStackTrace();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/dev/kameleon/model/AbstractComponent.java
b/src/main/java/dev/kameleon/model/AbstractComponent.java
index cfb76d0..8690db9 100644
--- a/src/main/java/dev/kameleon/model/AbstractComponent.java
+++ b/src/main/java/dev/kameleon/model/AbstractComponent.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import java.util.List;
public abstract class AbstractComponent {
diff --git a/src/main/java/dev/kameleon/model/CamelComponent.java
b/src/main/java/dev/kameleon/model/CamelComponent.java
index 3250663..cdc3820 100644
--- a/src/main/java/dev/kameleon/model/CamelComponent.java
+++ b/src/main/java/dev/kameleon/model/CamelComponent.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import java.util.List;
public class CamelComponent extends AbstractComponent {
diff --git a/src/main/java/dev/kameleon/model/CamelType.java
b/src/main/java/dev/kameleon/model/CamelType.java
index 5e83824..19a3869 100644
--- a/src/main/java/dev/kameleon/model/CamelType.java
+++ b/src/main/java/dev/kameleon/model/CamelType.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import java.util.List;
public class CamelType {
diff --git a/src/main/java/dev/kameleon/model/CamelVersion.java
b/src/main/java/dev/kameleon/model/CamelVersion.java
index d2e817f..1b48801 100644
--- a/src/main/java/dev/kameleon/model/CamelVersion.java
+++ b/src/main/java/dev/kameleon/model/CamelVersion.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import java.util.List;
public class CamelVersion {
diff --git a/src/main/java/dev/kameleon/model/KameleonConfiguration.java
b/src/main/java/dev/kameleon/model/KameleonConfiguration.java
index 9c04bc6..333e85a 100644
--- a/src/main/java/dev/kameleon/model/KameleonConfiguration.java
+++ b/src/main/java/dev/kameleon/model/KameleonConfiguration.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import dev.kameleon.model.CamelType;
import java.util.List;
diff --git a/src/main/java/dev/kameleon/model/KameletComponent.java
b/src/main/java/dev/kameleon/model/KameletComponent.java
index b35613f..49097a5 100644
--- a/src/main/java/dev/kameleon/model/KameletComponent.java
+++ b/src/main/java/dev/kameleon/model/KameletComponent.java
@@ -1,5 +1,25 @@
package dev.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.
+ */
+
+
import java.util.List;
public class KameletComponent extends AbstractComponent {
diff --git a/src/main/resources/META-INF/resources/app.js
b/src/main/resources/META-INF/resources/app.js
index 3f03b15..f6097cd 100644
--- a/src/main/resources/META-INF/resources/app.js
+++ b/src/main/resources/META-INF/resources/app.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
import Vue from '/js/vue.esm.browser.min.js'
import { MainTemplate } from './templates/main-template.js'
import { Classic } from './components/classic.js'
diff --git a/src/main/resources/META-INF/resources/components/classic.js
b/src/main/resources/META-INF/resources/components/classic.js
index 09e1673..cd5912a 100644
--- a/src/main/resources/META-INF/resources/components/classic.js
+++ b/src/main/resources/META-INF/resources/components/classic.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
import Vue from '/js/vue.esm.browser.min.js'
import { ClassicTemplate } from "../templates/classic-template.js"
import { Project } from "./project.js"
@@ -99,4 +118,4 @@ const Classic = Vue.component('classic', {
template: ClassicTemplate
});
-export { Classic }
\ No newline at end of file
+export { Classic }
diff --git a/src/main/resources/META-INF/resources/components/components.js
b/src/main/resources/META-INF/resources/components/components.js
index 004e96e..3df6a2f 100644
--- a/src/main/resources/META-INF/resources/components/components.js
+++ b/src/main/resources/META-INF/resources/components/components.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
import Vue from '/js/vue.esm.browser.min.js'
import { ComponentsTemplate } from "../templates/components-template.js"
import getEventHub from './event-hub.js'
@@ -57,4 +76,4 @@ const Components = Vue.component('components', {
template: ComponentsTemplate
});
-export { Components }
\ No newline at end of file
+export { Components }
diff --git a/src/main/resources/META-INF/resources/components/event-hub.js
b/src/main/resources/META-INF/resources/components/event-hub.js
index aae700d..7ab1feb 100644
--- a/src/main/resources/META-INF/resources/components/event-hub.js
+++ b/src/main/resources/META-INF/resources/components/event-hub.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
// Global event bus
import Vue from '/js/vue.esm.browser.min.js'
@@ -7,4 +26,4 @@ export default function getEventHub() {
return EventHub;
}
-export {getEventHub}
\ No newline at end of file
+export {getEventHub}
diff --git a/src/main/resources/META-INF/resources/components/project.js
b/src/main/resources/META-INF/resources/components/project.js
index cfdbe09..7ad6644 100644
--- a/src/main/resources/META-INF/resources/components/project.js
+++ b/src/main/resources/META-INF/resources/components/project.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
import Vue from '/js/vue.esm.browser.min.js'
import { ProjectTemplate } from "../templates/project-template.js"
@@ -14,4 +33,4 @@ const Project = Vue.component('project', {
template: ProjectTemplate
});
-export { Project }
\ No newline at end of file
+export { Project }
diff --git a/src/main/resources/META-INF/resources/components/selected.js
b/src/main/resources/META-INF/resources/components/selected.js
index 47f7a58..cb46639 100644
--- a/src/main/resources/META-INF/resources/components/selected.js
+++ b/src/main/resources/META-INF/resources/components/selected.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
import Vue from '/js/vue.esm.browser.min.js'
import { SelectedTemplate } from "../templates/selected-template.js"
import getEventHub from './event-hub.js'
@@ -34,4 +53,4 @@ const Selected = Vue.component('selected', {
template: SelectedTemplate
});
-export { Selected }
\ No newline at end of file
+export { Selected }
diff --git a/src/main/resources/META-INF/resources/css/kameleon.css
b/src/main/resources/META-INF/resources/css/kameleon.css
index 5b95c07..3fe5d3a 100644
--- a/src/main/resources/META-INF/resources/css/kameleon.css
+++ b/src/main/resources/META-INF/resources/css/kameleon.css
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
:root {
--pf-global--primary-color--100: var(--pf-global--palette--orange-300)
!important;
--pf-global--primary-color--200: var(--pf-global--palette--orange-300)
!important;
diff --git a/src/main/resources/META-INF/resources/index.html
b/src/main/resources/META-INF/resources/index.html
index aa907da..4e4f3b5 100644
--- a/src/main/resources/META-INF/resources/index.html
+++ b/src/main/resources/META-INF/resources/index.html
@@ -1,3 +1,22 @@
+<!--
+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.
+-->
+
<!doctype html>
<html lang="en">
<head>
@@ -22,4 +41,4 @@
<script type="module" src="app.js?v=0.2.0"></script>
</body>
-</html>
\ No newline at end of file
+</html>
diff --git
a/src/main/resources/META-INF/resources/templates/classic-template.js
b/src/main/resources/META-INF/resources/templates/classic-template.js
index c87618e..9d8f657 100644
--- a/src/main/resources/META-INF/resources/templates/classic-template.js
+++ b/src/main/resources/META-INF/resources/templates/classic-template.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
const ClassicTemplate = `
<div>
<section class="pf-c-page__main-section pf-m-light top-border">
diff --git
a/src/main/resources/META-INF/resources/templates/components-template.js
b/src/main/resources/META-INF/resources/templates/components-template.js
index 4d50109..823f47d 100644
--- a/src/main/resources/META-INF/resources/templates/components-template.js
+++ b/src/main/resources/META-INF/resources/templates/components-template.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
const ComponentsTemplate = `
<div class="components">
<div v-model="components"
class="title">{{this.$parent.current.componentListTitle}}
({{filtered.length}})</div>
@@ -51,4 +70,4 @@ const ComponentsTemplate = `
</div>
`
-export { ComponentsTemplate }
\ No newline at end of file
+export { ComponentsTemplate }
diff --git a/src/main/resources/META-INF/resources/templates/main-template.js
b/src/main/resources/META-INF/resources/templates/main-template.js
index be52730..8d88c3f 100644
--- a/src/main/resources/META-INF/resources/templates/main-template.js
+++ b/src/main/resources/META-INF/resources/templates/main-template.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
const MainTemplate = `
<div class="pf-c-page main" id="page-default-nav">
<a class="pf-c-skip-to-content pf-c-button pf-m-primary"
href="#main-content-page-default-nav">Skip to content</a>
@@ -42,4 +61,4 @@ const MainTemplate = `
</div>
`
-export { MainTemplate }
\ No newline at end of file
+export { MainTemplate }
diff --git
a/src/main/resources/META-INF/resources/templates/project-template.js
b/src/main/resources/META-INF/resources/templates/project-template.js
index 78f201e..981e758 100644
--- a/src/main/resources/META-INF/resources/templates/project-template.js
+++ b/src/main/resources/META-INF/resources/templates/project-template.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
const ProjectTemplate = `
<div class="project">
<div class="title">Maven Project</div>
@@ -41,4 +60,4 @@ const ProjectTemplate = `
</div>
`
-export { ProjectTemplate }
\ No newline at end of file
+export { ProjectTemplate }
diff --git
a/src/main/resources/META-INF/resources/templates/selected-template.js
b/src/main/resources/META-INF/resources/templates/selected-template.js
index 9aa7db8..aec8d3d 100644
--- a/src/main/resources/META-INF/resources/templates/selected-template.js
+++ b/src/main/resources/META-INF/resources/templates/selected-template.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
const SelectedTemplate = `
<div v-show="selected.length != 0" class="selected">
<div class="title">Selected artifacts ({{selected.length}})</div>
@@ -23,4 +42,4 @@ const SelectedTemplate = `
</div>
`
-export { SelectedTemplate }
\ No newline at end of file
+export { SelectedTemplate }
diff --git a/src/main/resources/application.properties
b/src/main/resources/application.properties
index 6beedd5..6afa61c 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,3 +1,20 @@
+# 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.
+
quarkus.package.type=uber-jar
quarkus.log.level=INFO
@@ -9,4 +26,4 @@ quarkus.cache.caffeine."components".expire-after-write=3600S
quarkus.cache.caffeine."components".initial-capacity=100
quarkus.cache.caffeine."components".maximum-size=100
-application.version=${project.version}
\ No newline at end of file
+application.version=${project.version}
diff --git a/src/test/java/dev/kameleon/test/ComponentResourceTest.java
b/src/test/java/dev/kameleon/test/ComponentResourceTest.java
index 491012a..72ef876 100644
--- a/src/test/java/dev/kameleon/test/ComponentResourceTest.java
+++ b/src/test/java/dev/kameleon/test/ComponentResourceTest.java
@@ -1,5 +1,25 @@
package dev.kameleon.test;
+/*
+ * 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.
+ */
+
+
import dev.kameleon.config.ConfigurationResource;
import dev.kameleon.model.KameleonConfiguration;
import io.quarkus.test.junit.QuarkusTest;
@@ -43,4 +63,4 @@ public class ComponentResourceTest {
Assertions.assertTrue(list.stream().filter(c ->
c.get("name").contains("kafka")).count() > 0);
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/dev/kameleon/test/ConfigurationResourceTest.java
b/src/test/java/dev/kameleon/test/ConfigurationResourceTest.java
index a873b6b..b48a57e 100644
--- a/src/test/java/dev/kameleon/test/ConfigurationResourceTest.java
+++ b/src/test/java/dev/kameleon/test/ConfigurationResourceTest.java
@@ -1,5 +1,25 @@
package dev.kameleon.test;
+/*
+ * 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.
+ */
+
+
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.http.ContentType;
import org.eclipse.microprofile.config.inject.ConfigProperty;
@@ -40,4 +60,4 @@ public class ConfigurationResourceTest {
.body("types[3].name", equalTo("quarkus"));
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/dev/kameleon/test/GeneratorResourceTest.java
b/src/test/java/dev/kameleon/test/GeneratorResourceTest.java
index 8d49015..1a66677 100644
--- a/src/test/java/dev/kameleon/test/GeneratorResourceTest.java
+++ b/src/test/java/dev/kameleon/test/GeneratorResourceTest.java
@@ -1,5 +1,25 @@
package dev.kameleon.test;
+/*
+ * 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.
+ */
+
+
import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;
@@ -11,4 +31,4 @@ public class GeneratorResourceTest {
public void testGenerator() {
// TODO
}
-}
\ No newline at end of file
+}