-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (61 loc) · 1.54 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
76
77
group = "io.bali.serial"
version = "0.1.0"
apply plugin: 'java'
apply plugin: 'idea'
allprojects {
group = rootProject.group
version = rootProject.version
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
configurations {
archives
deployerJars
provided
compile.extendsFrom provided
runtime.extendsFrom compile
}
jar {
baseName = project.group + "." + project.name
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
task sourceJar( type: Jar ) {
classifier = "sources"
baseName = project.group + "." + project.name
from sourceSets.main.allSource
}
task javadocJar( type: Jar ) {
classifier = "javadoc"
from javadoc.destinationDir
baseName = project.group + "." + project.name
dependsOn javadoc
}
artifacts {
archives sourceJar, javadocJar
}
repositories {
mavenCentral()
mavenLocal()
mavenRepo name: 'qi4j-repo', url: 'https://repository-qi4j.forge.cloudbees.com/release/'
mavenRepo name: 'restlet-repo', url: 'http://maven.restlet.org'
}
idea.module.iml {
whenMerged { module ->
module.dependencies*.exported = false
}
}
}
task javadocs( type: Javadoc ) {
options.docFilesSubDirs = true
options.encoding = "UTF-8"
options.group( [ "Java Comm API": [ "javax.comm.*" ],
"Implementation": [ "ac.bali.serial.*" ]
] )
}
task wrapper(type: Wrapper) {
gradleVersion = "1.5.0"
}