-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
46 lines (36 loc) · 920 Bytes
/
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
plugins {
id 'java'
}
group 'info.nauar.irc'
version '1.2.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
extraLibs
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
extraLibs group: 'pircbot', name: 'pircbot', version: '1.5.0'
extraLibs group: 'commons-cli', name: 'commons-cli', version: '1.4'
configurations.compile.extendsFrom(configurations.extraLibs)
}
apply plugin: 'java'
jar {
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'Main-Class': 'info.nauar.irc.triviascore.Scorebot'
}
}