-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (37 loc) · 1.1 KB
/
build.gradle.kts
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
plugins {
id("org.jetbrains.kotlin.jvm") version "1.8.20"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.dokka") version "1.7.20"
`java-library`
id("com.diffplug.spotless") version "6.15.0"
}
spotless {
kotlin {
target("**/*.kt")
targetExclude("**/build/**")
ktfmt("0.42").googleStyle()
}
kotlinGradle {
target("**/*.gradle.kts")
targetExclude("**/build/**")
ktfmt("0.42").googleStyle()
}
}
ext {
set("PUBLISH_GROUP_ID", "dev.sasikanth")
set("PUBLISH_ARTIFACT_ID", "android-resource-poet")
set("PUBLISH_VERSION", "1.1.0")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("com.google.truth:truth:1.1.3")
}
apply(plugin = "org.jetbrains.dokka")
apply(from = "${rootDir}/scripts/publish-module.gradle")