File tree Expand file tree Collapse file tree 17 files changed +46
-36
lines changed
solutions/java/01-at4/code Expand file tree Collapse file tree 17 files changed +46
-36
lines changed Original file line number Diff line number Diff line change 88
99set -e # Exit on failure
1010
11- exec java -jar /tmp/codecrafters-build-http-server-java/java_http .jar " $@ "
11+ exec java -jar /tmp/codecrafters-build-http-server-java/codecrafters-http-server .jar " $@ "
Original file line number Diff line number Diff line change 1- java_http.jar
2- target /*
1+ * .jar
32target /
4- .idea /
3+ .idea /
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Time to move on to the next stage!
3131
3232Note: This section is for stages 2 and beyond.
3333
34- 1 . Ensure you have ` java (21) ` installed locally
34+ 1 . Ensure you have ` mvn ` installed locally
35351 . Run ` ./your_program.sh ` to run your program, which is implemented in
3636 ` src/main/java/Main.java ` .
37371 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
77# Use this to change the Java version used to run your code
88# on Codecrafters.
99#
10- # Available versions: java-21
11- language_pack : java-21
10+ # Available versions: java-23
11+ language_pack : java-23
Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66
77 <groupId >io.codecrafters</groupId >
8- <artifactId >build-your-own- http</artifactId >
8+ <artifactId >codecrafters- http-server </artifactId >
99 <version >1.0</version >
1010
1111 <properties >
12- <maven .compiler.source>21 </maven .compiler.source>
13- <maven .compiler.target>21 </maven .compiler.target>
12+ <maven .compiler.source>23 </maven .compiler.source>
13+ <maven .compiler.target>23 </maven .compiler.target>
1414 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15- <java .version>21 </java .version>
15+ <java .version>23 </java .version>
1616 </properties >
1717
1818 <build >
2121 <groupId >org.apache.maven.plugins</groupId >
2222 <artifactId >maven-assembly-plugin</artifactId >
2323 <configuration >
24- <finalName >java_http </finalName > <!-- Please do not change this final artifact name-->
24+ <finalName >codecrafters-http-server </finalName > <!-- Please do not change this final artifact name-->
2525 <descriptorRefs >
2626 <descriptorRef >jar-with-dependencies</descriptorRef >
2727 </descriptorRefs >
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ set -e # Exit early if any commands fail
2121#
2222# - Edit this to change how your program runs locally
2323# - Edit .codecrafters/run.sh to change how your program runs remotely
24- exec java -jar /tmp/codecrafters-build-http-server-java/java_http .jar " $@ "
24+ exec java -jar /tmp/codecrafters-build-http-server-java/codecrafters-http-server .jar " $@ "
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.7-labs
2+ FROM maven:3.9.9-eclipse-temurin-23-alpine
3+
4+ # Ensures the container is re-built if dependency files change
5+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="pom.xml"
6+
7+ WORKDIR /app
8+
9+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10+ COPY --exclude=.git --exclude=README.md . /app
11+
12+ # Install language-specific dependencies
13+ RUN .codecrafters/compile.sh
Original file line number Diff line number Diff line change 88
99set -e # Exit on failure
1010
11- exec java -jar /tmp/codecrafters-build-http-server-java/java_http .jar " $@ "
11+ exec java -jar /tmp/codecrafters-build-http-server-java/codecrafters-http-server .jar " $@ "
Original file line number Diff line number Diff line change 1- java_http.jar
2- target /*
1+ * .jar
32target /
4- .idea /
3+ .idea /
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Time to move on to the next stage!
3131
3232Note: This section is for stages 2 and beyond.
3333
34- 1 . Ensure you have ` java (21) ` installed locally
34+ 1 . Ensure you have ` mvn ` installed locally
35351 . Run ` ./your_program.sh ` to run your program, which is implemented in
3636 ` src/main/java/Main.java ` .
37371 . Commit your changes and run ` git push origin master ` to submit your solution
You can’t perform that action at this time.
0 commit comments