Skip to content

Commit

Permalink
feat: add kotlin and scala module (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
hezhangjian authored Feb 16, 2024
1 parent 741051f commit fd953d1
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 0 deletions.
48 changes: 48 additions & 0 deletions opengemini-client-kotlin/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.opengemini</groupId>
<artifactId>opengemini-client-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>opengemini-client-kotlin</artifactId>

<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>${kotlin.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>kotlin-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>kotlin-test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
40 changes: 40 additions & 0 deletions opengemini-client-scala/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.opengemini</groupId>
<artifactId>opengemini-client-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>opengemini-client-scala</artifactId>

<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala3-library_3</artifactId>
<version>${scala.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<module>opengemini-client-asynchttpclient</module>
<module>opengemini-client-common</module>
<module>opengemini-client-jdk</module>
<module>opengemini-client-kotlin</module>
<module>opengemini-client-okhttp</module>
<module>opengemini-client-reactor</module>
<module>opengemini-client-scala</module>
</modules>

<properties>
Expand All @@ -25,12 +27,14 @@
<!-- dependency -->
<async-http-client.version>3.0.0.Beta3</async-http-client.version>
<junit.version>5.10.2</junit.version>
<kotlin.version>1.9.22</kotlin.version>
<lombok.version>1.18.30</lombok.version>
<log4j.version>2.20.0</log4j.version>
<okhttp.version>4.12.0</okhttp.version>
<jackson.version>2.16.1</jackson.version>
<puppycrawl.version>10.12.3</puppycrawl.version>
<reactor-netty.version>1.1.10</reactor-netty.version>
<scala.version>3.4.0</scala.version>
<slf4j.version>2.0.7</slf4j.version>
<!-- plugin -->
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
Expand All @@ -45,6 +49,7 @@
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
<maven-surefire-plugin.version>3.2.1</maven-surefire-plugin.version>
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
<scala-maven-plugin.version>4.8.1</scala-maven-plugin.version>
<spotbugs-maven-plugin.version>4.7.3.6</spotbugs-maven-plugin.version>
</properties>

Expand Down

0 comments on commit fd953d1

Please sign in to comment.