-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (55 loc) · 1.45 KB
/
build.gradle
File metadata and controls
64 lines (55 loc) · 1.45 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
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
group 'net.notfab.spigot'
version '1.4.1'
description 'SimpleConfig Library'
sourceCompatibility = targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
baseName = project.name
manifest {
attributes 'Implementation-Version': version
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
repositories {
maven {
url = "/repository/Hosted"
}
}
publications {
mavenJava(MavenPublication) {
from components.java
groupId group
artifactId rootProject.name
version version
artifact javadocJar
artifact sourcesJar
}
}
}
repositories {
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "https://maven.notfab.net/SpigotMC" }
}
dependencies {
compileOnly group: 'org.yaml', name: 'snakeyaml', version: '1.24'
compileOnly group: 'net.md-5', name: 'bungeecord-api', version: '1.14-SNAPSHOT'
compileOnly group: 'org.spigotmc', name: 'spigot', version: '1.13-R0.1-SNAPSHOT'
testCompile group: 'junit', name: 'junit', version: '4.12'
}