This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
forked from opencollab/jlatexmath
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
71 lines (60 loc) · 1.63 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
}
}
allprojects {
repositories {
jcenter()
google()
}
version = VERSION_NAME
group = GROUP
}
//Solution by the first link
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
enabled = false
// options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
if (hasProperty('local')) {
if (!hasProperty('LOCAL_MAVEN_URL')) {
throw new RuntimeException('Cannot publish to local maven as no such property exists: LOCAL_MAVEN_URL')
}
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
}
wrapper {
gradleVersion '5.5.1'
distributionType 'all'
}
ext {
config = [
'min-sdk' : 16,
'target-sdk' : 28,
'build-tools' : '28.0.3',
'push-aar-gradle': 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
]
deps = [
'x-annotations': 'androidx.annotation:annotation:1.1.0',
'debug' : 'io.noties:debug:5.1.0'
]
registerArtifact = this.®isterArtifact
}
def registerArtifact(project) {
if (hasProperty('release')) {
project.apply from: config['push-aar-gradle']
}
project.afterEvaluate {
// disable generation of BuildConfig files
project.generateDebugBuildConfig.enabled = false
project.generateReleaseBuildConfig.enabled = false
}
}