-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (50 loc) · 1.34 KB
/
build.gradle
File metadata and controls
64 lines (50 loc) · 1.34 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
plugins {
id 'java'
id 'java-library'
alias libs.plugins.shadow
alias libs.plugins.blossom
}
group = 'me.instrumentalityi'
version this.properties['pluginVersion']
allprojects {
apply(plugin: 'java')
apply(plugin: 'maven-publish')
apply(plugin: "com.gradleup.shadow")
apply(plugin: "net.kyori.blossom")
group = "me.instrumentalityi.contentapi"
repositories {
mavenCentral()
mavenLocal()
// Paper
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
// Lamp
maven { url = 'https://jitpack.io' }
// Saki Releases (zaiko)
maven { url = 'https://repo.saki.gg/releases/' }
}
java {
withJavadocJar()
withSourcesJar()
}
tasks {
compileJava {
options.encoding('UTF-8')
targetCompatibility(JavaVersion.VERSION_21.toString())
sourceCompatibility(JavaVersion.VERSION_21.toString())
// for Lamp
options.compilerArgs += ['-parameters']
options.fork = true
}
javadoc {
options.encoding('UTF-8')
}
processResources {
// set encoding to UTF-8
filteringCharset('UTF-8')
}
}
}
dependencies {
implementation(project("common"))
implementation(project("paper"))
}