-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
126 lines (98 loc) · 3.16 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
id 'java'
id 'maven-publish'
id "com.baioretto.specialsource" version "1.0.0"
id 'com.github.johnrengelman.shadow' version '7.1.2'
id "io.freefair.lombok" version "6.5.0.3"
}
repositories {
mavenLocal()
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://repo.codemc.io/repository/nms-local/')
}
maven {
url = uri('https://oss.sonatype.org/content/groups/public/')
}
maven {
url = uri('https://redempt.dev')
}
maven {
url = uri('https://repo.codemc.org/repository/maven-public/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
maven { url 'https://jitpack.io' }
// MythicMobs
maven { url 'https://mvn.lumine.io/repository/maven-public/' }
}
dependencies {
implementation 'me.mattstudios.utils:matt-framework:1.4.6'
implementation 'com.github.Redempt:RedLib:6.5.2'
implementation 'de.tr7zw:item-nbt-api:2.10.0'
implementation 'org.jetbrains:annotations:23.0.0'
implementation 'org.reflections:reflections:0.10.2'
compileOnly 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
testCompileOnly 'com.github.oraxen:oraxen:-SNAPSHOT'
compileOnly group: 'io.lumine', name: 'Mythic-Dist', version: '5.0.2-SNAPSHOT'
compileOnly 'com.github.LoneDev6:API-ItemsAdder:3.2.3c'
compileOnly fileTree(dir: 'libs/compile', include: ['*.jar'])
implementation fileTree(dir: 'libs/implement', include: ['*.jar'])
def minecraftVersion = '1.18.2-R0.1-SNAPSHOT'
compileOnly group: 'org.spigotmc', name: 'spigot', version: "${minecraftVersion}", classifier: 'remapped-mojang'
// maven local
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.2'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.2'
// maven local
}
group = 'homeward.plugin'
version = '1.10-SNAPSHOT'
description = 'HomewardCooking'
def targetJavaVersion = 16
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
minimize()
archiveBaseName.set rootProject.name
archiveClassifier.set ''
archiveVersion.set project.version
archiveExtension.set 'jar'
}
apply from: 'script/compile.gradle'