Skip to content

Commit

Permalink
added bintray repo upload
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Dec 1, 2016
1 parent 9df762e commit fd34d49
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 24 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ env:
- secure: "O0xTkW+WBNWT0a44u7XRpm0vp0q04ZFv/ovmPX6nm3fRokuiHMoRaL1l7r1K\nLF9ow3n+Ncsl64XRJNv2rjKVrxb19GtZQjxnHqi6bW2FSnoTEJsfvIjgMOwh\nrOHL9MUP61idRqN15ki0qYsmZ8t3xN9rw04fJLGZn73Oy0uRSGI="
- secure: "C5j0sZWXhfOoaVYyylyM7aJsjUSBbiIkW2GpAhODIrp/E5l297TymomFOCOTZSL1xF5V4RYt6jc7db+Qri5ryeHd0IIYMNWqcmni4rChtKp4b2F4qh+eqwre8RW5hONOcByZTQDvo+m3SCTuoTWcIM/UIhQIGovSPtYmqjQlSwI="
- secure: "fpuaeSvHiDRtUGHRuCkaZOglaE8IujaCXjSShYP78kxaZUOkHCY6meGmk2YRB6nKTs80lpiQCGFOmtcdEOsCRt2kQXuzJR6NkcG8JEYbdD36G0zR/GpeZ38o3lZqd7Xy1FEGwTgMi0Wy699ZvSoBP1xtGz8A7f8G9ROV7E81gdw="
- secure: "bxZ+/YMNG5guSA4R62wsIODwvslnqh4YwzaZjCuSO8FsXzEFkRLbZlgNTJYthcKEOZK0Oq+7d0nr0Dh2hKSgOx/FM2nCNzL3kMc/D4gAi54OET8wOv21PgiZQomPlZd5v62uTdw8XDrSzdEG8tzjrA21GDGNFF+Uuz3KPfoQfc0="
- secure: "KdWNLW5VYhvGUMIB0Q4OwPfPAFLhVNi9hLRw2ZapBq245iVf7ayMXZznyOpSYgOjuXRqx/24ww+LSBFGM/rFetIiP2mA1A4RpxYpyRzJmfhxz3e4Rj71bE1JrLynY/MLIuH4NERMRdH1kZjQaY+IFkXqas5C+FD8Msj0owzlwLE="



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

script:
- gradle -Pversion=$JAVAREPL_BUILD_NUMBER clean check shadowJar
- gradle -Pversion=$JAVAREPL_BUILD_NUMBER clean check shadowJar bintrayUpload

deploy:
provider: releases
Expand Down
49 changes: 43 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,53 @@
plugins {
id "com.github.johnrengelman.shadow" version "1.2.4"
id "com.jfrog.bintray" version "1.7"
}

apply plugin: 'java'
apply plugin: 'maven-publish'


def projectVersion = version

repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2" }
maven { url "http://repo.bodar.com" }
}

publishing {
repositories {
jcenter()
}
publications {
shadow(MavenPublication) {
groupId 'org.javarepl'
artifactId 'javarepl'
from components.shadow
}
}
}

bintray {
user = System.getenv("BINTRAY_USERNAME")
key = System.getenv("BINTRAY_API_KEY")
publications = ['shadow']
publish = true

pkg {
repo = 'maven'
name = 'javarepl'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/albertlatacz/java-repl.git'

version {
name = projectVersion
desc = 'Auto-releasing Java REPL v.' + projectVersion +'!'
vcsTag = projectVersion
}
}
}

sourceSets {
main {
java {
Expand All @@ -25,12 +68,6 @@ sourceSets {
}


repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2" }
maven { url "http://repo.bodar.com" }
}

shadowJar {
baseName = "javarepl"
classifier = null
Expand Down
17 changes: 0 additions & 17 deletions src/javarepl/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,24 +184,7 @@ private jline.console.completer.Completer clientCompleter() {

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

0 comments on commit fd34d49

Please sign in to comment.