forked from ABCRic/RainMan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gradle
37 lines (28 loc) · 955 Bytes
/
common.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
import org.apache.tools.ant.filters.ReplaceTokens
version = '1.6-SNAPSHOT'
repositories {
mavenLocal()
maven { url = uri('https://repo.papermc.io/repository/maven-public/') }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
dependencies {
compileOnly("org.spigotmc:spigot-api:${project.spigot_version}") {
exclude group:"org.hamcrest", module:"hamcrest-core"
exclude group:"junit", module:"junit"
}
compileOnly "com.google.code.findbugs:annotations:${project.findbugs_version}"
annotationProcessor "com.google.code.findbugs:annotations:${project.findbugs_version}"
}
processResources {
from(sourceSets.main.resources.srcDirs) {
duplicatesStrategy = 'include'
filter ReplaceTokens, tokens: [version: version]
}
}