Skip to content

Commit ec2608a

Browse files
committed
Initial commit
0 parents  commit ec2608a

File tree

8 files changed

+1173
-0
lines changed

8 files changed

+1173
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ko_fi: alexcheng1982
2+
github: alexcheng1982

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: "17"
19+
distribution: "temurin"
20+
cache: maven
21+
- name: Build with Maven
22+
run: mvn --batch-mode --update-snapshots package

.github/workflows/publish.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [ created ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: '17'
14+
distribution: 'temurin'
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
19+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
20+
- name: Publish package
21+
run: mvn --batch-mode deploy
22+
env:
23+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
24+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
25+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
5+
6+
### IntelliJ IDEA ###
7+
.idea
8+
*.iws
9+
*.iml
10+
*.ipr
11+
12+
### Eclipse ###
13+
.apt_generated
14+
.classpath
15+
.factorypath
16+
.project
17+
.settings
18+
.springBeans
19+
.sts4-cache
20+
21+
### NetBeans ###
22+
/nbproject/private/
23+
/nbbuild/
24+
/dist/
25+
/nbdist/
26+
/.nb-gradle/
27+
build/
28+
!**/src/main/**/build/
29+
!**/src/test/**/build/
30+
31+
### VS Code ###
32+
.vscode/
33+
34+
### Mac OS ###
35+
.DS_Store

pom.xml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.javaaidev</groupId>
8+
<artifactId>openai-chatmodel-standalone</artifactId>
9+
<version>0.1.0</version>
10+
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<maven.compiler.source>17</maven.compiler.source>
14+
<maven.compiler.target>17</maven.compiler.target>
15+
<kotlin.code.style>official</kotlin.code.style>
16+
<kotlin.compiler.jvmTarget>17</kotlin.compiler.jvmTarget>
17+
<spring-ai.version>1.0.0-M5</spring-ai.version>
18+
<openai-java.version>0.22.1</openai-java.version>
19+
</properties>
20+
21+
<repositories>
22+
<repository>
23+
<id>mavenCentral</id>
24+
<url>https://repo1.maven.org/maven2/</url>
25+
</repository>
26+
</repositories>
27+
28+
29+
<build>
30+
<sourceDirectory>src/main/kotlin</sourceDirectory>
31+
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
32+
<pluginManagement>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.apache.maven.plugins</groupId>
36+
<artifactId>maven-surefire-plugin</artifactId>
37+
<version>3.2.5</version>
38+
<configuration>
39+
<excludedGroups>manual</excludedGroups>
40+
</configuration>
41+
</plugin>
42+
<plugin>
43+
<groupId>org.sonatype.central</groupId>
44+
<artifactId>central-publishing-maven-plugin</artifactId>
45+
<version>0.4.0</version>
46+
<extensions>true</extensions>
47+
<configuration>
48+
<publishingServerId>ossrh</publishingServerId>
49+
<tokenAuth>true</tokenAuth>
50+
<autoPublish>true</autoPublish>
51+
</configuration>
52+
</plugin>
53+
<plugin>
54+
<groupId>org.apache.maven.plugins</groupId>
55+
<artifactId>maven-source-plugin</artifactId>
56+
<version>2.2.1</version>
57+
<executions>
58+
<execution>
59+
<id>attach-sources</id>
60+
<goals>
61+
<goal>jar-no-fork</goal>
62+
</goals>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-javadoc-plugin</artifactId>
69+
<version>3.6.3</version>
70+
<executions>
71+
<execution>
72+
<id>attach-javadocs</id>
73+
<goals>
74+
<goal>jar</goal>
75+
</goals>
76+
<configuration>
77+
<failOnError>false</failOnError>
78+
</configuration>
79+
</execution>
80+
</executions>
81+
</plugin>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-gpg-plugin</artifactId>
85+
<version>3.1.0</version>
86+
<executions>
87+
<execution>
88+
<id>sign-artifacts</id>
89+
<phase>verify</phase>
90+
<goals>
91+
<goal>sign</goal>
92+
</goals>
93+
</execution>
94+
</executions>
95+
</plugin>
96+
</plugins>
97+
</pluginManagement>
98+
<plugins>
99+
<plugin>
100+
<groupId>org.jetbrains.kotlin</groupId>
101+
<artifactId>kotlin-maven-plugin</artifactId>
102+
<version>2.1.10</version>
103+
<executions>
104+
<execution>
105+
<id>compile</id>
106+
<phase>compile</phase>
107+
<goals>
108+
<goal>compile</goal>
109+
</goals>
110+
</execution>
111+
<execution>
112+
<id>test-compile</id>
113+
<phase>test-compile</phase>
114+
<goals>
115+
<goal>test-compile</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<artifactId>maven-surefire-plugin</artifactId>
122+
<version>2.22.2</version>
123+
</plugin>
124+
<plugin>
125+
<artifactId>maven-failsafe-plugin</artifactId>
126+
<version>2.22.2</version>
127+
</plugin>
128+
<plugin>
129+
<groupId>org.sonatype.central</groupId>
130+
<artifactId>central-publishing-maven-plugin</artifactId>
131+
</plugin>
132+
<plugin>
133+
<groupId>org.apache.maven.plugins</groupId>
134+
<artifactId>maven-source-plugin</artifactId>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.apache.maven.plugins</groupId>
138+
<artifactId>maven-javadoc-plugin</artifactId>
139+
</plugin>
140+
<plugin>
141+
<groupId>org.apache.maven.plugins</groupId>
142+
<artifactId>maven-gpg-plugin</artifactId>
143+
</plugin>
144+
</plugins>
145+
</build>
146+
147+
<dependencies>
148+
<dependency>
149+
<groupId>org.springframework.ai</groupId>
150+
<artifactId>spring-ai-core</artifactId>
151+
<version>${spring-ai.version}</version>
152+
</dependency>
153+
<dependency>
154+
<groupId>com.openai</groupId>
155+
<artifactId>openai-java</artifactId>
156+
<version>${openai-java.version}</version>
157+
</dependency>
158+
<dependency>
159+
<groupId>org.jetbrains.kotlin</groupId>
160+
<artifactId>kotlin-test-junit5</artifactId>
161+
<version>2.1.10</version>
162+
<scope>test</scope>
163+
</dependency>
164+
<dependency>
165+
<groupId>org.junit.jupiter</groupId>
166+
<artifactId>junit-jupiter</artifactId>
167+
<version>5.10.0</version>
168+
<scope>test</scope>
169+
</dependency>
170+
<dependency>
171+
<groupId>org.jetbrains.kotlin</groupId>
172+
<artifactId>kotlin-stdlib</artifactId>
173+
<version>2.1.10</version>
174+
</dependency>
175+
<dependency>
176+
<groupId>com.fasterxml.jackson.module</groupId>
177+
<artifactId>jackson-module-kotlin</artifactId>
178+
<version>2.18.2</version>
179+
<scope>test</scope>
180+
</dependency>
181+
</dependencies>
182+
183+
</project>

0 commit comments

Comments
 (0)