-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlib-module.gradle
71 lines (60 loc) · 1.72 KB
/
lib-module.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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'
android {
compileSdkVersion Integer.parseInt(project.targetSdk)
defaultConfig {
minSdkVersion Integer.parseInt(project.minSdk)
targetSdkVersion Integer.parseInt(project.targetSdk)
versionName = project.version
consumerProguardFiles 'proguard-rules.pro'
}
testOptions {
unitTests.returnDefaultValues = true
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation('junit:junit:4.13')
testImplementation("com.google.truth:truth:1.0")
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier.set("sources")
}
afterEvaluate {
publishing {
publications {
android(MavenPublication) {
from components.release
artifact(sourceJar)
pom {
description = project.description
url = 'https://github.com/trevjonez/PolyAdapter-Android'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'TrevJonez'
name = 'Trevor Jones'
email = 'trevorjones141@gmail.com'
}
}
scm {
connection = 'scm:git:git@github.com:trevjonez/PolyAdapter-Android.git'
developerConnection = 'scm:git:git@github.com:trevjonez/PolyAdapter-Android.git'
url = 'https://github.com/trevjonez/PolyAdapter-Android'
}
}
}
}
}
}