forked from ZacSweers/redacted-compiler-plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
60 lines (52 loc) · 1.62 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
dependencies {
// Include our included build
classpath("dev.zacsweers.redacted:redacted-compiler-plugin-gradle")
}
}
plugins {
id("org.jetbrains.kotlin.jvm") version "1.5.31" apply false
id("org.jetbrains.dokka") version "1.5.30" apply false
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.8.0-RC" apply false
id("com.google.devtools.ksp") version "1.5.31-1.0.0" apply false
id("com.vanniktech.maven.publish") version "0.17.0" apply false
}
apply plugin: "binary-compatibility-validator"
apiValidation {
ignoredProjects += ["sample"]
}
allprojects {
repositories {
google()
mavenCentral()
}
pluginManager.withPlugin("java") {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType(JavaCompile).configureEach {
options.release.set(8)
}
}
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
project.tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
if (project.name != "sample") {
jvmTarget = "1.8"
}
freeCompilerArgs += ['-progressive', '-Xjvm-default=all']
}
}
}
pluginManager.withPlugin("org.jetbrains.dokka") {
tasks.named("dokkaHtml") {
outputDirectory.set(rootProject.file("docs/0.x"))
dokkaSourceSets.configureEach {
skipDeprecated.set(true)
}
}
}
}