-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
104 lines (93 loc) · 3.06 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
95
96
97
98
99
100
101
102
103
104
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'com.nulab-inc:backlog4j:2.5.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'ch.qos.logback:logback-classic:1.4.0'
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.13.3'
testImplementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.3'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.13.3'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.10.0'
}
group = 'com.nulab-inc'
version = '1.0.0'
description = 'backlog4j-httpclient'
java.sourceCompatibility = JavaVersion.VERSION_11
java {
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
withSourcesJar()
withJavadocJar()
}
test {
useJUnitPlatform()
}
javadoc {
options.locale = 'en_US'
options.encoding = 'UTF-8'
options.addStringOption('Xdoclint:none', '-quiet')
title = 'Backlog4j ' + version + ' API'
}
jar {
manifest {
attributes('Implementation-Title': archivesBaseName,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name': archiveBaseName)
}
}
configurations {
deployerJars
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Backlog4j Http Client'
description = 'It enables using Backlog4J with Java11 or later by providing an implementation of com.nulabinc.backlog4j.http.BacklogHttpClient using java.net.http.HttpClient'
url = 'https://github.com/nulab/backlog4j-httpclient'
scm {
connection = 'https://github.com/nulab/backlog4j-httpclient.git'
developerConnection = 'https://github.com/nulab/backlog4j-httpclient.git'
url = 'https://github.com/nulab/backlog4j-httpclient.git'
}
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'baba'
name = 'Yasuyuki Baba'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
credentials {
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
}
if (project.version.endsWith("-SNAPSHOT")) {
url = "https://oss.sonatype.org/content/repositories/snapshots"
} else {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
}
}
}
}
signing {
sign publishing.publications.mavenJava
}