|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <parent> |
| 5 | + <groupId>com.sap.ai.sdk</groupId> |
| 6 | + <artifactId>sdk-parent</artifactId> |
| 7 | + <version>1.4.0-SNAPSHOT</version> |
| 8 | + </parent> |
| 9 | + <artifactId>prompt-registry</artifactId> |
| 10 | + <name>Prompt Registry client</name> |
| 11 | + <description>SAP Cloud SDK for AI is the official Software Development Kit (SDK) for SAP AI Core, SAP Generative AI |
| 12 | + Hub, and Orchestration Service. This is the client for life cycle management of your prompts without |
| 13 | + Orchestration Service.</description> |
| 14 | + <url>https://github.com/SAP/ai-sdk-java?tab=readme-ov-file#documentation</url> |
| 15 | + <organization> |
| 16 | + <name>SAP SE</name> |
| 17 | + <url>https://www.sap.com</url> |
| 18 | + </organization> |
| 19 | + <licenses> |
| 20 | + <license> |
| 21 | + <name>The Apache Software License, Version 2.0</name> |
| 22 | + <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 23 | + </license> |
| 24 | + </licenses> |
| 25 | + <developers> |
| 26 | + <developer> |
| 27 | + <name>SAP</name> |
| 28 | + |
| 29 | + <organization>SAP SE</organization> |
| 30 | + <organizationUrl>https://www.sap.com</organizationUrl> |
| 31 | + </developer> |
| 32 | + </developers> |
| 33 | + <properties> |
| 34 | + <project.rootdir>${project.basedir}/../</project.rootdir> |
| 35 | + <coverage.complexity>75%</coverage.complexity> |
| 36 | + <coverage.line>87%</coverage.line> |
| 37 | + <coverage.instruction>89%</coverage.instruction> |
| 38 | + <coverage.branch>100%</coverage.branch> |
| 39 | + <coverage.method>75%</coverage.method> |
| 40 | + <coverage.class>100%</coverage.class> |
| 41 | + </properties> |
| 42 | + |
| 43 | + <dependencies> |
| 44 | + <!-- scope "compile" --> |
| 45 | + <dependency> |
| 46 | + <groupId>com.sap.ai.sdk</groupId> |
| 47 | + <artifactId>core</artifactId> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>com.sap.cloud.sdk.datamodel</groupId> |
| 51 | + <artifactId>openapi-core</artifactId> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>org.springframework</groupId> |
| 55 | + <artifactId>spring-core</artifactId> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.springframework</groupId> |
| 59 | + <artifactId>spring-web</artifactId> |
| 60 | + </dependency> |
| 61 | + <dependency> |
| 62 | + <groupId>com.sap.cloud.sdk.cloudplatform</groupId> |
| 63 | + <artifactId>cloudplatform-connectivity</artifactId> |
| 64 | + </dependency> |
| 65 | + <dependency> |
| 66 | + <groupId>com.sap.cloud.sdk.cloudplatform</groupId> |
| 67 | + <artifactId>connectivity-apache-httpclient5</artifactId> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>org.apache.httpcomponents.client5</groupId> |
| 71 | + <artifactId>httpclient5</artifactId> |
| 72 | + </dependency> |
| 73 | + <dependency> |
| 74 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 75 | + <artifactId>jackson-databind</artifactId> |
| 76 | + </dependency> |
| 77 | + <dependency> |
| 78 | + <groupId>com.google.guava</groupId> |
| 79 | + <artifactId>guava</artifactId> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 83 | + <artifactId>jackson-annotations</artifactId> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>com.google.code.findbugs</groupId> |
| 87 | + <artifactId>jsr305</artifactId> |
| 88 | + </dependency> |
| 89 | + <!-- scope "provided" --> |
| 90 | + <dependency> |
| 91 | + <groupId>org.projectlombok</groupId> |
| 92 | + <artifactId>lombok</artifactId> |
| 93 | + <scope>provided</scope> |
| 94 | + </dependency> |
| 95 | + <!-- scope "test" --> |
| 96 | + <dependency> |
| 97 | + <groupId>org.junit.jupiter</groupId> |
| 98 | + <artifactId>junit-jupiter-api</artifactId> |
| 99 | + <scope>test</scope> |
| 100 | + </dependency> |
| 101 | + <dependency> |
| 102 | + <groupId>org.wiremock</groupId> |
| 103 | + <artifactId>wiremock</artifactId> |
| 104 | + <scope>test</scope> |
| 105 | + </dependency> |
| 106 | + <dependency> |
| 107 | + <groupId>org.assertj</groupId> |
| 108 | + <artifactId>assertj-core</artifactId> |
| 109 | + <scope>test</scope> |
| 110 | + </dependency> |
| 111 | + </dependencies> |
| 112 | + |
| 113 | + <profiles> |
| 114 | + <profile> |
| 115 | + <id>generate</id> |
| 116 | + <activation> |
| 117 | + <activeByDefault>false</activeByDefault> |
| 118 | + <property> |
| 119 | + <name>generate</name> |
| 120 | + </property> |
| 121 | + </activation> |
| 122 | + <build> |
| 123 | + <plugins> |
| 124 | + <plugin> |
| 125 | + <groupId>com.sap.cloud.sdk.datamodel</groupId> |
| 126 | + <artifactId>openapi-generator-maven-plugin</artifactId> |
| 127 | + <configuration> |
| 128 | + <outputDirectory>${project.basedir}/src/main/java</outputDirectory> |
| 129 | + <apiMaturity>beta</apiMaturity> |
| 130 | + <enableOneOfAnyOfGeneration>true</enableOneOfAnyOfGeneration> |
| 131 | + <compileScope>COMPILE</compileScope> |
| 132 | + <deleteOutputDirectory>true</deleteOutputDirectory> |
| 133 | + </configuration> |
| 134 | + <executions> |
| 135 | + <execution> |
| 136 | + <id>prompt-registry</id> |
| 137 | + <goals> |
| 138 | + <goal>generate</goal> |
| 139 | + </goals> |
| 140 | + <phase>generate-sources</phase> |
| 141 | + <configuration> |
| 142 | + <inputSpec>${project.basedir}/src/main/resources/spec/prompt-registry.yaml</inputSpec> |
| 143 | + <apiPackage>com.sap.ai.sdk.prompt.registry.client</apiPackage> |
| 144 | + <modelPackage>com.sap.ai.sdk.prompt.registry.model</modelPackage> |
| 145 | + <additionalProperties> |
| 146 | + <pojoBuilderMethodName>create</pojoBuilderMethodName> |
| 147 | + <pojoBuildMethodName/> |
| 148 | + <pojoConstructorVisibility>protected</pojoConstructorVisibility> |
| 149 | + <enumUnknownDefaultCase>true</enumUnknownDefaultCase> |
| 150 | + <removeOperationIdPrefix>true</removeOperationIdPrefix> |
| 151 | + <removeOperationIdPrefixDelimiter>\.</removeOperationIdPrefixDelimiter> |
| 152 | + <removeOperationIdPrefixCount>3</removeOperationIdPrefixCount> |
| 153 | + <useOneOfInterfaces>true</useOneOfInterfaces> |
| 154 | + </additionalProperties> |
| 155 | + </configuration> |
| 156 | + </execution> |
| 157 | + </executions> |
| 158 | + </plugin> |
| 159 | + </plugins> |
| 160 | + </build> |
| 161 | + </profile> |
| 162 | + </profiles> |
| 163 | +</project> |
0 commit comments