-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
77 lines (67 loc) · 2.49 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
plugins {
kotlin("jvm") version "1.5.20" apply false
kotlin("plugin.serialization") version "1.5.20" apply false
`java-library`
`maven-publish`
}
allprojects {
group = "com.johnturkson.aws"
version = "0.0.14"
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
pom {
name.set(project.name)
description.set("Kotlin-first utilities and tools for interacting with various AWS services without requiring the AWS SDK.")
url.set("https://www.github.com/JohnTurkson/aws-tools")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("JohnTurkson")
name.set("John Turkson")
email.set("[email protected]")
url.set("https://www.johnturkson.com")
}
}
scm {
connection.set("scm:git:git://github.com/JohnTurkson/aws-tools.git")
developerConnection.set("scm:git:ssh://git.jetbrains.space/johnturkson/aws/aws-tools.git")
url.set("https://github.com/JohnTurkson/aws-tools")
}
}
afterEvaluate {
from(components["java"])
}
}
}
repositories {
maven {
name = "GitLabPackages"
url = uri("https://gitlab.com/api/v4/projects/${System.getenv("GITLAB_PROJECT_ID")}/packages/maven")
authentication {
create<HttpHeaderAuthentication>("header")
}
credentials(HttpHeaderCredentials::class) {
name = "Deploy-Token"
value = System.getenv("GITLAB_PUBLISHING_TOKEN")
}
}
}
}
}