Skip to content

Commit fd34d49

Browse files
committed
added bintray repo upload
1 parent 9df762e commit fd34d49

File tree

3 files changed

+46
-24
lines changed

3 files changed

+46
-24
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ env:
99
- secure: "O0xTkW+WBNWT0a44u7XRpm0vp0q04ZFv/ovmPX6nm3fRokuiHMoRaL1l7r1K\nLF9ow3n+Ncsl64XRJNv2rjKVrxb19GtZQjxnHqi6bW2FSnoTEJsfvIjgMOwh\nrOHL9MUP61idRqN15ki0qYsmZ8t3xN9rw04fJLGZn73Oy0uRSGI="
1010
- secure: "C5j0sZWXhfOoaVYyylyM7aJsjUSBbiIkW2GpAhODIrp/E5l297TymomFOCOTZSL1xF5V4RYt6jc7db+Qri5ryeHd0IIYMNWqcmni4rChtKp4b2F4qh+eqwre8RW5hONOcByZTQDvo+m3SCTuoTWcIM/UIhQIGovSPtYmqjQlSwI="
1111
- secure: "fpuaeSvHiDRtUGHRuCkaZOglaE8IujaCXjSShYP78kxaZUOkHCY6meGmk2YRB6nKTs80lpiQCGFOmtcdEOsCRt2kQXuzJR6NkcG8JEYbdD36G0zR/GpeZ38o3lZqd7Xy1FEGwTgMi0Wy699ZvSoBP1xtGz8A7f8G9ROV7E81gdw="
12+
- secure: "bxZ+/YMNG5guSA4R62wsIODwvslnqh4YwzaZjCuSO8FsXzEFkRLbZlgNTJYthcKEOZK0Oq+7d0nr0Dh2hKSgOx/FM2nCNzL3kMc/D4gAi54OET8wOv21PgiZQomPlZd5v62uTdw8XDrSzdEG8tzjrA21GDGNFF+Uuz3KPfoQfc0="
13+
- secure: "KdWNLW5VYhvGUMIB0Q4OwPfPAFLhVNi9hLRw2ZapBq245iVf7ayMXZznyOpSYgOjuXRqx/24ww+LSBFGM/rFetIiP2mA1A4RpxYpyRzJmfhxz3e4Rj71bE1JrLynY/MLIuH4NERMRdH1kZjQaY+IFkXqas5C+FD8Msj0owzlwLE="
1214

1315

1416

@@ -26,7 +28,7 @@ install:
2628
- export PATH=$PATH:$HOME/.local/bin
2729

2830
script:
29-
- gradle -Pversion=$JAVAREPL_BUILD_NUMBER clean check shadowJar
31+
- gradle -Pversion=$JAVAREPL_BUILD_NUMBER clean check shadowJar bintrayUpload
3032

3133
deploy:
3234
provider: releases

build.gradle

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,53 @@
11
plugins {
22
id "com.github.johnrengelman.shadow" version "1.2.4"
3+
id "com.jfrog.bintray" version "1.7"
34
}
45

56
apply plugin: 'java'
7+
apply plugin: 'maven-publish'
68

79

10+
def projectVersion = version
11+
12+
repositories {
13+
mavenCentral()
14+
maven { url "https://plugins.gradle.org/m2" }
15+
maven { url "http://repo.bodar.com" }
16+
}
17+
18+
publishing {
19+
repositories {
20+
jcenter()
21+
}
22+
publications {
23+
shadow(MavenPublication) {
24+
groupId 'org.javarepl'
25+
artifactId 'javarepl'
26+
from components.shadow
27+
}
28+
}
29+
}
30+
31+
bintray {
32+
user = System.getenv("BINTRAY_USERNAME")
33+
key = System.getenv("BINTRAY_API_KEY")
34+
publications = ['shadow']
35+
publish = true
36+
37+
pkg {
38+
repo = 'maven'
39+
name = 'javarepl'
40+
licenses = ['Apache-2.0']
41+
vcsUrl = 'https://github.com/albertlatacz/java-repl.git'
42+
43+
version {
44+
name = projectVersion
45+
desc = 'Auto-releasing Java REPL v.' + projectVersion +'!'
46+
vcsTag = projectVersion
47+
}
48+
}
49+
}
50+
851
sourceSets {
952
main {
1053
java {
@@ -25,12 +68,6 @@ sourceSets {
2568
}
2669

2770

28-
repositories {
29-
mavenCentral()
30-
maven { url "https://plugins.gradle.org/m2" }
31-
maven { url "http://repo.bodar.com" }
32-
}
33-
3471
shadowJar {
3572
baseName = "javarepl"
3673
classifier = null

src/javarepl/Main.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -184,24 +184,7 @@ private jline.console.completer.Completer clientCompleter() {
184184

185185
/**
186186
* Copied from JLine sourcecode and heavily modified
187-
* <p/>
188187
* Original sources: https://raw.github.com/jline/jline2/master/src/main/java/jline/console/completer/CandidateListCompletionHandler.java
189-
* <p/>
190-
* Copyright (c) 2002-2012, the original author or authors.
191-
* <p/>
192-
* This software is distributable under the BSD license. See the terms of the
193-
* BSD license in the documentation provided with this software.
194-
* <p/>
195-
* http://www.opensource.org/licenses/bsd-license.php
196-
* <p/>
197-
* A {@link jline.console.completer.CompletionHandler} that deals with multiple distinct completions
198-
* by outputting the complete list of possibilities to the console. This
199-
* mimics the behavior of the
200-
* <a href="http://www.gnu.org/directory/readline.html">readline</a> library.
201-
*
202-
* @author <a href="mailto:[email protected]">Marc Prud'hommeaux</a>
203-
* @author <a href="mailto:[email protected]">Jason Dillon</a>
204-
* @since 2.3
205188
*/
206189
public static class JlineCompletionHandler implements CompletionHandler {
207190
// TODO: handle quotes and escaped quotes && enable automatic escaping of whitespace

0 commit comments

Comments
 (0)