|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
1 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
2 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
4 | | - http://maven.apache.org/maven-v4_0_0.xsd"> |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | + <groupId>org.globsframework.samples</groupId> |
| 7 | + <packaging>jar</packaging> |
| 8 | + <artifactId>http-rest-graphql</artifactId> |
| 9 | + <name>samples of a exposing api</name> |
| 10 | + <version>4.1.0</version> |
6 | 11 |
|
7 | | - <groupId>org.globsframwork</groupId> |
8 | | - <artifactId>examples</artifactId> |
9 | | - <packaging>pom</packaging> |
10 | | - <version>1.0</version> |
11 | | - <name>Globs examples</name> |
| 12 | + <repositories> |
| 13 | + <repository> |
| 14 | + <id>github-globsframework</id> |
| 15 | + <url>https://maven.pkg.github.com/globsframework/*</url> |
| 16 | + </repository> |
| 17 | + </repositories> |
12 | 18 |
|
13 | | - <modules> |
14 | | - <module>simplest</module> |
15 | | - </modules> |
| 19 | + <distributionManagement> |
| 20 | + <repository> |
| 21 | + <id>github-globsframework</id> |
| 22 | + <name>GitHub Packages</name> |
| 23 | + <url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url> |
| 24 | + </repository> |
| 25 | + </distributionManagement> |
16 | 26 |
|
17 | | -</project> |
| 27 | + <build> |
| 28 | + <plugins> |
| 29 | + <plugin> |
| 30 | + <groupId>org.apache.maven.plugins</groupId> |
| 31 | + <artifactId>maven-compiler-plugin</artifactId> |
| 32 | + <version>3.8.1</version> |
| 33 | + <configuration> |
| 34 | + <source>21</source> |
| 35 | + <target>21</target> |
| 36 | + </configuration> |
| 37 | + </plugin> |
| 38 | + <plugin> |
| 39 | + <groupId>org.apache.maven.plugins</groupId> |
| 40 | + <artifactId>maven-assembly-plugin</artifactId> |
| 41 | + <version>3.7.1</version> |
| 42 | + <configuration> |
| 43 | + <archive> |
| 44 | + <manifest> |
| 45 | + <addClasspath>true</addClasspath> |
| 46 | + <mainClass>org.globsframework.sample.generic.GenericApiExpose</mainClass> |
| 47 | + </manifest> |
| 48 | + </archive> |
| 49 | + <descriptorRefs> |
| 50 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 51 | + </descriptorRefs> |
| 52 | + </configuration> |
| 53 | + <executions> |
| 54 | + <execution> |
| 55 | + <id>assemble-all</id> |
| 56 | + <phase>package</phase> |
| 57 | + <goals> |
| 58 | + <goal>single</goal> |
| 59 | + </goals> |
| 60 | + </execution> |
| 61 | + </executions> |
| 62 | + </plugin> |
| 63 | + <plugin> |
| 64 | + <groupId>org.apache.maven.plugins</groupId> |
| 65 | + <artifactId>maven-source-plugin</artifactId> |
| 66 | + <version>3.2.1</version> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <id>attach-sources</id> |
| 70 | + <goals> |
| 71 | + <goal>jar</goal> |
| 72 | + </goals> |
| 73 | + </execution> |
| 74 | + </executions> |
| 75 | + </plugin> |
| 76 | + </plugins> |
| 77 | + </build> |
| 78 | + |
| 79 | + <profiles> |
| 80 | + <profile> |
| 81 | + <id>native</id> |
| 82 | + <build> |
| 83 | + <plugins> |
| 84 | + <plugin> |
| 85 | + <groupId>org.graalvm.buildtools</groupId> |
| 86 | + <artifactId>native-maven-plugin</artifactId> |
| 87 | + <version>0.10.1</version> |
| 88 | + <extensions>true</extensions> |
| 89 | + <executions> |
| 90 | + <execution> |
| 91 | + <id>build-native</id> |
| 92 | + <goals> |
| 93 | + <goal>compile-no-fork</goal> |
| 94 | + </goals> |
| 95 | + <phase>package</phase> |
| 96 | + </execution> |
| 97 | + <execution> |
| 98 | + <id>test-native</id> |
| 99 | + <goals> |
| 100 | + <goal>test</goal> |
| 101 | + </goals> |
| 102 | + <phase>test</phase> |
| 103 | + </execution> |
| 104 | + </executions> |
| 105 | + <configuration> |
| 106 | + <buildArgs> |
| 107 | +<!-- <arg>-H:+UnlockExperimentalVMOption</arg>--> |
| 108 | + <arg>-H:+PrintClassInitialization</arg> |
| 109 | + <arg>--initialize-at-build-time=org.globsframework.core,com.google.gson,org.slf4j,org.globsframework.json,org.globsframework.http</arg> |
| 110 | + </buildArgs> |
| 111 | + <mainClass>org.globsframework.sample.generic.GenericApiExpose</mainClass> |
| 112 | +<!-- <mainClass>org.globsframework.sample.graphql.Example2</mainClass>--> |
| 113 | +<!-- <agentResourceDirectory>../../graalvm/</agentResourceDirectory>--> |
| 114 | + <!-- ... --> |
| 115 | + </configuration> |
| 116 | + </plugin> |
| 117 | + </plugins> |
| 118 | + </build> |
| 119 | + </profile> |
| 120 | + </profiles> |
| 121 | + |
| 122 | + <dependencies> |
| 123 | + <dependency> |
| 124 | + <groupId>org.globsframework</groupId> |
| 125 | + <artifactId>globs</artifactId> |
| 126 | + <version>4.1.0</version> |
| 127 | + </dependency> |
| 128 | + <dependency> |
| 129 | + <groupId>org.globsframework</groupId> |
| 130 | + <artifactId>globs-commandline</artifactId> |
| 131 | + <version>4.1.0</version> |
| 132 | + </dependency> |
| 133 | + <dependency> |
| 134 | + <groupId>org.globsframework</groupId> |
| 135 | + <artifactId>globs-http</artifactId> |
| 136 | + <version>4.1.0</version> |
| 137 | + <exclusions> |
| 138 | + <exclusion> |
| 139 | + <groupId>io.etcd</groupId> |
| 140 | + <artifactId>jetcd-core</artifactId> |
| 141 | + </exclusion> |
| 142 | + </exclusions> |
| 143 | + </dependency> |
| 144 | + <dependency> |
| 145 | + <groupId>org.globsframework</groupId> |
| 146 | + <artifactId>globs-sql</artifactId> |
| 147 | + <version>4.1.0</version> |
| 148 | + <exclusions> |
| 149 | + <exclusion> |
| 150 | + <groupId>org.mariadb.jdbc</groupId> |
| 151 | + <artifactId>mariadb-java-client</artifactId> |
| 152 | + </exclusion> |
| 153 | + <exclusion> |
| 154 | + <groupId>mysql</groupId> |
| 155 | + <artifactId>mysql-connector-java</artifactId> |
| 156 | + </exclusion> |
| 157 | +<!-- <exclusion>--> |
| 158 | +<!-- <groupId>org.postgresql</groupId>--> |
| 159 | +<!-- <artifactId>postgresql</artifactId>--> |
| 160 | +<!-- </exclusion>--> |
| 161 | + </exclusions> |
| 162 | + </dependency> |
| 163 | + <dependency> |
| 164 | + <groupId>org.globsframework</groupId> |
| 165 | + <artifactId>globs-graphql</artifactId> |
| 166 | + <version>4.1.0</version> |
| 167 | + </dependency> |
18 | 168 |
|
| 169 | + <dependency> |
| 170 | + <groupId>org.globsframework</groupId> |
| 171 | + <artifactId>globs-generate</artifactId> |
| 172 | + <version>4.1.0</version> |
| 173 | + </dependency> |
| 174 | + |
| 175 | + <dependency> |
| 176 | + <groupId>com.zaxxer</groupId> |
| 177 | + <artifactId>HikariCP</artifactId> |
| 178 | + <version>6.0.0</version> |
| 179 | + </dependency> |
| 180 | + <dependency> |
| 181 | + <groupId>com.graphql-java</groupId> |
| 182 | + <artifactId>graphql-java</artifactId> |
| 183 | + <version>21.5</version> |
| 184 | + </dependency> |
| 185 | + <dependency> |
| 186 | + <groupId>org.slf4j</groupId> |
| 187 | + <artifactId>slf4j-api</artifactId> |
| 188 | + <version>2.0.5</version> |
| 189 | + </dependency> |
| 190 | + <dependency> |
| 191 | + <groupId>org.slf4j</groupId> |
| 192 | + <artifactId>slf4j-nop</artifactId> |
| 193 | + <version>2.0.16</version> |
| 194 | + </dependency> |
| 195 | +<!-- <dependency>--> |
| 196 | +<!-- <groupId>org.apache.logging.log4j</groupId>--> |
| 197 | +<!-- <artifactId>log4j-slf4j2-impl</artifactId>--> |
| 198 | +<!-- <version>2.20.0</version>--> |
| 199 | +<!-- </dependency>--> |
| 200 | +<!-- <dependency>--> |
| 201 | +<!-- <groupId>org.apache.logging.log4j</groupId>--> |
| 202 | +<!-- <artifactId>log4j-api</artifactId>--> |
| 203 | +<!-- <version>2.20.0</version>--> |
| 204 | +<!-- </dependency>--> |
| 205 | +<!-- <dependency>--> |
| 206 | +<!-- <groupId>org.apache.logging.log4j</groupId>--> |
| 207 | +<!-- <artifactId>log4j-core</artifactId>--> |
| 208 | +<!-- <version>2.20.0</version>--> |
| 209 | +<!-- </dependency>--> |
| 210 | + <dependency> |
| 211 | + <groupId>junit</groupId> |
| 212 | + <artifactId>junit</artifactId> |
| 213 | + <version>4.13.2</version> |
| 214 | + <scope>test</scope> |
| 215 | + </dependency> |
| 216 | + </dependencies> |
| 217 | + |
| 218 | +</project> |
0 commit comments