Skip to content

Commit

Permalink
Merge pull request #60 from rileynewton/PE-36363-update-repo-to-jetty-10
Browse files Browse the repository at this point in the history
(PE-36363) Update repo to use Jetty 10, remove unversioned dependencies
  • Loading branch information
Steve Axthelm authored Jul 6, 2023
2 parents bdbbce7 + 48b14a7 commit 49c338d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.0.0

* This version updates testing in the repo to use trapperkeeper-webserver-jetty10. The repo
is now intended to be used with Jetty 10.

# 1.3.0
* This version updates the `wrap-add-cache-headers` middleware so that
it adds a `cache-control` header with the "no-store" directive instead of
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This project was originally adapted from tailrecursion's
[ring-proxy](https://github.com/tailrecursion/ring-proxy) middleware, and is
meant for use with the [Trapperkeeper Jetty9 Webservice](https://github.com/puppetlabs/trapperkeeper-webserver-jetty9). It also contains common ring middleware between Puppet projects and helpers to be used with the middleware.
meant for use with the [Trapperkeeper Jetty10 Webservice](https://github.com/puppetlabs/trapperkeeper-webserver-jetty10). It also contains common ring middleware between Puppet projects and helpers to be used with the middleware.

## Usage

Expand Down
21 changes: 6 additions & 15 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
(defproject puppetlabs/ring-middleware "1.3.2-SNAPSHOT"
:dependencies [[org.clojure/clojure]
[org.clojure/tools.logging]
[cheshire]
[prismatic/schema]
[ring/ring-core]
[slingshot]

[puppetlabs/http-client]
[puppetlabs/kitchensink]
[puppetlabs/ssl-utils]
[puppetlabs/i18n]]
(defproject puppetlabs/ring-middleware "2.0.0-SNAPSHOT"
:dependencies [[cheshire]]

:min-lein-version "2.7.1"

:parent-project {:coords [puppetlabs/clj-parent "0.4.3"]
:parent-project {:coords [puppetlabs/clj-parent "7.0.1"]
:inherit [:managed-dependencies]}

;; Abort when version ranges or version conflicts are detected in
;; dependencies. Also supports :warn to simply emit warnings.
;; requires lein 2.2.0+.
:pedantic? :abort

:plugins [[lein-parent "0.3.1"]
:plugins [[lein-parent "0.3.7"]
[puppetlabs/i18n "0.7.1"]]

:deploy-repositories [["releases" {:url "https://clojars.org/repo"
Expand All @@ -30,7 +20,8 @@
:sign-releases false}]
["snapshots" "http://nexus.delivery.puppetlabs.net/content/repositories/snapshots/"]]

:profiles {:dev {:dependencies [[puppetlabs/trapperkeeper-webserver-jetty9]
:profiles {:dev {:dependencies [[com.puppetlabs/trapperkeeper-webserver-jetty10 "1.0.1"]
[org.bouncycastle/bcpkix-jdk15on]
[puppetlabs/kitchensink nil :classifier "test" :scope "test"]
[puppetlabs/trapperkeeper nil :classifier "test" :scope "test"]
[compojure]]}})
6 changes: 3 additions & 3 deletions test/puppetlabs/ring_middleware/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[puppetlabs.ssl-utils.core :refer [pem->cert]]
[puppetlabs.ssl-utils.simple :as ssl-simple]
[puppetlabs.trapperkeeper.app :refer [get-service]]
[puppetlabs.trapperkeeper.services.webserver.jetty9-service :refer :all]
[puppetlabs.trapperkeeper.services.webserver.jetty10-service :refer :all]
[puppetlabs.trapperkeeper.testutils.bootstrap :refer [with-app-with-config]]
[puppetlabs.trapperkeeper.testutils.logging :as logutils]
[ring.util.response :as rr]
Expand Down Expand Up @@ -127,7 +127,7 @@
(defmacro with-target-and-proxy-servers
[{:keys [target proxy proxy-handler ring-handler endpoint target-endpoint]} & body]
`(with-app-with-config proxy-target-app#
[jetty9-service]
[jetty10-service]
{:webserver ~target}
(let [target-webserver# (get-service proxy-target-app# :WebserverService)]
(add-ring-handler
Expand All @@ -143,7 +143,7 @@
post-target-handler
"/hello/post"))
(with-app-with-config proxy-app#
[jetty9-service]
[jetty10-service]
{:webserver ~proxy}
(let [proxy-webserver# (get-service proxy-app# :WebserverService)]
(add-ring-handler proxy-webserver# ~proxy-handler ~endpoint))
Expand Down

0 comments on commit 49c338d

Please sign in to comment.