This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
93 lines (80 loc) · 2.09 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
`java-library`
`maven-publish`
id ("com.github.johnrengelman.shadow") version "8.1.1"
id("io.freefair.lombok") version "8.0.1"
}
repositories {
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "trustgamesRepoPrivate"
url = uri("http://81.201.49.240:8080/private")
isAllowInsecureProtocol = true
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
url = uri("https://repo.dmulloy2.net/repository/public/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
mavenLocal()
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT")
compileOnly("net.trustgames:core:0.2-SNAPSHOT")
compileOnly("io.github.miniplaceholders:miniplaceholders-api:2.1.0")
}
group = "net.trustgames"
version = "0.1-SNAPSHOT"
description = "Lobby"
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
repositories {
maven {
name = "trustgamesRepoPrivate"
url = uri("http://81.201.49.240:8080/private")
isAllowInsecureProtocol = true
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = group.toString()
artifactId = rootProject.name
version = version
from(components["java"])
}
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
tasks {
shadowJar {
archiveClassifier.set("")
}
assemble {
dependsOn(shadowJar)
}
}