Skip to content

Commit d6a563e

Browse files
committed
update pom files
1 parent 3937d9d commit d6a563e

File tree

12 files changed

+138
-253
lines changed

12 files changed

+138
-253
lines changed

container-image-generator/container-images/java/base-21/app/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<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">
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">
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
88
<artifactId>generate-app</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
9+
<version>0.1.0</version>
1010

1111
<properties>
1212
<java.version>21</java.version>
@@ -16,31 +16,31 @@
1616
</properties>
1717

1818
<dependencies>
19-
19+
2020
<dependency>
2121
<groupId>com.google.guava</groupId>
2222
<artifactId>guava</artifactId>
2323
<version>33.4.6-jre</version>
2424
</dependency>
25-
25+
2626
<dependency>
2727
<groupId>org.apache.commons</groupId>
2828
<artifactId>commons-lang3</artifactId>
2929
<version>3.17.0</version>
3030
</dependency>
31-
31+
3232
<dependency>
3333
<groupId>com.fasterxml.jackson.core</groupId>
3434
<artifactId>jackson-databind</artifactId>
3535
<version>2.18.3</version>
3636
</dependency>
37-
37+
3838
<dependency>
3939
<groupId>com.squareup.okhttp3</groupId>
4040
<artifactId>okhttp</artifactId>
4141
<version>4.12.0</version>
4242
</dependency>
43-
43+
4444
</dependencies>
4545

4646
<build>

container-image-generator/pom.xml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
9+
<version>0.1.0</version>
1010
</parent>
1111

1212
<artifactId>container-image-generator</artifactId>
1313
<name>LLM Code Executor :: Container Image Generator</name>
14+
<description>Generate container images to execute code</description>
1415

1516
<properties>
1617
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -23,29 +24,11 @@
2324

2425

2526
<build>
26-
<sourceDirectory>src/main/kotlin</sourceDirectory>
27-
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
2827
<finalName>container-image-generator</finalName>
2928
<plugins>
3029
<plugin>
3130
<groupId>org.jetbrains.kotlin</groupId>
3231
<artifactId>kotlin-maven-plugin</artifactId>
33-
<executions>
34-
<execution>
35-
<id>compile</id>
36-
<phase>compile</phase>
37-
<goals>
38-
<goal>compile</goal>
39-
</goals>
40-
</execution>
41-
<execution>
42-
<id>test-compile</id>
43-
<phase>test-compile</phase>
44-
<goals>
45-
<goal>test-compile</goal>
46-
</goals>
47-
</execution>
48-
</executions>
4932
</plugin>
5033
<plugin>
5134
<artifactId>maven-surefire-plugin</artifactId>
@@ -99,23 +82,6 @@
9982
<artifactId>logback-classic</artifactId>
10083
<version>1.5.16</version>
10184
</dependency>
102-
<dependency>
103-
<groupId>org.jetbrains.kotlin</groupId>
104-
<artifactId>kotlin-test-junit5</artifactId>
105-
<version>2.1.10</version>
106-
<scope>test</scope>
107-
</dependency>
108-
<dependency>
109-
<groupId>org.junit.jupiter</groupId>
110-
<artifactId>junit-jupiter</artifactId>
111-
<version>5.10.0</version>
112-
<scope>test</scope>
113-
</dependency>
114-
<dependency>
115-
<groupId>org.jetbrains.kotlin</groupId>
116-
<artifactId>kotlin-stdlib</artifactId>
117-
<version>2.1.10</version>
118-
</dependency>
11985
</dependencies>
12086

12187
</project>

container-image-generator/src/main/resources/templates/java/pom.xml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
88
<artifactId>generate-app</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
9+
<version>0.1.0</version>
1010

1111
<properties>
1212
<java.version>{{javaVersion}}</java.version>

core/pom.xml

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
9+
<version>0.1.0</version>
1010
</parent>
1111

1212
<artifactId>core</artifactId>
1313
<name>LLM Code Executor :: Core</name>
14+
<description>LLM code executor core component</description>
1415

1516
<properties>
1617
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -19,40 +20,10 @@
1920
</properties>
2021

2122
<build>
22-
<sourceDirectory>src/main/kotlin</sourceDirectory>
23-
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
2423
<plugins>
2524
<plugin>
2625
<groupId>org.jetbrains.kotlin</groupId>
2726
<artifactId>kotlin-maven-plugin</artifactId>
28-
<executions>
29-
<execution>
30-
<id>compile</id>
31-
<phase>compile</phase>
32-
<goals>
33-
<goal>compile</goal>
34-
</goals>
35-
</execution>
36-
<execution>
37-
<id>test-compile</id>
38-
<phase>test-compile</phase>
39-
<goals>
40-
<goal>test-compile</goal>
41-
</goals>
42-
</execution>
43-
</executions>
44-
</plugin>
45-
<plugin>
46-
<groupId>org.apache.maven.plugins</groupId>
47-
<artifactId>maven-jar-plugin</artifactId>
48-
<version>3.0.2</version>
49-
<executions>
50-
<execution>
51-
<goals>
52-
<goal>test-jar</goal>
53-
</goals>
54-
</execution>
55-
</executions>
5627
</plugin>
5728
<plugin>
5829
<artifactId>maven-surefire-plugin</artifactId>
@@ -79,23 +50,6 @@
7950
<artifactId>logback-classic</artifactId>
8051
<version>1.5.16</version>
8152
</dependency>
82-
<dependency>
83-
<groupId>org.jetbrains.kotlin</groupId>
84-
<artifactId>kotlin-test-junit5</artifactId>
85-
<version>2.1.10</version>
86-
<scope>test</scope>
87-
</dependency>
88-
<dependency>
89-
<groupId>org.junit.jupiter</groupId>
90-
<artifactId>junit-jupiter</artifactId>
91-
<version>5.10.0</version>
92-
<scope>test</scope>
93-
</dependency>
94-
<dependency>
95-
<groupId>org.jetbrains.kotlin</groupId>
96-
<artifactId>kotlin-stdlib</artifactId>
97-
<version>2.1.10</version>
98-
</dependency>
9953
</dependencies>
10054

10155
</project>

executors/java/pom.xml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,18 @@
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
88
<artifactId>executors</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
9+
<version>0.1.0</version>
1010
</parent>
1111

1212
<artifactId>executor-java</artifactId>
1313
<name>LLM Code Executor :: Executor :: Java</name>
14+
<description>Execute Java code for LLM</description>
1415

1516
<build>
16-
<sourceDirectory>src/main/kotlin</sourceDirectory>
17-
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
1817
<plugins>
1918
<plugin>
2019
<groupId>org.jetbrains.kotlin</groupId>
2120
<artifactId>kotlin-maven-plugin</artifactId>
22-
<executions>
23-
<execution>
24-
<id>compile</id>
25-
<phase>compile</phase>
26-
<goals>
27-
<goal>compile</goal>
28-
</goals>
29-
</execution>
30-
<execution>
31-
<id>test-compile</id>
32-
<phase>test-compile</phase>
33-
<goals>
34-
<goal>test-compile</goal>
35-
</goals>
36-
</execution>
37-
</executions>
3821
</plugin>
3922
<plugin>
4023
<artifactId>maven-surefire-plugin</artifactId>
@@ -56,23 +39,6 @@
5639
<artifactId>handlebars</artifactId>
5740
<version>4.4.0</version>
5841
</dependency>
59-
<dependency>
60-
<groupId>org.jetbrains.kotlin</groupId>
61-
<artifactId>kotlin-test-junit5</artifactId>
62-
<version>2.1.10</version>
63-
<scope>test</scope>
64-
</dependency>
65-
<dependency>
66-
<groupId>org.junit.jupiter</groupId>
67-
<artifactId>junit-jupiter</artifactId>
68-
<version>5.10.0</version>
69-
<scope>test</scope>
70-
</dependency>
71-
<dependency>
72-
<groupId>org.jetbrains.kotlin</groupId>
73-
<artifactId>kotlin-stdlib</artifactId>
74-
<version>2.1.10</version>
75-
</dependency>
7642
</dependencies>
7743

7844
</project>

executors/java/src/main/kotlin/com/javaaidev/llmcodeexecutor/executor/java/JavaCodeExecutor.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ data class JavaCodeExecutorConfig(
88
val containerImage: String? = null,
99
)
1010

11-
object JavaCodeExecutor {
11+
class JavaCodeExecutor(private val config: JavaCodeExecutorConfig? = null) {
1212

1313
fun execute(
14-
request: CodeExecutionRequest,
15-
config: JavaCodeExecutorConfig? = null
14+
request: CodeExecutionRequest
1615
): CodeExecutionResponse {
1716
val codeDir = Files.createTempDirectory("code_executor")
1817
val codeFile = "Main.java"

executors/java/src/test/kotlin/com/javaaidev/llmcodeexecutor/executor/java/JavaCodeExecutorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import org.junit.jupiter.api.Test
66
class JavaCodeExecutorTest {
77
@Test
88
fun basic() {
9-
val result = JavaCodeExecutor.execute(
9+
val result = JavaCodeExecutor().execute(
1010
CodeExecutionRequest(
1111
"""
1212
public class Main {

executors/pom.xml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
<parent>
77
<groupId>com.javaaidev.llmcodeexecutor</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
9+
<version>0.1.0</version>
1010
</parent>
1111

1212
<artifactId>executors</artifactId>
1313
<name>LLM Code Executor :: Executors</name>
14+
<description>LLM code executors</description>
1415
<packaging>pom</packaging>
1516
<modules>
1617
<module>python</module>
@@ -30,22 +31,6 @@
3031
<plugin>
3132
<groupId>org.jetbrains.kotlin</groupId>
3233
<artifactId>kotlin-maven-plugin</artifactId>
33-
<executions>
34-
<execution>
35-
<id>compile</id>
36-
<phase>compile</phase>
37-
<goals>
38-
<goal>compile</goal>
39-
</goals>
40-
</execution>
41-
<execution>
42-
<id>test-compile</id>
43-
<phase>test-compile</phase>
44-
<goals>
45-
<goal>test-compile</goal>
46-
</goals>
47-
</execution>
48-
</executions>
4934
</plugin>
5035
<plugin>
5136
<artifactId>maven-surefire-plugin</artifactId>
@@ -56,24 +41,4 @@
5641
</plugins>
5742
</build>
5843

59-
<dependencies>
60-
<dependency>
61-
<groupId>org.jetbrains.kotlin</groupId>
62-
<artifactId>kotlin-test-junit5</artifactId>
63-
<version>2.1.10</version>
64-
<scope>test</scope>
65-
</dependency>
66-
<dependency>
67-
<groupId>org.junit.jupiter</groupId>
68-
<artifactId>junit-jupiter</artifactId>
69-
<version>5.10.0</version>
70-
<scope>test</scope>
71-
</dependency>
72-
<dependency>
73-
<groupId>org.jetbrains.kotlin</groupId>
74-
<artifactId>kotlin-stdlib</artifactId>
75-
<version>2.1.10</version>
76-
</dependency>
77-
</dependencies>
78-
7944
</project>

0 commit comments

Comments
 (0)