-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (86 loc) · 2.66 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka-android'
apply plugin: 'maven'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
group = 'com.github.EpimetheusAndroid'
buildscript {
ext.kotlin_version = '1.3.0'
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/kotlin" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0-alpha07'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
dokka {
outputFormat = 'gfm'
outputDirectory = "docs"
includes = ['src/main/java/tk/hacker1024/libepimetheus/package-info.md']
includeNonPublic = false
reportUndocumented = false
}
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs = ['-XXLanguage:+InlineClasses']
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.media:media:1.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
}
repositories {
google()
jcenter()
maven { url 'http://dl.bintray.com/kotlin/kotlin' }
mavenCentral()
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from 'src/main/java'
}
artifacts {
archives sourcesJar
}
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007'
url 'https://www.gnu.org/licenses/gpl-3.0.en.html'
distribution 'repo'
}
}
}
}
}