• Stars
    star
    334
  • Rank 121,830 (Top 3 %)
  • Language
    Clojure
  • License
    Other
  • Created about 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Point out your outdated dependencies.

Antq

Point out your outdated dependencies.

GitHub Actions for test workflow GitHub Actions for lint workflow GitHub Actions for dependencies workflow codecov

Clojars Project GitHub Container Registry

Note

Antq requires Clojure 1.10.0 or later.
Basically, antq could work regardless of the Clojure version which your project depends.
If you have a trouble, please see here.

Supported files

File Tool/Service Note

deps.edn

Clojure CLI

shadow-cljs.edn

Shadow-cljs

project.clj

Leiningen

Provides 2 ways of program and plug-in.

build.boot

Boot

pom.xml

Maven

.github/workflows/*.yml

GitHub Actions

bb.edn

Babashka

build.gradle

Gradle

Experimental. gradle command must be installed.

~/.clojure/tools

Clojure CLI Tools

Disabled by default. See --check-clojure-tools option.

Usage

Clojure CLI (deps.edn)

Run the following command for trial.

clojure -Sdeps '{:deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}}' -M -m antq.core

Or add the following alias to your $HOME/.clojure/deps.edn.

{
 :aliases
 {:outdated {;; Note that it is `:deps`, not `:extra-deps`
             :deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
             :main-opts ["-m" "antq.core"]}}
 }

Then, run clojure -M:outdated. (run clojure -A:outdated for Clojure CLI Tool 1.10.1.645 or earlier).

Clojure CLI Tools (1.11.1.1139 or later)

From Clojure CLI ver 1.11.1.1139, tool installation is supported.

# Install tool
clojure -Ttools install-latest :lib com.github.liquidz/antq :as antq
# Uninstall tool
clojure -Ttools remove :tool antq
# Update tool
clojure -Ttools install-latest :tool antq

# Execute
clojure -Tantq outdated
# Execute with parameter
clojure -Tantq outdated :upgrade true
# Show help
clojure -A:deps -Tantq help/doc
# Upgrade oudated dependencies
clojure -Tantq outdated :check-clojure-tools true :upgrade true

Leiningen (as a main program)

Add the following dependency and alias to your $HOME/.lein/profiles.clj.

{
 :user
 {:aliases {"outdated" ["with-profile" "antq" "run" "-m" "antq.core"]}}
 :antq
 {:dependencies [[com.github.liquidz/antq "RELEASE"]]}
 }

Then, run lein outdated.

Leiningen (as a plugin)

The Leiningen plugin is a newer offering. It tends to be more accurate (since it wonโ€™t parse your project.clj, having it evaluated by Leiningen instead). However the :upgrade option will not be supported (since the plugin cannot always know if a given dependency came from a specific profile, middleware, etc).

In order to use it, add the following plugin to your project.clj (or $HOME/.lein/profiles.clj):

 :plugins [[com.github.liquidz/antq "RELEASE"]]
 ;; optional - you can add antq options here:
 :antq {}

Then, run lein antq.

GitHub Actions

Antq can work with GitHub Actions. See antqโ€™s workflow for concrete example.

In another way, you can use the following action.

Gradle

Antq experimentally supports Gradle. See here for details.

Timeouts

Antq has timeouts for acquiring various information. See here for details.

Options

--upgrade

Upgrade outdated versions interactively. You can use --force option for upgrading without confirmation, and --download option for downloading upgraded dependencies on the fly.

Warning

For now, --upgrade option only supports following files.

  • deps.edn

  • shadow-cljs.edn

  • project.clj

  • build.boot

  • pom.xml

--exclude=ARTIFACT_NAME[@VERSION]

Skip version checking for specified artifacts or versions.

E.g.

# Exclude all versions of specified artifact
--exclude=com.github.liquidz/antq
# Exclude specific version of specified artifact
--exclude=com.github.liquidz/[email protected]
# Exclude version range of specified artifact
--exclude=com.github.liquidz/[email protected]

When you specified a version number, antq will report the latest version excluding only the specified version.

You could also specify dependencies to exclude with :antq/exclude metadata. See Exclusions for more information.

Note
You must specify groupId/artifactId for Java dependencies.

--directory=DIRECTORY

Add search path for projects. Current directory(.) is added by default.

E.g. -d foo --directory=bar:baz will search "foo", "baz" and "bar" directories.

--focus=ARTIFACT_NAME

Focus version checking for specified artifacts.

E.g. --focus=com.github.liquidz/antq

Note
You must specify groupId/artifactId for Java dependencies.
Warning
focus option is prefer than exclude option.

--skip=PROJECT_TYPE

Skip to search specified project files. Must be one of boot, clojure-cli, github-action, pom, shadow-cljs and leiningen.

E.g. --skip=pom

--error-format=ERROR_FORMAT

Customize outputs for outdated dependencies.

E.g. --error-format="::error file={{file}}::{{message}}"

You can use following variables:

Variable Name Description

{{file}}

A filename containing outdated dependencies.

{{name}}

The artifact name.

{{version}}

The current version.

{{latest-version}}

The latest version.

{{latest-name}}

The latest artifact name. See details: Clojars Verified Group Names policy.

{{changes-url}}

The changes URL in Version Control System. (Nullable)

{{diff-url}}

Warning
DEPRECATED. Please use changes-url instead.

The diff URL for Version Control System. (Nullable)

{{message}}

Default error message.

--reporter=REPORTER

Reporter Name Description

table (default)

Report results in a table.

format

Report results with a custom format. When you use --error-format option, this reporter will be used automatically.

json

Report results as a JSON format.

edn

Report results as a EDN format.

--download

If download is set and updated dependencies are found, download them at the same time as a convenience. The default action is not to download anything.

Warning

antq only downloads upgraded dependencies by --upgrade option.

If you upgrade manually or without the --download option and the version is changed to the latest, the new version will not be downloaded even if you specify the --download option later (because antq does not detect differences).

--ignore-locals

For java dependencies, ignore versions installed to your local Maven repository(~/.m2/)

--check-clojure-tools

Detect all tools installed in ~/.clojure/tools as dependencies. You can also upgrade them with --upgrade option.

--no-changes

Skip checking changes between deps' versions. Disabled by default.

--no-diff

Warning
DEPRECATED. Please use --no-changes instead.

Skip checking diff between deps' versions. Disabled by default.

--transitive

Scan outdated transitive dependencies. Disabled by default.

Note

The default scan depth is 5, but it is customizable by the environmental variable ANTQ_TRANSITIVE_MAX_DEPTH.

Warning

With this option, the number of reported dependencies tends to be very large, so it is recommended to use it with the --no-changes option. Otherwise, it may take a long time for the results to be reported.

Projects using antq

License

Copyright ยฉ 2020-2023 Masashi Iizuka

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

More Repositories

1

vim-iced

Clojure Interactive Development Environment for Vim8/Neovim
Vim Script
490
star
2

misaki

Jekyll inspired static site generator in Clojure
Clojure
319
star
3

dad

Small configuration management tool for Clojure
Clojure
123
star
4

clj-jwt

Clojure library for JSON Web Token(JWT)
Clojure
119
star
5

jubot

Chatbot framework in Clojure
Clojure
68
star
6

build.edn

Make your Clojure library build process easy.
Clojure
63
star
7

merr

๐Ÿ”ฅ Minimal and good enough error handling library for Clojure/ClojureScript
Clojure
48
star
8

cuma

Extensible micro template engine for Clojure
Clojure
31
star
9

testdoc

Yet another doctest implementation in Clojure
Clojure
25
star
10

vivi.vim

Support to setup Elixir development environment in Vim.
Vim Script
22
star
11

babashka-test-action

Github Action to run clojure.test by Babashka
Clojure
14
star
12

clj-xmas

๐ŸŽ„ ๐ŸŽ„ ๐ŸŽ„
Clojure
14
star
13

iced-nrepl

nREPL middleware to support vim-iced.
Clojure
13
star
14

vim-iced-coc-source

vim-iced plugin for completing with coc.nvim
Vim Script
13
star
15

clj-gravatar

gravatar api wrapper for clojure
Clojure
9
star
16

vim-iced-fern-debugger

vim-iced debugging plugin powered by fern.vim
Vim Script
9
star
17

thrempl

A proof of concept for simple template engine using threading macros
Clojure
9
star
18

clj-vimhelp

Vim help file parser/convertor written by Clojure
Clojure
8
star
19

kaocha-nrepl

nREPL middleware for kaocha
Clojure
8
star
20

docker-asciidoctor-jp

Makefile
7
star
21

clj-text-decoration

Text decoration library
Clojure
7
star
22

frontmatter

Parse front matter from a file
Clojure
6
star
23

corne

Commandline argument parser for Common Lisp
Common Lisp
6
star
24

dps-parinfer

WIP
TypeScript
5
star
25

shelltest

Shell testing tool inspired by doctest.
Go
5
star
26

vim-iced-kaocha

vim-iced plugin for testing with kaocha
Vim Script
5
star
27

selenium-ide-pretty-report

JavaScript
5
star
28

ddu-source-custom-list

Custom list source for ddu.vim
TypeScript
5
star
29

gauche

source for gauche
Scheme
4
star
30

antq-action

Shell
4
star
31

deno-nrepl-client

TypeScript
4
star
32

clj-password-check

password checker library for clojure
Clojure
4
star
33

vim-textimer

Text based timer vim plugin heaviliy inspired by Efforless.
Vim Script
4
star
34

rewrite-indented

Clojure
4
star
35

vim-iced-project-namespaces

vim-iced plugin to jump to namespace in your project
Vim Script
4
star
36

liquidz

Clojure
4
star
37

lein-vim

vim plugin for leiningen
Vim Script
4
star
38

vim-icedon

TypeScript
4
star
39

misaki-markdown

Markdown Compiler for Misaki
Clojure
4
star
40

opera-widgets

source code for opera widgets
JavaScript
3
star
41

dotfiles

Vim Script
3
star
42

default

default repository
3
star
43

vimfiler-sendto

sendto plugin for vimfiler
Vim Script
3
star
44

misaki-clostache

misaki compiler using Clostache
Clojure
3
star
45

vim-iced-multi-session

vim-iced plugin to add support for multi session
Vim Script
3
star
46

template-scala-gae

scala project template for google app engine
Scala
3
star
47

pod-uochan-tarayo

Clojure
3
star
48

vim-iced-ddc-source

vim-iced plugin for completing with ddc.vim
TypeScript
3
star
49

debug-reader

Gauche like debug print reader
Clojure
3
star
50

liquidz.github.com

Clojure
3
star
51

Titanium-BookMemo

JavaScript
2
star
52

deno-bencode

Bencode decoder/encode for Deno
TypeScript
2
star
53

namakemono

lazy language "NAMAKEMONO"
C
2
star
54

heroku-template

Clojure
2
star
55

neelm

Clojure
2
star
56

_dead_repo_pipette_

new_data = pipette(data, template)
Elixir
2
star
57

vim-iced-neil

vim-iced plugin to add support for babashka/neil
Vim Script
2
star
58

yuruyomi

lazy management tool for reading books
Clojure
2
star
59

lein-autotest-notify

leiningen plugin for auto testing and notifying test result with growl
Clojure
2
star
60

unitaskpapera

task paper clone for opera unite
JavaScript
2
star
61

lp

Lazy Presentation Tool
JavaScript
2
star
62

docker-heroku-toolbelt

Shell
2
star
63

vim-iced-function-list

Vim Script
1
star
64

collepi

Clojure
1
star
65

plojuctor

presentation tool in clojure repl
Clojure
1
star
66

kininaru-hon

Clojure
1
star
67

clojure-ical

icalendar library for clojure
Clojure
1
star
68

unite-bookmark-file

Vim Script
1
star
69

practical-compojure-sample

Clojure
1
star
70

family-bot

Elixir
1
star
71

vim-elin

Clojure
1
star
72

clojure-twitter

twitter4j wrapper for clojure
Clojure
1
star
73

vim-iced-asyncomplete

vim-iced plugin for completing with asyncomplete.vim
Vim Script
1
star
74

vim-colors-uochan

Vim Script
1
star
75

norosi

WIP: Notification, work logging, and etc.
Clojure
1
star
76

favook

JavaScript
1
star
77

digitalocean

Makefile
1
star
78

kansobun

Clojure
1
star
79

clj-error-checker

Clojure
1
star
80

testframework

library package to build web application easily
Clojure
1
star
81

clj-htmltpl

Clojure
1
star
82

vim-file-to-file

A vim plugin to write part of a file to a separete file
Vim Script
1
star
83

unite-circleci

Unite candidates for CircleCI
Vim Script
1
star
84

cl-docset-generator

Common Lisp
1
star
85

clojure-simply

write clojure code more simply
Clojure
1
star
86

nrepl-json

nREPL JSON Transport
Clojure
1
star
87

clj-digest

digest functions for clojure
Clojure
1
star
88

jubot-sample

Clojure
1
star
89

clj-spymemcached

simple spymemcached wrapper
Clojure
1
star
90

mixi_app_test

JavaScript
1
star
91

clj-pretty-error

Library to controll exception and stack traces for Clojure
Clojure
1
star
92

smile-celtic

Clojure
1
star
93

lt-note

JavaScript
1
star
94

collepi-android

Java
1
star
95

hello-nrepl-middleware

Clojure
1
star
96

clj-path

Clojure
1
star
97

dps-paredit

TypeScript
1
star
98

docker-jupyter

Makefile
1
star