-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
95 lines (87 loc) · 2.21 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
92
93
94
95
buildscript {
repositories {
maven { url = 'https://plugins.gradle.org/m2/' }
mavenCentral()
}
dependencies {
// https://plugins.gradle.org/plugin/org.beryx.jlink
classpath "org.beryx:badass-jlink-plugin:3.1.1"
}
}
ext {
VERSION = project.findProperty('version')
VCS_URL = 'https://github.com/glamsystems/look'
}
final JLV = JavaLanguageVersion.of(project.findProperty('targetJava') as Integer ?: 23)
final GPR_USER = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
final GPR_TOKEN = project.findProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
subprojects {
apply plugin: 'java'
project.group = 'systems.glam'
project.version = "$VERSION"
plugins.withType(JavaPlugin).configureEach {
java {
modularity.inferModulePath = true
toolchain {
languageVersion = JLV
}
}
}
repositories {
maven {
url = "https://maven.pkg.github.com/comodal/json-iterator"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
maven {
url = "https://maven.pkg.github.com/sava-software/sava"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
maven {
url = "https://maven.pkg.github.com/sava-software/solana-programs"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
maven {
url = "https://maven.pkg.github.com/sava-software/anchor-src-gen"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
maven {
url = "https://maven.pkg.github.com/sava-software/anchor-programs"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
maven {
url = "https://maven.pkg.github.com/sava-software/ravina"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
mavenCentral()
}
dependencies {
testImplementation libs.junit.jupiter
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat = "full"
showStandardStreams = true
}
}
}