-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (51 loc) · 1.94 KB
/
Copy pathbuild.gradle
File metadata and controls
64 lines (51 loc) · 1.94 KB
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
plugins {
id 'java-library'
id 'maven-publish'
}
group 'io.dutwrapper'
version '1.11.2-patch1'
repositories {
mavenCentral()
}
// https://stackoverflow.com/a/34717160
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
// compileJava.options.javaModuleVersion = provider { project.version }
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// This dependency is exported to consumers, that is to say found on their compile classpath.
// commons-math3 - https://mvnrepository.com/artifact/org.apache.commons/commons-math3
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
// Guava - https://mvnrepository.com/artifact/com.google.guava/guava
implementation 'com.google.guava:guava:33.3.1-jre'
// JSoup - https://mvnrepository.com/artifact/org.jsoup/jsoup
implementation 'org.jsoup:jsoup:1.18.1'
// OkHttp3 - https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.14'
// Google Gson - https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation 'com.google.code.gson:gson:2.11.0'
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/dutwrapper/dutwrapper-java")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GitHub_Username")
password = project.findProperty("gpr.key") ?: System.getenv("GitHub_TokenPkg")
}
}
}
}
tasks.named('updateDaemonJvm') {
jvmVersion = JavaVersion.VERSION_17
}