-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
56 lines (47 loc) · 1.23 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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'mc.obliviate'
version '4.1.13.1'
sourceCompatibility = 8
compileJava.options.encoding = 'UTF-8'
tasks.jar {
enabled = false
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
group rootProject.group
version rootProject.version
sourceCompatibility = 8
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://repo.maven.apache.org/maven2/' }
maven { url 'https://repo.codemc.org/repository/nms/' }
maven { url 'https://jitpack.io' }
}
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
version = project.version
artifactId = project.name
from components.java
}
}
}
artifacts.archives(tasks.shadowJar)
tasks.jar {
enabled = true
}
tasks.shadowJar {
archiveFileName.set(project.name + "-" + project.version + ".jar")
}
}