-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
68 lines (57 loc) · 1.96 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
68 lines (57 loc) · 1.96 KB
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
63
64
65
66
67
68
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
buildsrc.convention.subproject
buildsrc.convention.`kotlin-jvm`
kotlin("kapt")
`maven-publish`
}
description = "Kotlin Compiler Plugin for Invariants"
dependencies {
implementation(kotlin("compiler-embeddable"))
implementation(projects.invariant)
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.5.0")
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testImplementation(projects.invariant)
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
compileOnly("com.google.auto.service:auto-service:1.0.1")
kapt("com.google.auto.service:auto-service:1.0.1")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xcontext-receivers"
)
}
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("default") {
artifactId = "invariants-compiler-plugin"
from(components["java"])
pom {
name.set("invariants-compiler-plugin")
description.set("Compiler plugin for Invariants")
url.set("https://example.com")
licenses {
license {
name.set("Apache License 2.0")
}
}
scm {
url.set("https://github.com/Daniel-Pfeffer/Annotations-Source-Code-Modification")
connection.set("scm:git:git://github.com/Daniel-Pfeffer/Annotations-Source-Code-Modification")
}
developers {
developer {
name.set("Daniel Pfeffer")
url.set("https://github.com/Daniel-Pfeffer")
}
}
}
}
}
}