forked from croxis/Lift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (55 loc) · 1.92 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
plugins {
id 'java'
}
// This may not be required, but has solved issues in the past
compileJava.options.encoding = 'UTF-8'
defaultTasks 'clean', 'build'
//the naming of this artifact
group = 'net.croxis.plugins.lift'
jar.archiveFileName = 'Lift.jar'
version = '73'
description = 'Elevators!'
// Minimum version of Java required
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
//dependencies versions
ext.bukkitVersion = '1.18.1-R0.1-SNAPSHOT'
//dependencies declaration
dependencies {
//compile group: 'fr.neatmonster', name: 'nocheatplus', version: '3.16.1-SNAPSHOT'
//compile group: 'org.bukkit', name: 'bukkit', version: bukkitVersion
//compile group: 'org.spigotmc', name: 'spigot-api', version: bukkitVersion
//compileOnly 'org.spigotmc:plugin-annotations:1.2.0-SNAPSHOT'
//implementation group: 'org.bukkit', name: 'bukkit', version: bukkitVersion
implementation group: 'org.spigotmc', name: 'spigot-api', version: bukkitVersion
//implementation group: 'org.spongepowered', name: 'spongeapi', version:'8.0.0-SNAPSHOT'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
//allprojects {
// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
// }
// }
//}
repositories {
mavenCentral()
mavenLocal()
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
// mavenLocal() // This is needed for CraftBukkit and Spigot.
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/public/'
}
//maven {
// name = 'sponge'
// url = 'https://repo.spongepowered.org/maven'
//}
}