-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
98 lines (82 loc) · 1.98 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
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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version ("8.1.1")
id("org.ajoberstar.git-publish") version ("4.2.1")
id("org.ajoberstar.grgit") version ("5.2.2")
id("maven-publish")
id("java-library")
}
group = "com.nookure.core"
version = "1.0.0-${grgit.head().abbreviatedId}"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
api("io.pebbletemplates:pebble:3.2.2")
api("org.jetbrains:annotations:24.1.0")
api("jakarta.xml.bind:jakarta.xml.bind-api:4.0.2")
api("org.glassfish.jaxb:jaxb-runtime:4.0.5")
api("com.github.ben-manes.caffeine:caffeine:3.1.8")
compileOnly("com.mojang:authlib:3.17.30")
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("com.google.code.gson:gson:2.11.0")
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "local"
url = uri("${rootProject.rootDir}/maven")
}
}
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group.toString()
artifactId = "NookCore-Inventory"
version = rootProject.version.toString()
from(components["java"])
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
gitPublish {
repoUri = "https://github.com/Nookure/maven.git"
branch = "main"
fetchDepth = null
commitMessage = "NookCore-Inventory $version"
contents {
from("${rootProject.rootDir}/maven")
}
preserve {
include("**")
}
}
allprojects {
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
withType<Javadoc> {
options.encoding = "UTF-8"
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
tasks {
withType<Javadoc> {
val o = options as StandardJavadocDocletOptions
o.encoding = "UTF-8"
o.source = "17"
}
}