-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
91 lines (77 loc) · 1.98 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
plugins {
id 'java'
id 'org.asciidoctor.jvm.convert' version '3.1.0'
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
}
group 'ch.fhnw'
version '1.1'
repositories {
jcenter()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
url "https://jitpack.io"
}
}
sourceSets {
main {
resources {
srcDirs = ["src/main/java", "src/main/resources"]
}
}
}
compileJava {
options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation 'com.pi4j:pi4j-core:1.2'
implementation 'com.pi4j:pi4j-device:1.2'
implementation 'com.github.Hopding:JRPiCam:v1.1.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.2'
compile "uk.co.caprica:picam:2.0.2"
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
asciidoctorj {
modules {
diagram.version '1.5.18'
}
}
asciidoctor {
sourceDir file('docs')
sources {
include 'documentation.adoc', 'syntax.adoc'
}
outputDir file('build/docs')
attributes 'source-highlighter': 'coderay',
'coderay-linenums-mode': 'table',
'sourcedir': "${projectDir}/src/main/java",
'targeted-env': 'Sample'
}
asciidoctorPdf {
sourceDir 'docs'
asciidoctorj {
attributes 'source-highlighter': 'coderay',
'sourcedir': "${projectDir}/src/main/java",
'targeted-env': 'PDF Sample'
}
}
jar {
//exclude examples for using it like an API, but then manifest also has to be removed
exclude("fhnwexamples/*")
//manifest {
// attributes "Main-Class": "fhnwexamples.Examples"
//}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}