-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
73 lines (65 loc) · 1.89 KB
/
build.gradle.kts
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
plugins {
id("java")
`java-library`
jacoco
`maven-publish`
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.add("--enable-preview")
}
group = "com.github.wkennedy"
version = "1.0-SNAPSHOT"
val SPRING_PLUGINS_REPO_URL = "https://repo.spring.io/plugins-release/"
repositories {
mavenCentral()
maven {
url = uri("https://artifacts.consensys.net/public/maven/maven/")
}
maven {
url = uri(SPRING_PLUGINS_REPO_URL)
}
}
dependencies {
implementation("commons-codec:commons-codec:1.17.0")
implementation("org.apache.commons:commons-collections4:4.4")
implementation("org.apache.commons:commons-lang3:3.14.0")
implementation("com.fasterxml.jackson.core:jackson-core:2.17.1")
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.1")
implementation("org.web3j:core:4.12.0")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
reports {
reports {
xml.required = true
}
}
dependsOn(tasks.test) // tests are required to run before generating the report
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/wkennedy/jabi-evm")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}