-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (81 loc) · 1.76 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
86
87
88
89
90
91
92
93
94
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
repositories {
mavenCentral()
}
group = 'org.jodd'
version = '7.2.0'
rootProject.description = 'Julian Day'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.+'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.hamcrest:hamcrest:2.2'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named('jar') {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Debug-Info': 'on'
)
}
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'julian-day'
from components.java
pom {
name = 'Julian Day'
description = 'Julian Day'
url = 'https://github.com/igr/julian-day'
licenses {
license {
name = 'BSD-2-Clause'
url = 'https://github.com/igr/julian-day/blob/master/LICENSE'
}
}
developers {
developer {
id = 'igr'
name = 'Igor Spasić'
email = 'oblac@igo.rs'
timezone = '+1'
}
}
scm {
url = 'https://github.com/igr/julian-day.git'
connection = 'scm:git:git://github.com/igr/julian-day.git'
developerConnection = 'scm:git:ssh://git@github.com/igr/julian-day.git'
}
}
}
}
}
nexusPublishing {
repositories {
sonatype()
}
}
// must be after publishing
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}