forked from SkriptLang/Skript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
127 lines (100 loc) · 2.49 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
127
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "com.github.hierynomus.license" version "0.13.1"
}
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories {
jcenter()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url 'https://oss.sonatype.org/content/groups/public/'
}
maven {
url 'http://maven.sk89q.com/repo'
}
maven {
url 'https://mvn.yawk.at'
}
// maven {
// url 'http://nexus.theyeticave.net/content/repositories/pub_releases'
// }
maven {
url 'https://repo.destroystokyo.com/repository/maven-public/'
}
maven {
url 'http://ci.emc.gs/nexus/content/groups/aikar/'
}
maven {
url 'http://nexus.hc.to/content/repositories/pub_releases'
}
maven {
url 'http://maven.elmakers.com/repository/'
}
}
dependencies {
compile 'com.destroystokyo.paper:paper-api:1.12.1-R0.1-SNAPSHOT'
compile 'org.eclipse.jdt:org.eclipse.jdt.annotation:1.1.0'
compile 'com.google.code.findbugs:findbugs:2.0.3'
compile 'com.sk89q:worldguard:6.1.1-SNAPSHOT'
compile 'net.milkbowl.vault:Vault:1.6.6'
compile 'net.sacredlabyrinth.Phaed:PreciousStones:10.0.5'
testCompile 'junit:junit:4.12'
testCompile 'org.easymock:easymock:3.4'
compile fileTree(dir: 'lib', include: '*.jar')
}
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module('org.bukkit:bukkit') with module('com.destroystokyo.paper:paper-api:1.11.2-R0.1-SNAPSHOT')
}
}
processResources {
filter ReplaceTokens, tokens: [
"version" : project.property("version")
]
}
jar {
archiveName System.getenv('SKRIPT_JAR_NAME') == null ? 'Skript.jar' : System.getenv("SKRIPT_JAR_NAME")
}
license {
header file('licenseheader.txt')
exclude('**/Metrics.java')
}
configurations {
ecj
}
dependencies {
ecj 'org.eclipse.jdt.core.compiler:ecj:4.6.1'
}
compileJava {
options.fork = true
options.encoding = 'UTF-8'
options.compilerArgs = ['-properties', '.settings/org.eclipse.jdt.core.prefs', '-encoding', 'UTF-8']
options.forkOptions.with {
executable = 'java'
jvmArgs = ['-classpath', project.configurations.ecj.asPath, 'org.eclipse.jdt.internal.compiler.batch.Main']
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId "ch.njol"
artifactId "skript"
version project.property("version")
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
url "file:///itemapi_repo/"
}
}
}