forked from NyaaCat/LockettePro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (60 loc) · 2.35 KB
/
build.gradle
File metadata and controls
66 lines (60 loc) · 2.35 KB
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
apply plugin: 'java-library'
apply plugin: 'maven-publish'
// Suppiled by Jenkins
ext.majorVersion = 2
ext.minorVersion = 10
ext.minecraftVersion = "1.16.1"
ext.buildNumber = System.env.BUILD_NUMBER == null ? "x" : "$System.env.BUILD_NUMBER"
ext.mavenDirectory = System.env.MAVEN_DIR == null ? "$projectDir/repo" : "$System.env.MAVEN_DIR"
ext.jdDirectory = System.env.JAVADOCS_DIR == null ? null : "$System.env.JAVADOCS_DIR"
sourceCompatibility = 1.8
targetCompatibility = 1.8
// differet version convension from Nyaa plugins
group = "me.crafter.mc"
archivesBaseName = "LockettePro"
version = "$majorVersion.$minorVersion.${buildNumber}-mc$minecraftVersion"
repositories {
jcenter()
maven {name 'Spigot'; url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'}
maven {name 'Sonatype'; url 'https://oss.sonatype.org/content/groups/public'}
maven {name 'sk89q'; url 'http://maven.sk89q.com/artifactory/repo/'}
maven {name 'playpro'; url 'https://maven.playpro.com/'}
maven {name 'vault-repo'; url 'https://jitpack.io'}
maven {name 'dmulloy2'; url 'http://repo.dmulloy2.net/content/groups/public/'}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
compileOnly('net.milkbowl.vault:VaultAPI:1.7') { transitive = false }
compileOnly('com.sk89q.worldguard:worldguard-bukkit:7.0.2-SNAPSHOT') { transitive = false }
// FIXME: ProtocolLib-API is not available for 4.5.0
//compileOnly('com.comphenix.protocol:ProtocolLib-API:4.4.0') { transitive = false }
compileOnly('com.comphenix.protocol:ProtocolLib:4.5.0') { transitive = false }
// Note: the repo maven.playpro.com is not updated to match the version on spigotmc
compileOnly('net.coreprotect:coreprotect:19.1') { transitive = false }
}
compileJava {
options.compilerArgs += ["-Xlint:deprecation"]
}
processResources {
expand version: project.version
}
// maven publications
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.java.srcDirs
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact sourcesJar
artifactId "lockettepro"
version "$majorVersion.$minorVersion-SNAPSHOT"
from components.java
}
}
repositories {
maven {
url "$mavenDirectory"
}
}
}