Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9332

Immutable Spring boot deployment / declarative and autoscan enhacement

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.44.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      In addition to JBPM-9178

      declaratively in the application.properties like this:

      kieserver.deployments[0].alias=evaluation_v1
      kieserver.deployments[0].containerId=evaluation_v1
      kieserver.deployments[0].artifactId=Evaluation
      kieserver.deployments[0].groupId=com.myspace
      kieserver.deployments[0].version=1.0.0-SNAPSHOT
      
      kieserver.deployments[1].alias=evaluation_v2
      kieserver.deployments[1].containerId=evaluation_v2
      kieserver.deployments[1].artifactId=Evaluation
      kieserver.deployments[1].groupId=com.myspace
      kieserver.deployments[1].version=2.0.0-SNAPSHOT
      

      if you don't want to specify a the container alias it can be used another property for autoscanning deployments within spring boot

      kieserver.classPathContainer=true
      kieserver.autoScanDeployments=true
      

      With this won't be needed to specify any property. just include the deployments within spring boot as the next bullet indicates. This will deploy
      automatically those with a container id <artifactId>-<version>

      Maven plugin in the service (including kjar multiple version). This will resolve the necesary artifacts to run the kjar.

        <build>
          <plugins>
            <plugin>
              <groupId>org.kie</groupId>
              <artifactId>kie-maven-plugin</artifactId>
              <version>${version.org.kie}</version>
              <executions>
                <execution>
                  <id>copy</id>
                  <phase>prepare-package</phase>
                  <goals>
                    <goal>package-dependencies-kjar</goal>
                  </goals>
                </execution>
              </executions>
              <configuration>
                <artifactItems>
                  <artifactItem>
                    <groupId>com.myspace</groupId>
                    <artifactId>Evaluation</artifactId>
                    <version>1.0.0-SNAPSHOT</version>
                  </artifactItem>
                  <artifactItem>
                    <groupId>com.myspace</groupId>
                    <artifactId>Evaluation</artifactId>
                    <version>2.0.0-SNAPSHOT</version>
                  </artifactItem>
                </artifactItems>
              </configuration>
            </plugin>
          <plugins>
        <build>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                elguardian Enrique González Martínez
                Reporter:
                elguardian Enrique González Martínez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: