-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
62 lines (51 loc) · 1.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.kotlin.jvm") version "1.4.10"
`maven-publish`
}
group = "io.github.dfrommi"
publishing {
publications {
create<MavenPublication>("lib") {
from(components["java"])
}
}
}
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
}
dependencies {
api("com.github.HAP-Java:hap-java:45d9403")
api("io.projectreactor:reactor-core:[3.0,)")
api("com.fasterxml.jackson.module:jackson-module-kotlin:[2.0,)")
}
project(":generator") {
dependencies {
implementation("com.squareup:kotlinpoet:1.7.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.+")
implementation("com.pinterest:ktlint:0.39.0")
}
task<JavaExec>("generate") {
main = "io.github.dfrommi.rehaktor.generator.HomekitGeneratorKt"
args(file("../src/main/kotlin").absolutePath)
classpath(sourceSets.main.get().runtimeClasspath)
}
}