-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle.kts
70 lines (61 loc) · 2.13 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
63
64
65
66
67
68
69
70
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
`java-gradle-plugin`
kotlin("jvm") version "1.7.10"
id("com.github.hierynomus.license") version "0.16.1"
id("com.gradle.plugin-publish") version "1.0.0"
`kotlin-dsl`
`maven-publish`
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
}
group = "net.idlestate"
version = "1.3.0"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.cloud:google-cloud-storage:2.17.1")
implementation(kotlin("stdlib-jdk8"))
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
reporters {
reporter(ReporterType.PLAIN)
reporter(ReporterType.CHECKSTYLE)
}
}
gradlePlugin {
plugins {
create("gcsBuildCache") {
id = "net.idlestate.gradle-gcs-build-cache"
implementationClass = "net.idlestate.gradle.caching.GCSBuildCachePlugin"
displayName = "GCS Build Cache"
description = "A Gradle build cache implementation that uses Google Cloud Storage (GCS) to store the build artifacts. Since this is a settings plugin the build script snippets below won't work. Please consult the documentation at Github."
}
}
}
pluginBundle {
website = "https://github.com/tehlers/gradle-gcs-build-cache"
vcsUrl = "https://github.com/tehlers/gradle-gcs-build-cache.git"
tags = listOf("build-cache", "gcs", "Google Cloud Storage", "cache")
}
tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
publishing.publications.configureEach {
(this as MavenPublication).pom {
scm {
connection.set("scm:git:[email protected]:tehlers/gradle-gcs-build-cache.git")
developerConnection.set("scm:git:[email protected]:tehlers/gradle-gcs-build-cache.git")
url.set("https://github.com/tehlers/gradle-gcs-build-cache/")
}
licenses {
license {
name.set("Apache License 2.0")
url.set("https://spdx.org/licenses/Apache-2.0.html")
}
}
}
}