-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (67 loc) · 2.21 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.github.hirsivaja'
version = '1.0.3'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.13.2'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
test {
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
}
signing {
def signingKeyId = System.getenv("SIGNING_ID")
def signingKeyData = System.getenv("SIGNING_KEY")
def signingPassword = System.getenv("SIGNING_PASSWORD")
useInMemoryPgpKeys(signingKeyId, signingKeyData, signingPassword)
sign publishing.publications
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = '${project.groupId}:${project.artifactId}'
description = 'The Java IP Codec Suite contains codecs for various Internet Protocols like IPv4 and RPL'
url = 'https://github.com/hirsivaja/JavaIPCodecSuite'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/license/mit/'
}
}
developers {
developer {
id = 'hirsivaja'
name = 'Toni Lappalainen'
email = 'Toni.Lappalainen@landisgyr.com'
}
}
scm {
connection = 'scm:git:https://github.com/hirsivaja/JavaIPCodecSuite.git'
developerConnection = 'scm:git:https://github.com/hirsivaja/JavaIPCodecSuite.git'
url = 'https://github.com/hirsivaja/JavaIPCodecSuite'
}
}
}
}
repositories {
maven {
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
}
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
}
}
}