Skip to content

Commit 2354e10

Browse files
Use CRAC api from org.crac and upadte project website (#8)
1 parent 6b38c54 commit 2354e10

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/maven.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
echo JDK=${archive%%.tar.gz} >> $GITHUB_ENV
5656
5757
- name: Use specific API
58-
if: matrix.api != 'jdk'
58+
if: matrix.api != 'org'
5959
run: |
60-
find -name '*.java' | xargs sed -i 's/jdk\.crac/${{ matrix.api }}.crac/g'
60+
find -name '*.java' | xargs sed -i 's/org\.crac/${{ matrix.api }}.crac/g'
6161
git diff
6262
6363
- run: |

pom.xml

+6-9
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<version>1.0-SNAPSHOT</version>
1010

1111
<name>example-jetty</name>
12-
<!-- FIXME change it to the project's website -->
13-
<url>http://www.example.com</url>
12+
<url>https://github.com/CRaC/example-jetty</url>
1413

1514
<properties>
1615
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -28,6 +27,11 @@
2827
<artifactId>jetty-server</artifactId>
2928
<version>9.4.30.v20200611</version>
3029
</dependency>
30+
<dependency>
31+
<groupId>org.crac</groupId>
32+
<artifactId>crac</artifactId>
33+
<version>0.1.3</version>
34+
</dependency>
3135
</dependencies>
3236

3337
<profiles>
@@ -54,13 +58,6 @@
5458
<maven.compiler.source>1.8</maven.compiler.source>
5559
<maven.compiler.target>1.8</maven.compiler.target>
5660
</properties>
57-
<dependencies>
58-
<dependency>
59-
<groupId>io.github.crac</groupId>
60-
<artifactId>org-crac</artifactId>
61-
<version>0.1.0</version>
62-
</dependency>
63-
</dependencies>
6461
</profile>
6562
</profiles>
6663

src/main/java/com/example/App.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
// org.crac could be used instead of jdk.crac
99
// https://github.com/CRaC/docs#orgcrac
10-
import jdk.crac.Context;
11-
import jdk.crac.Core;
12-
import jdk.crac.Resource;
10+
import org.crac.Context;
11+
import org.crac.Core;
12+
import org.crac.Resource;
1313

1414
import org.eclipse.jetty.server.Handler;
1515
import org.eclipse.jetty.server.Server;

0 commit comments

Comments
 (0)