-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (79 loc) · 2.9 KB
/
build.gradle
File metadata and controls
90 lines (79 loc) · 2.9 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
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
plugins {
id "java-library"
id "groovy"
id "maven-publish"
id "signing"
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
implementation project(":graphql-java-client")
implementation "com.squareup:javapoet:1.13.0"
implementation "com.graphql-java:graphql-java:16.2"
implementation group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "2.12.2"
implementation group: "io.projectreactor", name: "reactor-core", version: "3.5.2"
// annotation processing
annotationProcessor "com.google.auto.service:auto-service:1.0-rc7"
compileOnly "com.google.auto.service:auto-service:1.0-rc7"
// logging
implementation "ch.qos.logback:logback-classic:1.2.3"
compileOnly "org.projectlombok:lombok:1.18.18"
annotationProcessor "org.projectlombok:lombok:1.18.18"
testAnnotationProcessor project
testImplementation group: "org.codehaus.groovy", name: "groovy-all", version: "2.5.7"
testImplementation group: "org.spockframework", name: "spock-core", version: "1.2-groovy-2.5"
testImplementation group: "net.bytebuddy", name: "byte-buddy-dep", version: "1.10.22"
testImplementation group: 'org.objenesis', name: 'objenesis', version: '3.1'
}
publishing {
publications {
processor(MavenPublication) {
groupId = project.group
artifactId = "graphql-java-client-processor"
version = project.version
from components.java
pom {
name = "graphql-java-client-processor"
description = "GraphqL Java Client"
url = "https://github.com/JacobMountain/graphql-java-client"
scm {
url = "https://github.com/JacobMountain/graphql-java-client"
connection = "https://github.com/JacobMountain/graphql-java-client"
developerConnection = "https://github.com/JacobMountain/graphql-java-client"
}
licenses {
license {
name = "MIT"
url = "https://github.com/JacobMountain/graphql-java-client/blob/develop/LICENSE"
distribution = "repo"
}
}
developers {
developer {
id = "JacobMountain"
name = "Jacob Mountain"
}
}
}
}
}
repositories {
maven {
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.env.NEXUS_USERNAME
password = System.env.NEXUS_PASSWORD
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.processor
}
// all publish tasks depend on the build task
tasks.withType(MavenPublication) {
dependsOn build
}