-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
94 lines (83 loc) · 2.75 KB
/
build.gradle
File metadata and controls
94 lines (83 loc) · 2.75 KB
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 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'io.github.hirsivaja'
version = '1.2.3'
repositories {
mavenCentral()
}
sourceSets {
testi {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
testiImplementation.extendsFrom testImplementation
}
tasks.register('testIntegration', Test) {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.testi.output.classesDirs
classpath = sourceSets.testi.runtimeClasspath
}
dependencies {
testImplementation 'junit:junit:4.13.2'
}
java {
sourceCompatibility = JavaVersion.VERSION_25
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("CENTRAL_PORTAL_USERNAME")
password = System.getenv("CENTRAL_PORTAL_PASSWORD")
}
name = 'ossrh-staging-api-for-central-portal'
url = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
}
}
}