-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
executable file
·47 lines (41 loc) · 1 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
plugins {
id 'java'
id 'maven-publish'
}
group 'pl.mikigal'
version '1.2.6'
publishing {
repositories {
maven {
name = "repo.mikigal.pl"
url = uri("https://repo.mikigal.pl/releases")
credentials {
username = project.findProperty("REPO_USERNAME")
password = project.findProperty("REPO_TOKEN")
}
}
}
publications {
distribution(MavenPublication) {
from(components.java)
}
}
}
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.8.8-R0.1-SNAPSHOT'
}
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}