-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
118 lines (103 loc) · 3.2 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
group = 'com.nulab-inc'
archivesBaseName = 'backlog4j'
version = '2.6.1-SNAPSHOT'
repositories {
maven {
url 'https://repo1.maven.org/maven2/'
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'org.hamcrest:hamcrest-library:2.2'
testImplementation 'org.exparity:hamcrest-date:2.0.8'
testImplementation 'ch.qos.logback:logback-classic:1.2.11'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.11.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.3'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.3'
implementation 'org.slf4j:slf4j-api:1.7.36'
}
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'
description = 'Backlog4j is a Backlog binding library for Java.'
url = 'https://github.com/nulab/backlog4j'
scm {
connection = 'https://github.com/nulab/backlog4j.git'
developerConnection = 'https://github.com/nulab/backlog4j.git'
url = 'https://github.com/nulab/backlog4j.git'
}
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/license/mit/'
}
}
developers {
developer {
id = 'uchida'
name = 'Yuichi Uchida'
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
}