-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (94 loc) · 2.97 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
100
101
102
103
104
105
106
107
108
109
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.0-alpha12")
classpath "org.jetbrains.kotlin:kotlin-android-extensions:1.4.30"
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30")
}
}
allprojects {
repositories {
google()
jcenter()
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 2, 'seconds'
}
}
ext {
compileSdkVersion = 30
minSdkVersion = 26
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
android {
compileSdkVersion rootProject.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.compileSdkVersion
versionCode 1
versionName "1.0"
consumerProguardFiles 'proguard.cfg'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
buildFeatures {
compose = true
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
kotlinOptions { jvmTarget = "11" }
packagingOptions {
exclude("META-INF/AL2.0")
exclude("META-INF/LGPL2.1")
}
}
dependencies {
implementation("androidx.core:core-ktx:1.3.2")
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("com.google.android.material:material:1.3.0")
implementation("androidx.compose.compiler:compiler:1.0.0-beta05")
implementation("androidx.compose.runtime:runtime:1.0.0-beta05")
implementation("androidx.compose.foundation:foundation:1.0.0-beta05")
implementation("androidx.compose.material:material:1.0.0-beta05")
implementation("androidx.compose.ui:ui:1.0.0-beta05")
implementation("androidx.compose.ui:ui-tooling:1.0.0-beta05")
implementation("androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha05")
implementation("androidx.activity:activity-compose:1.3.0-alpha07")
implementation("com.google.accompanist:accompanist-insets:0.8.1")
implementation("com.squareup.retrofit2:retrofit:2.3.0")
implementation("com.squareup.retrofit2:converter-gson:2.3.0")
implementation("joda-time:joda-time:2.9.9")
testImplementation("junit:junit:4.+")
androidTestImplementation("androidx.test.ext:junit:1.1.2")
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.primer'
artifactId = 'final'
version = '1.0'
}
}
}
}