1+ apply plugin : ' com.android.library'
2+ apply plugin : ' kotlin-android'
3+ apply plugin : ' org.jetbrains.dokka'
4+ apply from : ' ../dependencies.gradle'
5+ apply from : ' ../publish.gradle'
6+
7+ android {
8+ compileSdkVersion versions. compileSdk
9+ defaultConfig {
10+ minSdkVersion versions. minSdkLib
11+ targetSdkVersion versions. compileSdk
12+ versionCode versions. versionCode
13+ versionName versions. versionName
14+ testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
15+ }
16+ testOptions {
17+ unitTests {
18+ includeAndroidResources = true
19+ }
20+ }
21+ }
22+
23+ publish {
24+ artifactId = ' whatif-android'
25+ userOrg = metadata. userOrg
26+ groupId = metadata. groupId
27+ publishVersion = metadata. publishVersion
28+ desc = metadata. desc
29+ website = metadata. website
30+ issueTracker = metadata. issueTracker
31+ repository = metadata. repository
32+ licences = metadata. licences
33+ }
34+
35+
36+ dependencies {
37+ api project(" :whatif" )
38+
39+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions . kotlin "
40+ implementation " androidx.appcompat:appcompat:$versions . androidxAppcompat "
41+
42+ testImplementation " junit:junit:$versions . junit "
43+ testImplementation " org.robolectric:robolectric:$versions . robolectric "
44+ }
45+
46+ dokka {
47+ outputFormat = ' html'
48+ outputDirectory = " $buildDir /javadoc"
49+ configuration {
50+ moduleName = ' whatif'
51+ }
52+ }
53+
54+ tasks. withType(Javadoc ) {
55+ excludes = [' **/*.kt' ]
56+ options. addBooleanOption(' Xdoclint:none' , true )
57+ }
58+
59+ apply from : ' ../spotless.gradle'
0 commit comments