-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (48 loc) · 1.72 KB
/
Copy pathbuild.gradle
File metadata and controls
55 lines (48 loc) · 1.72 KB
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
47
48
49
50
51
52
53
54
55
buildscript {
ext {
androidProjectCommon = "${rootDir}/android_project_common.gradle"
androidModuleCommon = "${rootDir}/android_module_common.gradle"
}
apply from: "${androidProjectCommon}"
dependencies {
classpath 'com.android.tools.build:gradle:9.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
plugins {
id("com.diffplug.spotless") version "8.6.0"
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
ext {
versions.ndkVersion = "29.0.14206865"
publishEnabled = true
mavenMeta = [
'projectUrl': 'https://github.com/yongce/AndroidLib',
'projectScmConnection': 'https://github.com/yongce/AndroidLib.git',
'projectScmDevConnection': 'ssh://git@github.com/yongce/AndroidLib.git',
'projectInceptionYear': '2013',
'groupId': 'io.github.yongce',
'version': '2.0.2',
'developerId': 'yongce',
'developerName': 'Yongce Tu',
'developerEmail': 'yongce.tu@gmail.com',
]
// Trick: other projects can redefine the mapping to include the modules directly
deps.ycdev = [
'androidBase': project(':baseLib'),
'androidUi' : project(':uiLib'),
'androidJni' : project(':jniLib'),
'androidTest': project(':testLib'),
]
}
spotless {
kotlin {
target "**/*.kt"
ktlint(versions.ktlint).editorConfigOverride([
'ktlint_code_style' : 'android_studio',
'ktlint_standard_max-line-length': 'disabled',
'ktlint_standard_property-naming': 'disabled',
])
}
}
apply from: "${rootDir}/publish-root.gradle"