-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (48 loc) · 1.33 KB
/
build.gradle.kts
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
plugins {
java
`maven-publish`
}
project.group = "lol.svn"
project.version = "1.0.1"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.jetbrains:annotations:23.0.0")
implementation("com.squareup.okhttp3:okhttp:4.10.0")
implementation("org.json:json:20220924")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
}
tasks {
test {
useJUnitPlatform()
}
}
publishing {
publications {
create<MavenPublication>("library") {
from(components.getByName("java"))
pom.name.set("daily-reward-parse-util")
pom.description.set("Parses the Hypixel daily reward website into a basic Java API")
pom.url.set("https://github.com/ipsvn/daily-reward-parse-util")
}
}
repositories {
maven {
url = uri("${buildDir}/publishing-repository")
}
maven {
name = "ipsvn"
url = uri("https://m2.svn.lol/releases")
credentials {
username = property("m2-svn-username").toString()
password = property("m2-svn-password").toString()
}
}
}
}