Skip to content

Commit 296b9b0

Browse files
authored
Build with nebula (#8)
* Build and deploy with nebula along with changing script * dry run * Force build * fixed typo in script
1 parent cae07c1 commit 296b9b0

File tree

4 files changed

+13
-48
lines changed

4 files changed

+13
-48
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: java
22
jdk:
33
- oraclejdk8
44
sudo: false
5-
scrpt: gradle/travis_build.sh
5+
script: script/deploy.sh
66
cache:
77
directories:
88
- "$HOME/.m2"

bintray.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

build.gradle

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ buildscript { repositories { jcenter() } }
22
plugins {
33
id 'java'
44
id 'org.jetbrains.kotlin.jvm' version '1.2.51'
5-
id "com.jfrog.bintray" version "1.8.4"
5+
id 'nebula.project' version '4.0.1'
6+
id "nebula.maven-publish" version "7.2.4"
7+
id 'nebula.nebula-bintray' version '3.5.5'
68
}
79

8-
apply plugin: "maven-publish"
9-
10-
1110
group 'com.github.dsrees'
1211
version '0.1.1'
1312

@@ -35,21 +34,11 @@ compileTestKotlin {
3534
kotlinOptions.jvmTarget = "1.8"
3635
}
3736

38-
publishing {
39-
publications {
40-
JavaPhoenixClientJar(MavenPublication) {
41-
from components.java
42-
groupId 'com.github.dsrees'
43-
artifactId 'JavaPhoenixClient'
44-
version project.version
45-
}
46-
}
47-
}
48-
4937
bintray {
5038
user = System.getenv('BINTRAY_USER')
5139
key = System.getenv('BINTRAY_API_KEY')
52-
40+
dryRun = true
41+
publish = true
5342
pkg {
5443
repo = 'java-phoenix-client'
5544
name = 'JavaPhoenixClient'
@@ -58,7 +47,10 @@ bintray {
5847
issueTrackerUrl = 'https://github.com/dsrees/JavaPhoenixClient/issues'
5948
vcsUrl = 'https://github.com/dsrees/JavaPhoenixClient.git'
6049
licenses = ['MIT']
50+
version {
51+
name = project.version
52+
vcsTag = project.version
53+
}
6154
}
62-
publications = ['JavaPhoenixClientJar']
55+
publications = ['nebula']
6356
}
64-
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
55
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
6-
./gradlew build
6+
./gradlew bintrayUpload --stacktrace
77
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
88
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
99
./gradlew build
@@ -13,4 +13,4 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
1313
else
1414
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
1515
./gradlew build
16-
fi
16+
fi

0 commit comments

Comments
 (0)