-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
75 lines (62 loc) · 1.72 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
group = 'com.meowj'
archivesBaseName = 'LangUtils'
version = '1.9'
final def BUKKIT_VERSION = '1.12-R0.1-SNAPSHOT'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
//noinspection GroovyAssignabilityCheck
processResources {
from(sourceSets.main.resources.srcDirs) {
exclude 'plugin.yml'
}
from(sourceSets.main.resources.srcDirs) {
include 'plugin.yml'
expand 'version': project.version
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'LangUtils'
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}
build.dependsOn sourcesJar, javadocJar
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
url 'https://oss.sonatype.org/content/groups/public/'
}
}
//noinspection GroovyAssignabilityCheck
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.10'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.2'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.2'
//Bukkit API and libraries
compile group: 'org.spigotmc', name: 'spigot-api', version: BUKKIT_VERSION
}