-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
69 lines (59 loc) · 1.77 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0"
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
group = pluginGroup
version = pluginVersion
sourceCompatibility = 8
targetCompatibility = 8
repositories {
mavenCentral()
maven {url 'https://repo.codemc.org/repository/nms/'}
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
}
dependencies {
shadow 'com.google.code.findbugs:jsr305:3.0.2'
shadow 'org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT'
implementation project('abstraction')
implementation project('1_8_R3')
implementation project('1_9_R1')
implementation project('1_9_R2')
implementation project('1_10_R1')
implementation project('1_11_R1')
implementation project('1_12_R1')
implementation project('1_13_R1')
implementation project('1_13_R2')
implementation project('1_14_R1')
implementation project('1_15_R1')
implementation project('1_16_R1')
implementation project('1_16_R2')
implementation project('1_16_R3')
implementation project('1_17_R1')
implementation project('1_18_R1')
}
shadowJar {
classifier = ''
configurations = [project.configurations.compileClasspath]
dependencies {
exclude(dependency('com.google.code.findbugs:jsr305:3.0.2'))
exclude(dependency('org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT'))
}
}
build.dependsOn(shadowJar)