Skip to content

Commit e2d740e

Browse files
committed
Updated Android docs
1 parent 42c61f7 commit e2d740e

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

android/_index.en.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,33 @@ Builds are run with Java 8 by default but can be configured using a jitpack.yml
1414

1515
## Gradle
1616

17-
To enable building on JitPack you need to configure the `maven-publish` Gradle plugin to publish your library as explained in [the Android documentation](https://developer.android.com/studio/build/maven-publish-plugin).
17+
To build and publish your library on JitPack you need the `maven-publish` plugin as explained in [the Android documentation](https://developer.android.com/studio/build/maven-publish-plugin).
18+
19+
1. Add the plugin:
20+
21+
```gradle
22+
plugins {
23+
id 'maven-publish'
24+
}
25+
```
26+
27+
2. Configure publishing
28+
29+
```gradle
30+
publishing {
31+
publications {
32+
release(MavenPublication) {
33+
groupId = 'io.jitpack'
34+
artifactId = 'library'
35+
version = '1.0'
36+
37+
afterEvaluate {
38+
from components.release
39+
}
40+
}
41+
}
42+
}
43+
```
1844

1945
## Checks
2046

0 commit comments

Comments
 (0)