-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
68 lines (58 loc) · 1.8 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
plugins {
id 'java-library'
id 'maven-publish'
}
apply plugin: 'java'
group = 'com.casper.sdk'
version = '0.3.0'
sourceCompatibility = '13'
repositories {
mavenCentral()
}
dependencies {
testCompile 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testCompile 'org.junit.jupiter:junit-jupiter-params:5.3.1'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
compile group: 'com.rfksystems', name: 'blake2b', version: '1.0.0'
compile group: 'commons-codec', name: 'commons-codec', version: '1.5'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.2'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.2'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.12.2'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.0.1'
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/cnorburn/casper-java-sdk")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
jar {
manifest {
attributes(
'Main-Class': 'com.casper.sdk.controller.CasperSdk'
)
}
}
task casperJar(type: Jar) {
archiveBaseName = 'casper-java-sdk'
archiveVersion = '0.1.0'
manifest {
attributes 'Main-Class': 'com.casper.sdk.controller.CasperSdk'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
test {
useJUnitPlatform()
}