-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
115 lines (103 loc) · 3.1 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group = "tw.yukina.notion.sdk"
archivesBaseName = "notion-sdk-java"
version = "1.0.1"
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.junit.jupiter:junit-jupiter:5.4.2'
implementation group: 'org.json', name: 'json', version: '20230227'
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'net.bytebuddy:byte-buddy:1.11.20'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.1'
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
implementation 'ch.qos.logback:logback-classic:1.2.9'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
}
test {
useJUnitPlatform()
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '8.1.1'
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign configurations.archives
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'Notion in Java'
description = 'Notion in Java'
url = 'https://github.com/YukinaMochizuki/notion-sdk-java'
licenses {
license {
name = 'The GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.en.html'
}
}
developers {
developer {
id = 'YukinaMochizuki'
name = 'YukinaMochizuki'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/YukinaMochizuki/notion-sdk-java.git'
developerConnection = 'scm:git:ssh://github.com/YukinaMochizuki/notion-sdk-java.git'
url = 'https://github.com/YukinaMochizuki/notion-sdk-java'
}
}
from components.java
}
}
repositories {
maven {
name = 'OSSRH'
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
test {
doFirst {
if (System.getenv('CI')) {
testLogging {
// set options for log level LIFECYCLE
events "failed"
}
}
}
}