-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (73 loc) · 2.41 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'dev.keiji.rfc4648'
version '1.1.0'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.9.0"
}
test {
useJUnitPlatform()
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = "${group}"
artifactId = 'rfc4648'
version = "${version}"
from components.java
pom {
name = 'RFC4648 for Java'
description = 'Utilities for encoding and decoding the Base64, Base32, Extended-hex Base32 and Base16 representation of binary data.'
url = 'https://github.com/keiji/rfc4648-java'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'keiji'
name = 'ARIYAMA Keiji'
email = '[email protected]'
}
}
scm {
connection = 'https://github.com/keiji/rfc4648-java.git'
developerConnection = 'https://github.com/keiji/rfc4648-java.git'
url = 'https://github.com/keiji/rfc4648-java'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('-SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
def sonatypeUsername = project.getProperties().get('sonatypeUsername') ?: ""
def sonatypePassword = project.getProperties().get('sonatypePassword') ?: ""
credentials {
username = sonatypeUsername
password = sonatypePassword
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}