-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (62 loc) · 2.09 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
plugins {
// Apply the Java plugin
id 'java'
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
// Apply the Maven Publishing plugin to publish the CLI application to Maven.
id 'maven-publish'
// Apply the Lombok plugin to generate Lombok-annotated classes.
id "io.freefair.lombok" version "6.5.0.2"
}
group = 'nl.gumbomillennium'
sourceCompatibility = '11'
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
publishing {
repositories {
// Use GitHub Packages repository for publishing
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/gumbo-millennium/plazacam")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
dependencies {
// Use opencv bindings for camera access
implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
// Use JSON package
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
// Add slf4j and logback for logging
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.11'
// This dependency is used by the application.
implementation 'com.google.guava:guava:31.1-jre'
}
application {
// Define the main class for the application.
mainClass = 'nl.gumbomillennium.plazacam.Main'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
// Enable Build Scan™ to work
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}