forked from Islandora-Devops/isle-gradle-docker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (71 loc) · 2.46 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
71
72
73
74
75
76
77
78
79
version = "0.11"
group = "com.github.nigelgbanks"
plugins {
id("com.gradle.plugin-publish") version "0.16.0"
`java-gradle-plugin`
`kotlin-dsl`
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.4.31"
`maven-publish`
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.bmuschko:gradle-docker-plugin:7.1.0")
implementation("org.apache.commons:commons-compress:1.21")
implementation("org.apache.commons:commons-io:1.3.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.1")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.1")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
gradlePlugin {
plugins {
create("IsleDocker") {
id = "com.github.nigelgbanks.IsleDocker"
implementationClass = "IsleDocker"
}
}
}
// The configuration example below shows the minimum required properties
// configured to publish your plugin to the plugin portal
pluginBundle {
website = "https://github.com/Islandora-Devops/isle-gradle-docker-plugin"
vcsUrl = "https://github.com/Islandora-Devops/isle-gradle-docker-plugin"
description = "Gradle plugin that supports building interdependent Docker images with Buildkit support for the Isle project."
tags = listOf("isle", "islandora", "docker")
(plugins) {
"IsleDocker" {
displayName = "Docker build plugin for the Islandora Isle project"
}
}
mavenCoordinates {
groupId = "com.github.nigelgbanks"
artifactId = "isle-docker-plugins"
version = "0.11"
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/${System.getenv("GITHUB_REPOSITORY")}")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}