-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (86 loc) · 2.56 KB
/
build.gradle
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
93
94
95
96
97
98
99
100
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
id 'org.jetbrains.dokka' version "$dokka_version"
id 'maven-publish'
id 'signing'
}
group = 'com.winor30'
version = '0.0.3'
repositories {
mavenCentral()
}
dependencies {
implementation 'io.ktor:ktor-server-core:2.0.3'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
dokkaJavadocPlugin "org.jetbrains.dokka:kotlin-as-java-plugin:$dokka_version"
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.named("javadocJar") {
from tasks.named("dokkaJavadoc")
}
publishing {
publications {
release(MavenPublication) {
groupId = 'com.winor30'
artifactId = 'ktor-plugin-cloud-pubsub'
version = '0.0.3'
from(components["java"])
pom {
name = 'Ktor Plugin Cloud Pub/Sub'
url = 'https://github.com/winor30/ktor-plugin-cloud-pubsub'
description = 'A ktor plugin that Cloud Pub/Sub\'s push trigger messages into a defined type'
licenses {
license {
name = 'MIT'
}
}
developers {
developer {
id = 'winor30'
name = 'Takuma Katsumata'
email = '[email protected]'
}
}
scm {
connection = '[email protected]:winor30/ktor-plugin-cloud-pubsub.git'
developerConnection = '[email protected]:winor30/ktor-plugin-cloud-pubsub.git'
url = 'https://github.com/winor30/ktor-plugin-cloud-pubsub'
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = "${sonatypeUsername}"
password = "${sonatypePassword}"
}
}
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/winor30/ktor-plugin-cloud-pubsub"
credentials {
username = "${githubUsername}"
password = "${githubPassword}"
}
}
}
}
signing {
sign(publishing.publications["release"])
}