-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
46 lines (40 loc) · 1.07 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
import org.gradle.api.Project.DEFAULT_VERSION
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
}
plugins {
`java-library`
`java-gradle-plugin`
kotlin("jvm") version embeddedKotlinVersion
kotlin("kapt") version embeddedKotlinVersion
id("io.johnsonlee.sonatype-publish-plugin") version "1.5.6"
}
group = "io.johnsonlee.buildprops"
version = project.findProperty("version")?.takeIf { it != DEFAULT_VERSION } ?: "1.0.0-SNAPSHOT"
description = "Generate Build.java for module"
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
}
dependencies {
kapt("com.google.auto.service:auto-service:1.0")
implementation(gradleApi())
implementation(kotlin("bom"))
implementation(kotlin("stdlib"))
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
}
gradlePlugin {
plugins {
create("buildPropsPlugin") {
id = "io.johnsonlee.buildprops"
implementationClass = "io.johnsonlee.buildprops.BuildPropsPlugin"
}
}
}