-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
81 lines (64 loc) · 2.01 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.8.20"
id "java"
id "maven-publish"
id "signing"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.20'
testImplementation 'io.kotest:kotest-assertions-core:5.4.2'
}
//http://stackoverflow.com/questions/34377367/why-is-gradle-install-replacing-my-version-with-unspecified
group 'com.github.holgerbrandl'
version '1.1'
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'kutils'
description = 'A collection of kotlin utilities'
url = 'https://github.com/holgerbrandl/kutils'
licenses {
license {
name = 'BSD-2'
url = 'https://github.com/holgerbrandl/kutils/blob/master/LICENSE.txt'
}
}
developers {
developer {
id = 'holgerbrandl'
name = 'Holger Brandl'
email = 'holgerbrandl@gmail.com'
}
}
scm {
connection = 'scm:git:github.com/holgerbrandl/kutils.git'
developerConnection = 'scm:git:ssh://github.com/holgerbrandl/kutils.git'
url = 'https://github.com/holgerbrandl/kutils'
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
snapshotRepositoryUrl = uri(project.findProperty("sonatypeStagingProfileId") ?: 'not_defined')
username = project.findProperty("ossrhUsername") ?: 'not_defined'
password = project.findProperty("ossrhPassword") ?: 'not_defined'
}
}
}
signing {
sign publishing.publications.mavenJava
}