This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
92 lines (76 loc) · 2.33 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
80
81
82
83
84
85
86
87
88
89
90
91
92
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`maven-publish`
kotlin("jvm") version "1.2.71"
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "0.10.1"
}
group = "com.kreait.gradle"
version = "0.1.0.RELEASE"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation(kotlin("gradle-plugin"))
implementation(kotlin("gradle-plugin-api"))
implementation(group = "com.amazonaws", name = "aws-java-sdk-core", version = "1.11.603")
}
gradlePlugin {
plugins {
register("awsCredentialsPlugin") {
id = "com.kreait.gradle.aws"
implementationClass = "com.kreait.gradle.aws.AwsCredentialsProviderPlugin"
}
}
}
pluginBundle {
website = "https://github.com/kreait/aws-credentials-support-plugin"
vcsUrl = "https://github.com/kreait/aws-credentials-support-plugin.git"
description = "Helps to develop locally and managing different aws credential sets"
tags = listOf("maven", "aws", "s3", "repository", "credentials")
(plugins) {
"awsCredentialsPlugin" {
id = "com.kreait.gradle.aws"
displayName = "AWS Credentials Support"
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
val sourcesJar by tasks.creating(Jar::class) {
dependsOn("classes")
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}
publishing {
repositories {
gradlePluginPortal()
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(sourcesJar)
groupId = rootProject.group as? String
artifactId = rootProject.name
version = rootProject.version as? String
pom {
licenses {
license {
name.set("MIT License")
url.set("http://www.opensource.org/licenses/mit-license.php")
}
}
scm {
url.set("https://github.com/kreait/aws-credentials-support-plugin")
}
}
}
}
}