-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (56 loc) · 2.34 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
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'org.beryx.jlink' version '2.25.0' apply false
}
buildScan {
if (System.getenv('CI')) {
publishAlways()
tag 'CI'
}
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
allprojects {
apply plugin: 'java'
version = webcamVersion // set in gradle.properties
group = 'app.supernaut.fx.webcam'
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots'} // webcam-capture snapshots
maven { url 'https://maven.ecs.soton.ac.uk/content/repositories/thirdparty/' }
//maven { url 'https://gitlab.com/api/v4/projects/26584840/packages/maven' } // SupernautFX
maven { url 'https://jitpack.io' } // Modified BridJ
}
}
subprojects {
apply plugin: 'groovy'
/*
* Supernaut.FX Webcam will target recent JDK versions. For now library modules will
* target JDK 11 and sample apps will be built using JDK 17.
* We want to focus on jpackage'd apps and these should always use recent JDK.
*/
sourceCompatibility = 11
targetCompatibility = 11
dependencies {
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
testImplementation("org.spockframework:spock-core:${spockVersion}") {
exclude module: "groovy-all"
}
testRuntimeOnly "net.bytebuddy:byte-buddy:1.11.20" // allows Spock to mock classes (in addition to interfaces)
testRuntimeOnly "org.objenesis:objenesis:3.2" // Allow Spock to mock classes with constructor arguments
testRuntimeOnly "org.slf4j:slf4j-jdk14:${slf4jVersion}" // Runtime implementation of slf4j
}
compileJava {
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
}
}
task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/allTests")
// Include the results from the `test` task in all subprojects
reportOn subprojects*.test
}
build.dependsOn subprojects.build
task buildCI(dependsOn: [build])
task buildJPackages(dependsOn: [buildCI])
apply from: 'gradle/licenseCheck.gradle'