-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary.gradle
More file actions
81 lines (75 loc) · 2.57 KB
/
library.gradle
File metadata and controls
81 lines (75 loc) · 2.57 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
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'io.github.gradle-nexus.publish-plugin'
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'spring-test-core'
from components.java
pom {
name = 'Bitweb Java Test Library'
description = 'Bitweb Spring Boot Java Test Library'
url = 'https://github.com/BitWeb/java-test-core-lib'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/BitWeb/java-test-core-lib/blob/main/LICENSE'
}
}
developers {
developer {
id = 'Jorich'
name = 'Erich Jagomägis'
email = 'erich@bitweb.ee'
}
developer {
id = 'rammrain'
name = 'Rain Ramm'
email = 'rain@bitweb.ee'
}
developer {
id = 'pr11t'
name = 'Priit Pärkson'
email = 'priit.parkson@bitweb.ee'
}
}
scm {
connection = 'scm:https://github.com/BitWeb/java-test-core-lib.git'
developerConnection = 'scm:git@github.com:BitWeb/java-test-core-lib.git'
url = 'https://github.com/BitWeb/java-test-core-lib'
}
}
}
}
}
nexusPublishing {
repositories {
if (project.hasProperty('mavenCentralUsername') & project.hasProperty('mavenCentralPassword')) {
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username = project.mavenCentralUsername
password = project.mavenCentralPassword
}
}
}
}
signing {
if (project.hasProperty("signingKey") & project.hasProperty("signingPassword")) {
useInMemoryPgpKeys(project.signingKey, project.signingPassword)
}
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
jar {
from sourceSets.main.allSource
}