-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
103 lines (83 loc) · 2.76 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
96
97
98
99
100
101
102
103
plugins {
id 'java'
id 'application'
id 'java-library'
id 'maven-publish'
id 'org.springframework.boot' version '2.7.2'
}
group = 'com.lostsidewalk'
version = '0.4-dev2'
sourceCompatibility = "11"
targetCompatibility = "11"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// This dependency is used by the application.
implementation 'com.google.guava:guava:31.1-jre'
implementation 'io.airlift:aircompressor:0.21'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.0-alpha6'
api group: 'com.lostsidewalk', name: 'lev', version: '1.3'
api 'org.springframework.boot:spring-boot-starter:2.7.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
// Use JUnit Jupiter API for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
}
application {
mainClassName = 'skyproc.gui.SUMprogram'
}
task copyJarToBin {
copy {
from "build/libs/"
include "skyproc-${project.version}.jar"
into file('Files/')
}
}
task renameSUMJar (type: Copy) {
dependsOn copyJarToBin
from ('Files/')
include "skyproc-${project.version}.jar"
destinationDir file('Files/')
rename "skyproc-${project.version}.jar", "SUM.jar"
}
test {
useJUnitPlatform()
systemProperty "junit.jupiter.execution.parallel.enabled", false
systemProperty "junit.jupiter.execution.mode.default", "same_thread"
systemProperty "junit.jupiter.execution.mode.classes.default", "same_thread"
exclude 'skyproc/SkyProcTester.class'
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/meharris-bnr/lev")
credentials {
username = project.findProperty("repo.user") ?: System.getenv("SKYPROC_REPO_USER")
password = project.findProperty("repo.token") ?: System.getenv("SKYPROC_REPO_TOKEN")
}
}
}
publishing {
repositories {
maven {
name = 'GitHubPackages'
url = uri("https://maven.pkg.github.com/meharris-bnr/skyproc")
credentials {
username = project.findProperty("publishing.user") ?: System.getenv("SKYPROC_PUBLISHING_USER")
password = project.findProperty("publishing.token") ?: System.getenv("SKYPROC_PUBLISHING_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}