-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
84 lines (76 loc) · 2.33 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
plugins {
id("org.jetbrains.kotlin.jvm") version "1.6.0"
id("java-library")
id("maven-publish")
id("signing")
}
var rootArtifactId = "sqids-kotlin"
var projectUrl = "https://sqids.org/kotlin"
group = "org.sqids"
version = "0.1.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
}
tasks.named("test", Test) {
useJUnitPlatform()
maxHeapSize = "1G"
testLogging {
showStandardStreams = true
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = group
artifactId = rootArtifactId
version = version
from components.java
pom {
name = "Sqids"
description = "Generate short YouTube-looking IDs from numbers."
url = projectUrl
properties = [
"parent.groupId": "org.sonatype.oss",
"parent.artifactId": "oss-parent",
"parent.version": "7"
]
licenses {
license {
name = "MIT License"
url = "https://github.com/sqids/sqids-kotlin/blob/main/LICENSE"
}
}
developers {
developer {
id = "kevinxmorales"
name = "Kevin Morales"
email = "kevinm2052@gmail.com"
}
}
scm {
connection = "scm:git:https://github.com/sqids/sqids-kotlin.git"
developerConnection = "scm:git:ssh://git@github.com:sqids/sqids-kotlin.git"
url = projectUrl
}
}
}
}
repositories {
maven {
url = version.endsWith('SNAPSHOT') ?
"https://s01.oss.sonatype.org/content/repositories/snapshots/" :
"https://s01.oss.sonatype.org/content/repositories/releases/"
credentials {
username "${System.getenv("SONATYPE_USERNAME")}"
password "${System.getenv("SONATYPE_PASSWORD")}"
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
}