-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66f5611
commit 6c1d47b
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# NAPT | ||
|
||
[![](https://jitpack.io/v/sergei-lapin/napt.svg)](https://jitpack.io/#sergei-lapin/napt) | ||
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
## What is it? | ||
|
||
An alternative to KAPT that skips stub generation and hence runs up to 50% faster | ||
|
||
## Usage | ||
|
||
*JDK 9+ is required to run this particular set of tools* | ||
|
||
## Sample | ||
|
||
You could see an example of usage in [sample](https://github.com/sergei-lapin/napt/blob/main/sample/build.gradle) | ||
|
||
## Download | ||
- javac plugin is distributed through JitPack | ||
- Gradle plugin is distributed through Gradle Plugin Portal | ||
|
||
#### Add in the root build.gradle | ||
|
||
``` Gradle | ||
buildscript { | ||
repositories { | ||
gradlePluginPortal() | ||
} | ||
} | ||
subprojects { | ||
repositories { | ||
maven { url("https://jitpack.io") } | ||
} | ||
} | ||
``` | ||
|
||
#### Add library module: | ||
|
||
``` Gradle | ||
plugins { | ||
id("com.sergei-lapin.napt") version "{latest-version}" | ||
} | ||
annotationProcessor("com.github.sergei-lapin:napt:{latest-version}") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
lib.group=com.sergei-lapin.napt | ||
lib.version=1.0 | ||
lib.version=1.3 |