Skip to content

Commit 3f1f430

Browse files
committed
switch to Maven SNAPSHOTs prior to upcoming 2.1.0 release
1 parent 3078315 commit 3f1f430

File tree

8 files changed

+15
-19
lines changed

8 files changed

+15
-19
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/[email protected]
3232
with:
3333
distribution: 'temurin'
34-
java-version: '21'
34+
java-version: '24'
3535
- name: Setup Clojure
3636
uses: DeLaGuardo/[email protected]
3737
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/[email protected]
1818
with:
1919
distribution: 'temurin'
20-
java-version: '21'
20+
java-version: '24'
2121

2222
- name: Setup Clojure
2323
uses: DeLaGuardo/[email protected]

.github/workflows/test+deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/[email protected]
2525
with:
2626
distribution: 'temurin'
27-
java-version: '21'
27+
java-version: '24'
2828

2929
- name: Setup Clojure
3030
uses: DeLaGuardo/[email protected]
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/[email protected]
4545
with:
4646
distribution: 'temurin'
47-
java-version: '21'
47+
java-version: '24'
4848

4949
- name: Setup Clojure
5050
uses: DeLaGuardo/[email protected]
@@ -75,7 +75,7 @@ jobs:
7575
uses: actions/[email protected]
7676
with:
7777
distribution: 'temurin'
78-
java-version: '21'
78+
java-version: '24'
7979
- name: Setup Clojure
8080
uses: DeLaGuardo/[email protected]
8181
with:

cloudformation/03-lambda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Resources:
1616
PlayLambda:
1717
Type: 'AWS::Serverless::Function'
1818
Properties:
19-
Runtime: java21
19+
Runtime: java24
2020
Role: '{{resolve:ssm:xt-play_lambda-execution-role-arn}}'
2121
Handler: xt_play.lambda
2222
CodeUri:
@@ -43,7 +43,7 @@ Resources:
4343
Environment:
4444
Variables:
4545
JAVA_TOOL_OPTIONS: '--add-opens=java.base/java.nio=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true'
46-
XTDB_VERSION: '2.0.0'
46+
XTDB_VERSION: '2.x-SNAPSHOT'
4747

4848
SSMPlayLambdaName:
4949
Type: AWS::SSM::Parameter

deps.edn

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
{org.clojure/clojure {:mvn/version "1.12.0"}
55

66
;; XTDB dependencies
7-
com.xtdb/xtdb-api {:mvn/version "2.0.0"}
8-
com.xtdb/xtdb-core {:mvn/version "2.0.0"
9-
:exclusions [info.sunng/ring-jetty9-adapter
10-
info.sunng/ring-jetty9-adapter-http2]}
7+
com.xtdb/xtdb-api {:mvn/version "2.x-SNAPSHOT"}
8+
com.xtdb/xtdb-core {:mvn/version "2.x-SNAPSHOT"}
119

1210
org.postgresql/postgresql {:mvn/version "42.7.4"}
1311
com.github.seancorfield/next.jdbc {:mvn/version "1.3.939"}
@@ -23,7 +21,7 @@
2321
ring-cors/ring-cors {:mvn/version "0.1.13"}
2422

2523
;; TODO: dev deps?
26-
ring/ring-jetty-adapter {:mvn/version "1.13.0"}
24+
info.sunng/ring-jetty9-adapter {:mvn/version "0.38.0"}
2725
integrant/integrant {:mvn/version "0.8.1"}
2826

2927
;; SSR
@@ -79,4 +77,4 @@
7977
:mvn/repos
8078
{"central" {:url "https://repo1.maven.org/maven2/"}
8179
"clojars" {:url "https://clojars.org/repo"}
82-
"ossrh-snapshots" {:url "https://s01.oss.sonatype.org/content/repositories/snapshots"}}}
80+
"sonatype-snapshots" {:url "https://central.sonatype.com/repository/maven-snapshots/"}}}

src/clj/xt_play/handler.clj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
[ring.middleware.params :as params]
1414
[ring.util.response :as response]
1515
[xt-play.transactions :as txs]
16-
[xt-play.view :as view])
17-
(:import (xtdb.error Anomaly)))
16+
[xt-play.view :as view]))
1817

1918
(s/def ::system-time (s/nilable string?))
2019
(s/def ::txs string?)
@@ -40,8 +39,7 @@
4039
(exception/create-exception-middleware
4140
(merge
4241
exception/default-handlers
43-
{; Not sure if this is the right error to catch here
44-
Anomaly handle-client-error
42+
{xtdb.error.Incorrect handle-client-error
4543
clojure.lang.ExceptionInfo handle-client-error
4644
::exception/default handle-other-error})))
4745

src/clj/xt_play/server.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(ns xt-play.server
22
(:require [clojure.tools.logging :as log]
33
[integrant.core :as ig]
4-
[ring.adapter.jetty :as jetty]
4+
[ring.adapter.jetty9 :as jetty]
55
[xt-play.config :as config]
66
[xtdb.api :as xt]
77
[xtdb.node :as xtn]))

test/cljs/xt_play/model/run_test.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[xt-play.model.tx-batch :as batch]))
66

77
(def app-db
8-
{:version "2.0.0",
8+
{:version "2.x-SNAPSHOT",
99
:type :sql,
1010
:query "SELECT *, _valid_from FROM docs",
1111
::batch/list [::batch/tx5],

0 commit comments

Comments
 (0)