-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (75 loc) · 2.3 KB
/
build.gradle
File metadata and controls
88 lines (75 loc) · 2.3 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
82
83
84
85
86
87
88
plugins {
id 'java'
id 'maven-publish'
}
group = 'geminiapi'
version = '1.2'
repositories {
mavenCentral()
}
def secret = file("secret.properties")
def props = new Properties()
props.load(new FileInputStream(secret))
java {
toolchain {
languageVersion = JavaLanguageVersion.of(18)
}
sourceCompatibility = JavaVersion.VERSION_18
targetCompatibility = JavaVersion.VERSION_18
withSourcesJar()
}
tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8'
}
dependencies {
implementation("com.google.code.gson:gson:2.12.0")
implementation("org.apache.logging.log4j:log4j-api:2.24.3")
implementation("org.jetbrains:annotations:26.0.2")
implementation("org.projectlombok:lombok:1.18.42")
annotationProcessor("org.projectlombok:lombok:1.18.42")
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'GeminiAPI'
description = 'An API of gemini.'
url = 'https://github.com/kaede-development/GeminiAPI'
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'peco2282'
name = 'peco2282'
email = 'pecop2282@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/kaede-development/GeminiAPI.git'
developerConnection = 'scm:git:ssh://github.com/kaede-development/GeminiAPI.git'
url = 'https://github.com/kaede-development/GeminiAPI'
}
}
}
}
repositories {
maven {
name = "peco2282"
url = uri("https://maven.peco2282.com/repository/maven-releases")
credentials {
username = props["user"]
password = props["password"]
}
}
}
}