Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Commit 2f185d8

Browse files
committed
deploy on build to bintray/maven
1 parent 5ad7568 commit 2f185d8

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
language: java
1+
sudo: required
2+
services:
3+
- docker
4+
before_cache:
5+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
7+
cache:
8+
directories:
9+
- $HOME/.gradle/caches/
10+
- $HOME/.gradle/wrapper/
11+
script:
12+
- ./travis-build.sh

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ subprojects {
3737
version = releaseVersion ? releaseVersion : getDevelopmentVersion()
3838
group = 'com.graphql-java'
3939

40+
ext {
41+
graphqlJavaVersion = "11.0"
42+
springVersion = "5.1.2.RELEASE"
43+
springBootVersion = "2.1.0.RELEASE"
44+
jacksonVersion = "2.9.6"
45+
}
4046

4147
repositories {
4248
mavenCentral()

graphql-java-spring-boot-starter-webflux/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
version = "1.0"
21

3-
def springBootVersion = "2.1.0.RELEASE"
42

53
dependencies {
64
compile "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"

graphql-java-spring-boot-starter-webmvc/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
version = "1.0"
2-
3-
def springBootVersion = "2.1.0.RELEASE"
41

52
dependencies {
63
compile "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"

graphql-java-spring-webflux/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
def springVersion = "5.1.2.RELEASE"
2-
def jacksonVersion = "2.9.6"
3-
def graphqlJavaVersion = "11.0"
4-
51
dependencies {
62
compile "org.springframework:spring-webflux:$springVersion"
73
compile "org.springframework:spring-context:$springVersion"

graphql-java-spring-webmvc/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
def springVersion = "5.1.2.RELEASE"
2-
def jacksonVersion = "2.9.6"
3-
def graphqlJavaVersion = "11.0"
1+
2+
43

54
dependencies {
65
compile "org.springframework:spring-webmvc:$springVersion"

travis-build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -ev
3+
echo "current git hash:"
4+
git rev-parse --short HEAD
5+
BUILD_COMMAND="./gradlew assemble && ./gradlew check --info"
6+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
7+
echo "Building on master"
8+
BUILD_COMMAND="./gradlew clean assemble && ./gradlew check --info && ./gradlew bintrayUpload -x check --info"
9+
fi
10+
docker run -it --rm -v `pwd .`:/build -e RELEASE_VERSION=$RELEASE_VERSION -e BINTRAY_USER=$BINTRAY_USER -e BINTRAY_API_KEY=$BINTRAY_API_KEY -e MAVEN_CENTRAL_USER=$MAVEN_CENTRAL_USER -e MAVEN_CENTRAL_PASSWORD=$MAVEN_CENTRAL_PASSWORD -w /build openjdk:8u131-jdk bash -c "${BUILD_COMMAND}"

0 commit comments

Comments
 (0)