-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (67 loc) · 2.36 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
plugins {
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.springframework.boot' version '2.7.0'
id 'maven-publish'
id 'java'
}
group 'net.mikoto.pixiv'
version '1.0.0'
sourceCompatibility = '17'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compileOnly 'net.mikoto.pixiv:pixiv-api:1.4.2'
compileOnly 'com.squareup.okhttp3:okhttp:4.9.3'
compileOnly 'com.alibaba.fastjson2:fastjson2:2.0.5'
compileOnly 'org.apache.tomcat:tomcat-coyote:10.0.20'
compileOnly 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation 'net.mikoto.pixiv:pixiv-api:1.4.2'
testImplementation 'com.squareup.okhttp3:okhttp:4.9.3'
testImplementation 'com.alibaba.fastjson2:fastjson2:2.0.5'
testImplementation 'org.apache.tomcat:tomcat-coyote:10.0.20'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.springframework.boot:spring-boot-starter-web:2.7.0'
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa'
}
publishing {
repositories {
maven {
name = "pixiv-database-connector-packages"
url = uri("https://maven.pkg.github.com/mikoto-tech/pixiv-database-connector")
credentials {
username = project.findProperty("gpr.user") ?: GITHUB_USERNAME
password = project.findProperty("gpr.key") ?: GITHUB_TOKEN
}
}
}
publications {
gpr(MavenPublication) {
from components.java
pom {
name = "pixiv-database-connector"
description = "Mikoto pixiv database connector"
url = "https://mikoto.net.cn"
licenses {
license {
name = "GNU Affero General Public License v3.0"
url = "https://www.gnu.org/licenses/agpl-3.0.en.html"
}
}
developers {
developer {
id = "mikoto"
name = "Zhang keshun"
email = "[email protected]"
}
}
}
}
}
}
test {
useJUnitPlatform()
}