forked from JakeWharton/mosaic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.36 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
buildscript {
apply from: 'dependencies.gradle'
dependencies {
classpath deps.kotlinGradlePlugin
// We don't use this dependency directly. However, we reference a type from the Kotlin Gradle
// plugin whose classloading causes com.android.build.gradle.api.BaseVariant to also be loaded.
classpath 'com.android.tools.build:gradle:7.2.2'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.7.10'
}
repositories {
mavenCentral()
google()
}
}
apply plugin: 'org.jetbrains.dokka'
dokkaHtmlMultiModule {
}
allprojects {
group = GROUP
version = VERSION_NAME
repositories {
mavenCentral()
google()
}
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(KotlinCompile).configureEach { task ->
task.kotlinOptions {
freeCompilerArgs += [
'-Xjvm-default=all',
'-opt-in=kotlin.RequiresOptIn',
]
}
}
plugins.withId('com.vanniktech.maven.publish') {
mavenPublish {
targets {
installArchives {
def url = file("${rootProject.buildDir}/localMaven").toURI().toString()
releaseRepositoryUrl = url
snapshotRepositoryUrl = url
}
}
}
}
}