-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
78 lines (67 loc) · 1.67 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
plugins {
id "java"
id "maven-publish"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava.options.encoding = "UTF-8"
archivesBaseName = project.maven_name
group = project.maven_group
version = project.maven_version
repositories {
mavenCentral()
ivy {
url "https://cdn.getbukkit.org/spigot"
patternLayout {
artifact "/[organisation]-[module]-latest.jar"
}
metadataSources {
artifact()
}
}
}
dependencies {
compileOnly "spigot:1.8.8-R0.1-SNAPSHOT"
}
jar {
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
zipTree(project(":PaperSupport").jar.archiveFile)
}
}
java {
withSourcesJar()
withJavadocJar()
}
javadoc {
failOnError = false
}
publishing {
repositories {
maven {
name = "reposilite"
url = ((project.updatable == "true") ? "https://maven.lenni0451.net/releases" : "https://maven.lenni0451.net/snapshots")
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
artifactId = project.maven_name
groupId = project.maven_group
version = project.maven_version
from components.java
}
}
}
processResources {
inputs.properties(
"version": project.maven_version + ((project.updatable == "false") ? "-SNAPSHOT" : "")
)
filesMatching("plugin.yml") {
expand(
"version": project.maven_version + ((project.updatable == "false") ? "-SNAPSHOT" : "")
)
}
}