Warning on new versions available even when using Kotlin-DSL plugin.

Overview

Version Checker Gradle Lint

Warning on new versions available even when using Kotlin-DSL plugin.

This detector checks with a central repository to see if there are newer versions available for the dependencies used by your project. This is similar to the GradleDependency check, which checks for newer versions available. This works with any Google, MavenCentral, JCenter, or Jitpack dependency, and connects to the remote library if the reference does not exist in the local cache. The cache lifetime default is 60 minutes but can be modified in versionlint.properties into buildSrc module.

Install

Run script install.sh:

bash install.sh

Or copy manually version-checker.jar to $HOME/.android/lint/

Configuration: buildSrc/versionlint.properties:

Default values

versionlint.cache.time.minutes=60
versionlint.prerelease.enable=false
versionlint.versions.file=Versions
versionlint.dependencies.suffix=Libs
  • Cache

versionlint.cache.time.minutes=60

  • Versions file name:

versionlint.versions.file=Versions

  • Suffix for libraries declaration files:

versionlint.dependencies.suffix=Libs

You can create files with this suffix.

Examples: Libs, AndroidLibs, TestLibs, etc.

  • Enables find release candidates (alpha, beta, rc):

versionlint.prerelease.enable=false

Create your version file

object Versions {

    val kotlinVersion = "1.3.70"
   
    val junit4Version = "4.12"
}

Create libraries files

object Libs {

    val kotlin = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlinVersion}"
}
object TestLibs {

    val junit4 = "junit:junit:${Versions.junit4Version}"
}
object OtherLibs {

    val myLib = "mylib:mylib:${Versions.myLib}"
}

Enable/Disable lint with lintOptions (default: enabled)

lintOptions {
    enable "VersionCheckerGradleLint"
}

License

MIT License

Copyright (c) 2020 PicPay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
You might also like...
PyCharm plugin for ruff.  This plugin provides reformat code using ruff.
PyCharm plugin for ruff. This plugin provides reformat code using ruff.

Ruff PyCharm Plugin A JetBrains PyCharm plugin for ruff. Help See documentation for more details. Sponsors ScreenShots Features Run ruff --fix as an a

 Nice and simple DSL for Espresso in Kotlin
Nice and simple DSL for Espresso in Kotlin

Kakao Nice and simple DSL for Espresso in Kotlin Introduction At Agoda, we have more than 1000 automated tests to ensure our application's quality and

A lightweight, feature-rich wrapper for the Telegram Bot API, providing a handy Kotlin DSL to quickly build your bot.

Kotlin Telegram Bot Kotlin based wrapper over Telegram API. Current version of the Telegram Api: 6.0 Principles Annotations Magic. The basic interacti

This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc...

Android L preview example Description This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shad

New version of my Android app that shows you popular movies using themoviedb.org API.
New version of my Android app that shows you popular movies using themoviedb.org API.

New version of my Android app that shows you popular movies using themoviedb.org API. Using Modern Android Develpment skills like Kotlin, Room, Retrofit, Hilt, coroutines, Flow and Jetpack Compose.

A simple app to showcase Androids Material Design and some of the cool new cool stuff in Android Lollipop. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar
A simple app to showcase Androids Material Design and some of the cool new cool stuff in Android Lollipop. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar

#Android-LollipopShowcase This is a simple showcase to show off Android's all new Material Design and some other cool new stuff which is (new) in Andr

How to integrate classic App Shortcuts with Google Assistant through the new Capabilities API
How to integrate classic App Shortcuts with Google Assistant through the new Capabilities API

Assistant Shortcuts (App Actions) En este ejemplo, revisaremos el uso de los clásicos Shortcuts de Android repotenciados con Google Assistant, haciend

android-trinity is tiny proactive framework with much of the scaffolding code  required to start a new Android Application.
android-trinity is tiny proactive framework with much of the scaffolding code required to start a new Android Application.

android-trinity This is tiny framework with much of the scaffolding code (with some nice utilities and prepared source code) required to start a new A

A recipe app where user can search new recipes from an API
A recipe app where user can search new recipes from an API

Recipe -app This is a recipe app where user can search new recipes from an API, save them, create their own recipes and edit saved recipes. The app is

Comments
  • Android studio not highlighting dependencies

    Android studio not highlighting dependencies

    I executed the shell script, and verified the versionlint file was in buildSrc. but how do I get android studio to highlight older dependencies? What step am I missing? Does the lint version and dependencies have to live in different files? Or can they be in the same file as different singleton objects

    Android Studio 4.1 Kotlin Gradle DSL

    opened by aoben10 2
  • Dependencies structure

    Dependencies structure

    Hello,

    Thanks for this great version checker!

    I was wondering if it can process the structure like below? image

    So I can have only one file say Dependencies which contains different objects inside it instead of having several different files.

    Cheers

    opened by williamyyu 1
Releases(0.1.4)
Owner
null
A Simple Privacy Browser - Some ScreenShots(Actual App Even Looks Better 😃 ):

Lets_Browse A Simple Privacy Browser. Some ScreenShots(Actual App Even Looks Better ?? ): Features ?? : Bookmark Webpage Save Webpage as Pdf(Once Page

Harsh H. Rajpurohit 13 Dec 8, 2022
🌄 Photo editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and PhotoEditor (Android)

React Native Photo Editor (RNPE) ?? Image editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and Ph

Baron Ha. 242 Dec 28, 2022
An android application where you can manage and install all versions of the spotify app.

An android application where you can manage and install all versions of the spotify app.

xManager (Spotify) 3.7k Dec 30, 2022
React Native Stone SDK Implementation (Support for both Mobile and POS versions)

react-native-stone-pos Stone Android POS Native Module Installation Stone has a private packageCloud repository, so we need to have your token before

8Sistemas 9 Dec 10, 2022
android-delicious Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play.

Delicious Android Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play. Fea

Alexander Blom 137 Nov 20, 2022
An app that is a one-stop destination for all the CS enthusiasts, providing resources like Information scrapping techniques, best YT channels, courses available free-of-cost, etc. & knowledge about every domain and field that exists on the Internet related to Computer Science along with News, Jobs, and Internships opportunities in these domains along with valuable tips and hacks from mentors for a particular domain.

An app that is a one-stop destination for all the CS enthusiasts, providing resources like Information scrapping techniques, best YT channels, courses available free-of-cost, etc. & knowledge about every domain and field that exists on the Internet related to Computer Science along with News, Jobs, and Internships opportunities in these domains along with valuable tips and hacks from mentors for a particular domain.

CSwala 48 Nov 26, 2022
Android app for monitoring web services. Notifies you of any HTTP or Onion destination not being available.

Webmon Monitor web services and get notified, if a service becomes unavailable. EARLY BIRD DOWNLOAD App Features Simple UI. No login required. Get not

null 36 Dec 29, 2022
KKM (Katalog Kos Moklet) mobile app to see any available kos (boarding house) at moklet

KKM (Katalog Kos Moklet) mobile app to see any available "kos" (boarding house) at moklet

Raviolini 1 Jun 1, 2022
IND appointment checker helps you to find some available slots in IND website.

IND Appointment Checker What is IND? The Immigration and Naturalisation Service (IND) assesses all residence permit applications from the people who w

Ufuk Halis 3 Oct 18, 2022
WatchFaceAlphaKotlin - Demonstrates watch faces using the new androidX alpha libraries (Kotlin)

Alpha WatchFace Sample (Kotlin) Demonstrates watch faces using the new androidX

Bastiaan Quast 0 Jan 4, 2022