-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (54 loc) · 1.65 KB
/
build.gradle
File metadata and controls
55 lines (54 loc) · 1.65 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
plugins {
id 'java-library'
id 'maven-publish'
}
//Dependency Management
repositories {
mavenCentral()
}
configurations {
linux_x64
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.4'
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.4'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.4'
implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.1000')
implementation 'com.amazonaws:aws-java-sdk-s3'
}
jar {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
repositories {
maven {
// Choose whatever name you want
name = "GitHubPackages"
// The url of the repository, where the artifacts will be published
url = "https://maven.pkg.github.com/USACE/cc-java-sdk"
credentials {
// The credentials (described in the next section)
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
// Fixes the error with dynamic versions when using Spring Boot
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
group 'mil.army.usace.hec'
version '0.0.59'
}