Skip to content

Commit fb8abb6

Browse files
committed
Initial project setup
1 parent 85f8eb3 commit fb8abb6

11 files changed

Lines changed: 464 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ gradle-app.setting
1212

1313
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
1414
# gradle/wrapper/gradle-wrapper.properties
15+
/graphql-spring-webclient.iml
16+
/.idea/

build.gradle

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
plugins {
2+
id "com.jfrog.bintray" version "$LIB_BINTRAY_PLUGIN_VER"
3+
id 'net.researchgate.release' version "$LIB_RELEASE_PLUGIN_VER"
4+
id "org.springframework.boot" version "$LIB_SPRING_BOOT_VER" apply false
5+
}
6+
7+
subprojects {
8+
apply plugin: 'idea'
9+
apply plugin: 'java'
10+
apply plugin: 'java-library'
11+
apply plugin: 'maven-publish'
12+
apply plugin: "com.jfrog.bintray"
13+
apply plugin: "io.spring.dependency-management"
14+
15+
group "$PROJECT_GROUP"
16+
17+
repositories {
18+
mavenLocal()
19+
mavenCentral()
20+
jcenter()
21+
maven { url "https://dl.bintray.com/graphql-java-kickstart/releases" }
22+
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
23+
maven { url "https://repo.spring.io/libs-milestone" }
24+
}
25+
26+
dependencyManagement {
27+
imports {
28+
mavenBom "org.springframework.boot:spring-boot-starter-parent:$LIB_SPRING_BOOT_VER"
29+
}
30+
}
31+
32+
dependencies {
33+
compileOnly "org.projectlombok:lombok"
34+
annotationProcessor "org.projectlombok:lombok"
35+
36+
testCompileOnly "org.projectlombok:lombok"
37+
testAnnotationProcessor "org.projectlombok:lombok"
38+
}
39+
40+
test {
41+
useJUnitPlatform()
42+
}
43+
44+
idea {
45+
module {
46+
downloadJavadoc = true
47+
downloadSources = true
48+
}
49+
}
50+
51+
compileJava {
52+
sourceCompatibility = JavaVersion.VERSION_11
53+
targetCompatibility = JavaVersion.VERSION_11
54+
}
55+
56+
compileJava.dependsOn(processResources)
57+
58+
//disable Gradle Metadata generation as it may cause unwanted side effects
59+
tasks.withType(GenerateModuleMetadata) {
60+
enabled = false
61+
}
62+
63+
jar {
64+
from "LICENSE.md"
65+
}
66+
67+
java {
68+
withSourcesJar()
69+
withJavadocJar()
70+
}
71+
72+
publishing {
73+
publications {
74+
mainProjectPublication(MavenPublication) {
75+
from components.java
76+
77+
// to avoid "Publication only contains dependencies and/or constraints without a version" error
78+
// see https://docs.gradle.org/6.2.1/userguide/publishing_maven.html#publishing_maven:resolved_dependencies
79+
versionMapping {
80+
usage('java-api') {
81+
fromResolutionOf('runtimeClasspath')
82+
}
83+
usage('java-runtime') {
84+
fromResolutionResult()
85+
}
86+
}
87+
88+
pom {
89+
resolveStrategy = DELEGATE_FIRST
90+
name = PROJECT_NAME
91+
description = PROJECT_DESC
92+
url = PROJECT_GIT_REPO_URL
93+
scm {
94+
url = PROJECT_GIT_REPO_URL
95+
connection = PROJECT_GIT_REPO_URL
96+
developerConnection = PROJECT_GIT_REPO_URL
97+
}
98+
licenses {
99+
license {
100+
name = PROJECT_LICENSE
101+
url = PROJECT_LICENSE_URL
102+
distribution = 'repo'
103+
}
104+
}
105+
developers {
106+
developer {
107+
id = PROJECT_DEV_ID
108+
name = PROJECT_DEV_NAME
109+
}
110+
}
111+
}
112+
}
113+
}
114+
}
115+
116+
bintray {
117+
user = System.env.BINTRAY_USER ?: project.findProperty('BINTRAY_USER') ?: ''
118+
key = System.env.BINTRAY_PASS ?: project.findProperty('BINTRAY_PASS') ?: ''
119+
publications = ['mainProjectPublication']
120+
publish = true
121+
pkg {
122+
repo = 'releases'
123+
name = PROJECT_NAME
124+
desc = PROJECT_DESC
125+
licenses = [PROJECT_LICENSE]
126+
vcsUrl = PROJECT_GIT_REPO_URL
127+
userOrg = 'graphql-java-kickstart'
128+
version {
129+
name = project.version
130+
mavenCentralSync {
131+
close = '1'
132+
}
133+
}
134+
}
135+
}
136+
}
137+
138+
task build {
139+
dependsOn subprojects.findResults { it.tasks.findByName('assemble') }
140+
dependsOn subprojects.findResults { it.tasks.findByName('check') }
141+
dependsOn subprojects.findResults { it.tasks.findByName('bintray') }
142+
}
143+
144+
wrapper {
145+
distributionType = Wrapper.DistributionType.ALL
146+
}

gradle.properties

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version=1.0.0-SNAPSHOT
2+
3+
PROJECT_GROUP = com.graphql-java-kickstart
4+
PROJECT_NAME = graphql-spring-webclient
5+
PROJECT_DESC = GraphQL Spring Web client
6+
PROJECT_GIT_REPO_URL = https://github.com/graphql-java-kickstart/graphql-spring-webclient
7+
PROJECT_LICENSE = GNU v3
8+
PROJECT_LICENSE_URL = https://github.com/graphql-java-kickstart/spring-spring-webclient/blob/master/LICENSE.md
9+
PROJECT_DEV_ID = oliemansm
10+
PROJECT_DEV_NAME = Michiel Oliemans
11+
12+
### Libraries
13+
14+
LIB_PROJECT_REACTOR_VER = 1.0.1
15+
16+
### Gradle Plugins
17+
18+
LIB_SPRING_BOOT_VER = 2.2.5.RELEASE
19+
LIB_BINTRAY_PLUGIN_VER = 1.8.4
20+
LIB_RELEASE_PLUGIN_VER = 2.8.1

gradle/wrapper/gradle-wrapper.jar

53.9 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)