-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (43 loc) · 1.04 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
}
}
apply plugin: 'java'
apply plugin: 'maven'
group = 'cd.go.plugin'
version = '1.0.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
repositories {
mavenCentral()
maven { url "http://repo.maven.apache.org/maven2" }
}
configurations {
extraLibs
}
dependencies {
extraLibs group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
extraLibs group: 'cd.go.plugin', name: 'go-plugin-api', version:'19.5.0'
extraLibs group: 'commons-io', name: 'commons-io', version: '2.6'
testCompile group: 'junit', name: 'junit', version: '4.12'
configurations.compile.extendsFrom(configurations.extraLibs)
}
jar {
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}