Skip to content

Commit

Permalink
Set version to 3.0.323 (and migrate to deps and tools.build).
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Jan 14, 2022
1 parent b0147ed commit 88b3ac0
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 168 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ pom.xml.asc
*~
.\#*
*.iml
.cpcache
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Version 3.0.323

Date: 2022-01-14

- Update dependencies.
- Minimum JDK == 8.


## Version 3.0.1

Date: 2021-05-02
Expand Down
37 changes: 37 additions & 0 deletions build.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
(ns build
(:refer-clojure :exclude [compile])
(:require [clojure.tools.build.api :as b]))

(def lib 'buddy/buddy-auth)
(def version (format "3.0.%s" (b/git-count-revs nil)))
(def class-dir "target/classes")
(def basis (b/create-basis {:project "deps.edn"}))
(def jar-file (format "target/%s-%s.jar" (name lib) version))

(defn clean [_]
(b/delete {:path "target"}))

(defn jar [_]
(b/write-pom
{:class-dir class-dir
:lib lib
:version version
:basis basis
:src-dirs ["src"]})

(b/copy-dir
{:src-dirs ["src" "resources"]
:target-dir class-dir})

(b/jar
{:class-dir class-dir
:jar-file jar-file}))

(defn clojars [_]
(b/process
{:command-args ["mvn"
"deploy:deploy-file"
(str "-Dfile=" jar-file)
"-DpomFile=target/classes/META-INF/maven/buddy/buddy-auth/pom.xml"
"-DrepositoryId=clojars"
"-Durl=https://clojars.org/repo/"]}))
38 changes: 38 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{:deps
{buddy/buddy-sign {:mvn/version "3.4.333"}
clout/clout {:mvn/version "2.2.1"}}
:paths ["src" "resources" "target/classes"]
:aliases
{:dev
{:extra-deps
{org.clojure/tools.namespace {:mvn/version "RELEASE"}
org.clojure/test.check {:mvn/version "RELEASE"}
org.clojure/tools.deps.alpha {:mvn/version "RELEASE"}
org.clojure/clojure {:mvn/version "1.11.0-alpha4"}
com.bhauman/rebel-readline {:mvn/version "RELEASE"}
criterium/criterium {:mvn/version "RELEASE"}
}
:extra-paths ["test" "dev"]}

:test
{:extra-paths ["test"]
:extra-deps
{io.github.cognitect-labs/test-runner
{:git/tag "v0.5.0" :git/sha "b3fd0d2"}}
:exec-fn cognitect.test-runner.api/test
:exec-args {:patterns [".*-tests.*"]}}

:codox
{:extra-deps
{codox/codox {:mvn/version "RELEASE"}
org.clojure/tools.reader {:mvn/version "RELEASE"}
codox-theme-rdash/codox-theme-rdash {:mvn/version "RELEASE"}}}

:build
{:extra-deps {io.github.clojure/tools.build {:git/tag "v0.7.4" :git/sha "ac442da"}}
:ns-default build}

:outdated
{:extra-deps {com.github.liquidz/antq {:mvn/version "RELEASE"}
org.slf4j/slf4j-nop {:mvn/version "RELEASE"}}
:main-opts ["-m" "antq.core"]}}}
11 changes: 11 additions & 0 deletions doc.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(require '[codox.main :as codox])

(codox/generate-docs
{:output-path "doc/dist/latest"
:metadata {:doc/format :markdown}
:language :clojure
:name "buddy/buddy-auth"
:themes [:rdash]
:source-paths ["src"]
:namespaces [#"^buddy\."]
:source-uri "https://github.com/funcool/buddy-auth/blob/master/{filepath}#L{line}"})
3 changes: 1 addition & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ all: doc

doc:
mkdir -p dist/latest/
cd ..
lein codox
cd ..; clojure -A:dev:codox -M doc.clj;

github: doc
ghp-import -m "Generate documentation" -b gh-pages dist/
Expand Down
4 changes: 2 additions & 2 deletions doc/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ The simplest way to use _buddy-auth_ in a clojure project is by including it in
your *_project.clj_* dependency vector:

```clojure
{buddy/buddy-auth {:mvn/version "3.0.1"}
{buddy/buddy-auth {:mvn/version "3.0.323"}
```

This package is intended to be used with *jdk7* or *jdk8*.
This package is intended to be used with *jdk>=8*.


## Authentication
Expand Down
94 changes: 0 additions & 94 deletions pom.xml

This file was deleted.

56 changes: 0 additions & 56 deletions profiles.clj

This file was deleted.

14 changes: 0 additions & 14 deletions project.clj

This file was deleted.

0 comments on commit 88b3ac0

Please sign in to comment.