-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
63 lines (44 loc) · 1.27 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
plugins {
kotlin("jvm")
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish") version "0.12.0"
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
val awsSdkVersion = project.extra["aws.sdk.version"] as String
dependencies {
compileOnly(kotlin("stdlib-jdk8"))
implementation("org.unbroken-dome.aws-codeartifact-maven-proxy:aws-codeartifact-maven-proxy:0.3.0") {
exclude(group = "org.jetbrains.kotlin")
}
testImplementation(kotlin("stdlib-jdk8"))
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
gradlePlugin {
plugins {
create("codeArtifact") {
id = "org.unbroken-dome.aws.codeartifact"
implementationClass = "org.unbrokendome.gradle.plugins.aws.codeartifact.AwsCodeArtifactPlugin"
}
}
}
pluginBundle {
val githubUrl = project.extra["github.url"] as String
website = githubUrl
vcsUrl = githubUrl
description = "A Gradle plugin for using AWS CodeArtifact repositories"
tags = listOf("codeartifact")
(plugins) {
"codeArtifact" {
displayName = "AWS CodeArtifact plugin"
}
}
}