-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
95 lines (81 loc) · 2.84 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
93
94
plugins {
id("org.jetbrains.kotlin.multiplatform") version "1.4.32" apply false
id("org.jetbrains.kotlin.jvm") version "1.4.32" apply false
id("org.jetbrains.kotlin.plugin.serialization") version "1.4.32" apply false
id("org.jetbrains.dokka") version "1.4.32" apply false
`maven-publish`
signing
}
allprojects {
group = "com.narbase.narpc"
version = "0.1.12"
}
/* task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
publishing {
repositories {
maven {
def releaseRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
url = isReleaseVersion ? releaseRepo : snapshotRepo
credentials {
username = project.findProperty("SONATYPE_USERNAME")
password = project.findProperty("NEXUS_PASSWORD")
}
}
}
publications {
mavenJava(MavenPublication) {
artifact sourcesJar
artifact javadocJar
pom {
from components.java
name = 'NaRPC'
description = 'Remote Procedure Call in Kotlin'
url = 'https://github.com/Narbase/NaRPC'
scm {
connection = 'scm:git:git://github.com/Narbase/NaRPC.git'
developerConnection = 'scm:git:ssh://[email protected]/Narbase/NaRPC.git'
url = 'https://github.com/Narbase/NaRPC/'
}
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
distribution = 'repo'
}
}
developers {
developer {
name = "Ayman Hassan"
organization = "Narbase Technologies"
email = "[email protected]"
}
developer {
name = "Islam Abdalla"
organization = "Narbase Technologies"
email = "[email protected]"
}
}
}
}
}
}
// signing {
// sign publishing.publications.mavenJava
// }
signing {
sign configurations.archives
}
*/