-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
103 lines (91 loc) · 2.46 KB
/
build.gradle
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
99
100
101
102
103
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'maven-publish'
}
group 'dev.josantonius.minecraft.whitelist'
version '1.0.0'
ext {
_name = 'whitelist'
_server = 'purpur'
_api = '1.19.3'
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://repo.purpurmc.org/snapshots" }
}
dependencies {
compileOnly("org.purpurmc.purpur:purpur-api:1.19.3-R0.1-SNAPSHOT")
implementation('org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10')
implementation('dev.josantonius:minecraft-messaging:v1.1.0')
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
manifest {
attributes 'Main-Class': 'dev.josantonius.minecraft.whitelist.Main'
}
}
shadowJar {
archiveClassifier.set('all')
archiveFileName.set("${_name}-${version}-${_server}-${_api}.jar")
mergeServiceFiles()
append('META-INF/licenses/')
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.MF'
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
compileKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
jar {
exclude('.github/**')
exclude('libs/**')
exclude('.gitignore')
exclude('.CHANGELOG.md')
exclude('README.md')
exclude('LICENSE')
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'dev.josantonius.minecraft.whitelist'
artifactId = 'minecraft-plugin'
version = '1.0.0'
pom {
name = 'Minecraft Whitelist Plugin'
description = 'A basic whitelist plugin based on player nicknames only.'
url = 'https://github.com/josantonius/minecraft-whitelist'
licenses {
license {
name = 'MIT'
url = 'https://github.com/josantonius/minecraft-whitelist/blob/main/LICENSE'
}
}
developers {
developer {
id = 'josantonius'
name = 'Josantonius'
email = 'hello@josantonius.dev'
}
}
}
from components.java
}
}
}