-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
69 lines (55 loc) · 1.54 KB
/
build.gradle.kts
File metadata and controls
69 lines (55 loc) · 1.54 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
plugins {
id("java-library")
id("io.freefair.lombok") version "8.12.1"
id("maven-publish")
}
group = "xyz.refinedev.practice"
version = "1.0.3"
repositories {
mavenCentral()
mavenLocal()
maven("https://maven.refinedev.xyz/public-repo")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
withSourcesJar()
withJavadocJar()
}
val outputDir = layout.projectDirectory.dir("jars")
tasks.jar {
destinationDirectory.set(outputDir)
}
tasks.named<Jar>("sourcesJar") {
destinationDirectory.set(outputDir)
}
tasks.named<Jar>("javadocJar") {
destinationDirectory.set(outputDir)
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.8.8-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:24.0.1")
compileOnlyApi("com.github.cryptomorin:XSeries:12.1.0")
compileOnlyApi("xyz.refinedev.api:SkinAPI:1.1")
compileOnlyApi("xyz.refinedev.api:KnockbackAPI:1.0.0")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = group.toString()
artifactId = artifactId.toString()
version = version.toString()
}
}
repositories {
mavenLocal()
maven {
name = "refine-public"
url = uri("https://maven.refinedev.xyz/public-repo")
credentials {
username = findProperty("mavenUsername") as String? ?: ""
password = findProperty("mavenPassword") as String? ?: ""
}
}
}
}