github.com/apache/incubator-kie-tools/packages/kn-plugin-workflow@v0.28.1-0.20240311201729-34c6856b157f/pkg/metadata/constants.go (about) 1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20 package metadata 21 22 // Dependency represents a Maven dependency. 23 type Dependency struct { 24 GroupId string 25 ArtifactId string 26 Version string 27 Type string 28 Scope string 29 } 30 31 var KogitoBomDependency = Dependency{ 32 GroupId: "org.kie.kogito", 33 ArtifactId: "kogito-bom", 34 Version: KogitoVersion, 35 Type: "pom", 36 Scope: "import", 37 } 38 39 // KogitoDependencies defines the set of dependencies to be added to the pom.xml 40 // of created and converted Quarkus projects. 41 var KogitoDependencies = []Dependency{ 42 {GroupId: "org.kie.kogito", ArtifactId: "kogito-addons-quarkus-knative-eventing"}, 43 {GroupId: "org.kie.kogito", ArtifactId: "kogito-addons-quarkus-source-files"}, 44 {GroupId: "org.kie.kogito", ArtifactId: "kogito-quarkus-serverless-workflow-devui"}, 45 {GroupId: "org.kie.kogito", ArtifactId: "kogito-addons-quarkus-data-index-inmemory"}, 46 {GroupId: "org.kie.kogito", ArtifactId: "kogito-quarkus-serverless-workflow"}, 47 } 48 49 const ( 50 QuarkusMavenPlugin = "quarkus-maven-plugin" 51 QuarkusKubernetesExtension = "quarkus-kubernetes" 52 QuarkusResteasyJacksonExtension = "quarkus-resteasy-jackson" 53 QuarkusContainerImageJib = "quarkus-container-image-jib" 54 SmallryeHealth = "smallrye-health" 55 QuarkusContainerImageDocker = "quarkus-container-image-docker" 56 KogitoQuarkusServerlessWorkflowExtension = "kogito-quarkus-serverless-workflow" 57 KogitoAddonsQuarkusKnativeEventingExtension = "kogito-addons-quarkus-knative-eventing" 58 KogitoQuarkusServerlessWorkflowDevUi = "kogito-quarkus-serverless-workflow-devui" 59 KogitoAddonsQuarkusSourceFiles = "kogito-addons-quarkus-source-files" 60 KogitoDataIndexInMemory = "kogito-addons-quarkus-data-index-inmemory" 61 62 JavaVersion = 11 63 MavenMajorVersion = 3 64 MavenMinorVersion = 8 65 66 DefaultTag = "latest" 67 WorkflowSwJson = "workflow.sw.json" 68 WorkflowSwYaml = "workflow.sw.yaml" 69 70 OperatorName = "sonataflow-operator-system" 71 OperatorManagerPod = "sonataflow-operator-controller-manager" 72 73 YAMLExtension = ".yaml" 74 YMLExtension = ".yml" 75 JSONExtension = ".json" 76 YAMLSWExtension = "sw.yaml" 77 YMLSWExtension = "sw.yml" 78 JSONSWExtension = "sw.json" 79 ApplicationProperties = "application.properties" 80 81 ManifestServiceFilesKind = "SonataFlow" 82 83 DockerInternalPort = "8080/tcp" 84 // VolumeBindPath The :z is to let docker know that the volume content can be shared between containers(SELinux) 85 VolumeBindPathSELinux = "/home/kogito/serverless-workflow-project/src/main/resources:z" 86 VolumeBindPath = "/home/kogito/serverless-workflow-project/src/main/resources" 87 88 DashboardsDefaultDirName = "dashboards" 89 )