-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
123 lines (106 loc) · 3.49 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
plugins {
id 'java'
id 'maven-publish'
id 'signing'
id 'com.diffplug.spotless' version '6.12.0'
id 'com.github.ben-manes.versions' version '0.44.0'
}
group = 'com.formkiq'
version = '1.15.1'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal()
mavenCentral()
}
spotless {
java {
eclipse().configFile project.rootProject.file("spotless.eclipseformat.xml")
}
}
dependencies {
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
implementation "software.amazon.awssdk:auth:2.20.120"
implementation "javax.ws.rs:javax.ws.rs-api:2.1.1"
implementation "com.squareup.okhttp3:okhttp:4.10.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
implementation "com.google.code.gson:gson:2.9.1"
implementation "io.gsonfire:gson-fire:1.8.5"
implementation "org.apache.commons:commons-lang3:3.12.0"
compileOnly "jakarta.annotation:jakarta.annotation-api:1.3.5"
implementation "org.openapitools:jackson-databind-nullable:0.2.6"
// test dependencies
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.9.1"
testImplementation "org.junit.platform:junit-platform-runner:1.9.1"
testImplementation "org.mockito:mockito-core:3.12.4"
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'client'
from components.java
pom {
name = 'FormKiQ Client'
description = 'The Official Client library for FormKiQ'
url = 'https://github.com/formkiq/formkiq-java-client'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'mfriesen'
name = 'Mike Friesen'
email = 'mike@formkiq.com'
}
}
scm {
connection = 'scm:git:git://github.com/formkiq/formkiq-java-client.git'
developerConnection = 'scm:git:ssh://github.com/formkiq/formkiq-java-client.git'
url = 'https://github.com/formkiq/formkiq-java-client.git'
}
}
}
}
repositories {
maven {
credentials {
username project.repoUser
password project.repoPassword
// username project.githubUser
// password project.githubToken
}
// maven central
url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
//url "https://oss.sonatype.org/content/repositories/snapshots/"
// github packages
//url "https://maven.pkg.github.com/formkiq/formkiq-client-sdk-java"
}
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
if(JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
check {
dependsOn(tasks.publishToMavenLocal)
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
sign publishing.publications.mavenJava
}
spotlessJavaCheck.dependsOn spotlessJavaApply