-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
46 lines (41 loc) · 1.08 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
}
def MAVEN_GROUP_ID = "com.mai.aar-packer"
def MAVEN_ARTIFACT_ID = "aar-packer"
def MAVEN_VERSION = "1.0"
def MAVEN_NAME = "repo"
gradlePlugin {
plugins {
standaloneGradlePlugins {
id = MAVEN_GROUP_ID + "." + MAVEN_ARTIFACT_ID
implementationClass = 'com.mai.aarpacker.AarPacker'
}
automatedPublishing = false
}
}
dependencies {
implementation 'com.android.tools.build:gradle:7.2.2'
implementation 'com.android.tools:sdk-common:30.2.2'
implementation 'com.android.tools:common:30.2.2'
implementation 'com.android.tools.layoutlib:layoutlib-api:30.2.2'
implementation gradleApi()
implementation localGroovy()
}
publishing {
publications {
maven(MavenPublication) {
groupId = MAVEN_GROUP_ID
artifactId = MAVEN_ARTIFACT_ID
version = MAVEN_VERSION
from components.java
}
}
repositories {
maven {
url = layout.buildDirectory.dir(MAVEN_NAME)
}
}
}