From 4067ebb188b4f7cda5dd73f92fab5880afa94336 Mon Sep 17 00:00:00 2001 From: albertlatacz Date: Fri, 2 Dec 2016 11:48:36 +0000 Subject: [PATCH] basename set for source and javadoc jars --- build.gradle | 2 ++ src/javarepl/Main.java | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index eaf61a5..885cf60 100644 --- a/build.gradle +++ b/build.gradle @@ -16,10 +16,12 @@ repositories { task javadocJar(type: Jar, dependsOn: shadowJar) { + baseName "javarepl" from javadoc } task sourceJar(type: Jar, dependsOn: shadowJar) { + baseName "javarepl" from sourceSets.main.allSource } diff --git a/src/javarepl/Main.java b/src/javarepl/Main.java index 23bc88f..279306c 100644 --- a/src/javarepl/Main.java +++ b/src/javarepl/Main.java @@ -229,12 +229,7 @@ public static void setBuffer(final ConsoleReader reader, final CharSequence valu reader.setCursorPosition(offset + value.length()); } - /** - * Print out the candidates. If the size of the candidates is greater than the - * {@link ConsoleReader#getAutoprintThreshold}, they prompt with a warning. - * - * @param candidates the list of candidates to print - */ + public static void printCandidates(final ConsoleReader reader, Collection candidates) throws IOException { Set distinct = new HashSet(candidates);