Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Commit 6df925b

Browse files
committed
update gradle
1 parent eee0a15 commit 6df925b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

VerifyCodeEditText/build.gradle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,41 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

67
android {
78
compileSdkVersion 30
89
buildToolsVersion "30.0.3"
910

11+
// Because the components are created only during the afterEvaluate phase, you must
12+
// configure your publications using the afterEvaluate() lifecycle method.
13+
afterEvaluate {
14+
publishing {
15+
publications {
16+
// Creates a Maven publication called "release".
17+
release(MavenPublication) {
18+
// Applies the component for the release build variant.
19+
from components.release
20+
21+
// You can then customize attributes of the publication as shown below.
22+
groupId = 'com.jakode.verifycodeedittext'
23+
artifactId = 'final'
24+
version = '1.0'
25+
}
26+
// Creates a Maven publication called “debug”.
27+
debug(MavenPublication) {
28+
// Applies the component for the debug build variant.
29+
from components.debug
30+
31+
groupId = 'com.jakode.verifycodeedittext'
32+
artifactId = 'final-debug'
33+
version = '1.0'
34+
}
35+
}
36+
}
37+
}
38+
1039
defaultConfig {
1140
minSdkVersion 17
1241
targetSdkVersion 30

0 commit comments

Comments
 (0)