Coder Social home page Coder Social logo

antq's Introduction

Antq

Point out your outdated dependencies.

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

Clojars Project Docker Hub

Supported files

Usage

Clojure CLI Tool

Run the following command for trial.

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

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

{
 :aliases
 {:outdated {:extra-deps {antq/antq {:mvn/version "RELEASE"}}
             :main-opts ["-m" "antq.core"]}}
 }

Then, run clojure -A:outdated.

Leiningen

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

{
 :user
 {:dependencies [[antq/antq "RELEASE"]]
  :aliases {"outdated" ["run" "-m" "antq.core"]}
  }
 }

Then, run lein outdated.

GitHub Actions

Antq can work with GitHub Actions. See antq’s workflow for concrete example.

Options

--exclude=ARTIFACT_NAME

Skip version cheking for specified artifacts. E.g. --exclude=antq/antq

Note
You must specify groupId/artifactId for Java dependencies.

--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.

{{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 resulta as a JSON format.

edn

Report resulta as a EDN format.

Tips

Maven S3 repos

Antq supports Maven S3 repositories as same as tools.deps. To use Maven S3 repositories, add repositories to your project configration.

Please see tools.deps documents documents for AWS S3 credentials.

Clojure CLI Tool (deps.edn)
{:deps {...}
 :mvn/repos {"my-private-repo" {:url "s3://my-bucket/maven/releases"}}
Leiningen (project.clj)
(defproject foo "0.1.0-SNAPSHOT"
  :dependencies [...]
  :repositories [["my-private-repo" {:url "s3://my-bucket/maven/releases"}]])
Boot (build.boot)
(set-env!
  :repositories #(conj % '["my-private-repo" {:url "s3://my-bucket/maven/releases"}]))

Avoid SLF4J warnings

antq does not load org.slf4j.impl.StaticLoggerBinder by default, so you may get following messages depending on the project.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

To avoid this message, add the following to your dependency.

org.slf4j/slf4j-nop {:mvn/version "RELEASE"}

License

Copyright © 2020 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.

antq's People

Contributors

liquidz avatar pmonks avatar wegi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.