Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh fork #1

Merged
merged 325 commits into from
Jan 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
0238de7
Resize
chetanmeh Sep 18, 2019
f325c42
Merge pull request #26 from chetanmeh/screenshot
ekoutanov Sep 18, 2019
e78736d
Merge pull request #1 from obsidiandynamics/master
ekoutanov Sep 19, 2019
ce3f06d
Minimal build on pull request
ekoutanov Sep 20, 2019
fb6112c
Merge pull request #27 from ekoutanov/master
ekoutanov Sep 20, 2019
b8032f3
Support for extra configuration properties
ekoutanov Sep 21, 2019
9b5ae85
Canonical location of kafka.properties and kafka.truststore.jks
ekoutanov Sep 23, 2019
b07a84d
Docker: can supply the properties and key/truststore via environment …
ekoutanov Sep 23, 2019
c8c3816
Merge branch 'master' into bootstrap
kchibui Sep 23, 2019
c3670af
Improved getLatest records.
kchibui Sep 23, 2019
ccfcead
Fixed bug when requested offset is before first offset.
kchibui Sep 23, 2019
75580b8
Added back link to consumer group.
kchibui Sep 23, 2019
67782e6
Fix for single-message case
kchibui Sep 23, 2019
974b4ab
Failsafe handling of GroupAuthorizationException
Sep 24, 2019
4239c83
Clarifying the changing of server port
ekoutanov Sep 24, 2019
97d0609
Null-safe deserialization of record values
ekoutanov Sep 24, 2019
aba212c
Merge branch 'master' into sasl-ssl
ekoutanov Sep 24, 2019
1285621
Merge branch 'sasl-ssl' of https://github.com/obsidiandynamics/kafdro…
ekoutanov Sep 24, 2019
ec3f824
Merge branch 'master' into bootstrap
ekoutanov Sep 24, 2019
cd66e71
Merge pull request #29 from obsidiandynamics/bootstrap
ekoutanov Sep 24, 2019
8c9f3ff
Release 3.8.2
ekoutanov Sep 24, 2019
b2e4438
Next snapshot
ekoutanov Sep 24, 2019
1197bc7
Merge branch 'master' into sasl-ssl
ekoutanov Sep 25, 2019
14d3a89
Fix: shortcut to topics having more than 100 messages
ekoutanov Sep 25, 2019
fc5b8f2
Updated Helm chart
ekoutanov Sep 25, 2019
570de3e
Updated documentation for SASL and SSL connectivity
ekoutanov Sep 26, 2019
8a22271
Merge pull request #30 from obsidiandynamics/sasl-ssl
ekoutanov Sep 26, 2019
b97caa7
Release 3.9.0
ekoutanov Sep 26, 2019
2c6ff91
Next snapshot
ekoutanov Sep 26, 2019
8b349d3
Fixed doc [skip ci]
ekoutanov Sep 26, 2019
391b010
Deprecation warning
ekoutanov Sep 26, 2019
cd28e74
Cleanup
ekoutanov Sep 26, 2019
1377f84
Showing offline replicas
ekoutanov Sep 27, 2019
b258639
Sourcing broker info using the Kafka admin client
ekoutanov Sep 27, 2019
e75d076
Removed ZooKeeper and Curator dependencies
ekoutanov Sep 27, 2019
b83ac74
Updated overview image
ekoutanov Sep 27, 2019
ffce444
Updated README and Helm chart
ekoutanov Sep 27, 2019
f609f2e
Removed ZooKeeper configuration
ekoutanov Sep 27, 2019
fc2e33a
Merge pull request #32 from obsidiandynamics/remove-zk
ekoutanov Sep 27, 2019
f3a602d
Release 3.10.0
ekoutanov Sep 27, 2019
2763bde
Next snapshot
ekoutanov Sep 27, 2019
0d72398
Scaled down the image
ekoutanov Sep 27, 2019
5966560
Scaled down the image
ekoutanov Sep 27, 2019
9bf878e
Updated example
ekoutanov Sep 30, 2019
2a22efe
Added GitHub link to header
ekoutanov Sep 30, 2019
a09d862
Release 3.11.0
ekoutanov Sep 30, 2019
1725e1b
Next snapshot
ekoutanov Sep 30, 2019
f1c6d4f
Removed unreferenced icon
ekoutanov Sep 30, 2019
d8b7c6e
Async javascript loading
ekoutanov Sep 30, 2019
ae53a92
Release 3.11.1
ekoutanov Sep 30, 2019
fd102a1
Next snapshot
ekoutanov Sep 30, 2019
2f2ba1d
Updated README
ekoutanov Oct 1, 2019
4242936
Fixed #34: Showing custom configs
ekoutanov Oct 2, 2019
6ff7b4a
Release 3.11.2
ekoutanov Oct 2, 2019
ed84322
Next snapshot
ekoutanov Oct 2, 2019
4e0f9b7
Cleaned up logs
ekoutanov Oct 2, 2019
d079bd2
Cleaned up logs
ekoutanov Oct 2, 2019
f1a104d
Release 3.11.3
ekoutanov Oct 2, 2019
af61001
Next snapshot
ekoutanov Oct 2, 2019
24f0511
Removed extraneous freemarker appender
ekoutanov Oct 2, 2019
6bc6629
Updated .gitignore
ekoutanov Oct 3, 2019
c2daec4
Fixed alignment of headings in screens
ekoutanov Oct 9, 2019
cf77b26
Added Kafdrop logo to header line
ekoutanov Oct 9, 2019
b7c4d24
Darkened border in title header
ekoutanov Oct 9, 2019
bff6e1d
Dark schemed filter text input
ekoutanov Oct 9, 2019
ca0447c
Fixed absolute URL
ekoutanov Oct 9, 2019
4e35027
Printing of version number and build time on the cluster overview
ekoutanov Oct 9, 2019
4d2a4e2
Release 3.12.0
ekoutanov Oct 9, 2019
7b1f966
Next snapshot
ekoutanov Oct 9, 2019
4d3debe
Fixed alignment in consumer view
ekoutanov Oct 9, 2019
2bf5c12
Release 3.12.1
ekoutanov Oct 9, 2019
8acb1c8
Next snapshot
ekoutanov Oct 9, 2019
4aa372a
Replaced whitelabel error page with a custom one
ekoutanov Oct 10, 2019
839ab09
Release 3.13.0
ekoutanov Oct 10, 2019
291ed42
Next snapshot
ekoutanov Oct 10, 2019
578a952
feat(core): file location as parameters
ADefossez-Zenika Oct 14, 2019
eedc729
feat(docker): Allow Heap to be customize at runtime
ADefossez-Zenika Oct 14, 2019
03b8847
Revert "feat(docker): Allow Heap to be customize at runtime"
ADefossez-Zenika Oct 14, 2019
866af39
fix(doc)
ADefossez-Zenika Oct 15, 2019
8c58d2f
fix(conf)
ADefossez-Zenika Oct 15, 2019
c83c206
Merge pull request #39 from ADefossez-Zenika/master
ekoutanov Oct 15, 2019
9790bc7
Cleaned up documentation
ekoutanov Oct 15, 2019
e5dc1fe
Merge pull request #1 from obsidiandynamics/master
ADefossez-Zenika Oct 15, 2019
efc8a49
Fixed file locations
ekoutanov Oct 17, 2019
de1f076
Updated README
ekoutanov Oct 17, 2019
e443004
Grammar fix
ekoutanov Oct 22, 2019
c2fce1c
Removed link
ekoutanov Oct 22, 2019
025e292
Merge remote-tracking branch 'upstream/master'
ADefossez-Zenika Oct 22, 2019
c968267
feat(helm): add helm chart configuration
ADefossez-Zenika Oct 25, 2019
e827741
code review
ADefossez-Zenika Oct 28, 2019
4b4a8b7
feat(helm) add default values
ADefossez-Zenika Oct 29, 2019
1deca86
feat(conf) variabilize server port
ADefossez-Zenika Oct 29, 2019
226759f
fix(code review) remove conditionnal blocks
ADefossez-Zenika Oct 29, 2019
5c7f1a0
Merge pull request #43 from ADefossez-Zenika/master
ekoutanov Oct 29, 2019
2791bcc
Printing ACLs on TopicAuthorizationException
ekoutanov Oct 29, 2019
bee214e
Added -noverify [skip ci]
ekoutanov Oct 30, 2019
13f2bae
Release 3.14.0
ekoutanov Oct 30, 2019
c2c88e9
Next snapshot
ekoutanov Oct 30, 2019
7eb9e7e
create api for topic creation
nsteps Nov 3, 2019
8ea9841
add simple layout to create topic
nsteps Nov 3, 2019
1a53c30
remove timeout option for topic creation
nsteps Nov 4, 2019
ec8d7da
Added Twitter badge
ekoutanov Nov 6, 2019
f4709dc
Added price:free badge
ekoutanov Nov 6, 2019
e884b38
Added star/twitter CTA
ekoutanov Nov 6, 2019
4f026c6
Minor layout changes [skip ci]
ekoutanov Nov 6, 2019
7c12c43
Added contributing guidelines [skip ci]
ekoutanov Nov 6, 2019
b933452
Minor layout changes [skip ci]
ekoutanov Nov 6, 2019
98b3757
Minor change [skip ci]
ekoutanov Nov 11, 2019
9ec56d7
Updated Kafka -> 2.3.1
ekoutanov Nov 11, 2019
a0678b1
Updated Avro serializer to 5.2.2 and Avro to 1.9.1
ekoutanov Nov 11, 2019
7584493
Removed unused package
ekoutanov Nov 11, 2019
c4f73a4
Fix probes when server.servlet.contextPath is set
dkirrane Nov 8, 2019
2381ff7
Merge pull request #47 from dkirrane/master
ekoutanov Nov 12, 2019
3746bc6
Release 3.15.0
ekoutanov Nov 12, 2019
c9ac581
Next snapshot
ekoutanov Nov 12, 2019
8f68b48
move topic form to new page
nsteps Nov 13, 2019
15d8fe6
add validation logic
nsteps Nov 13, 2019
0041ff8
fixed typo
nsteps Nov 15, 2019
f00e349
Merge pull request #45 from StepanovNickolay/add-topic-feature
ekoutanov Nov 15, 2019
1c0f0ef
Minor stylistic improvements
ekoutanov Nov 19, 2019
5f9cbcf
Release 3.16.0
ekoutanov Nov 19, 2019
0cff0c7
Next snapshot
ekoutanov Nov 19, 2019
fc89c85
Adding ACL table on Cluster view
jcoquerygithub Nov 20, 2019
320f5ee
Adding ACL view
jcoquerygithub Nov 21, 2019
6524cd9
Merge pull request #48 from jcoquerygithub/master
ekoutanov Nov 22, 2019
8027133
Fix: handling of scenario where no authorizer is configured
ekoutanov Nov 25, 2019
6ab9ec2
Updated README with features
ekoutanov Nov 25, 2019
c92e392
add api endpoint /topic/{topic-name}/consumers for get consumers for …
shaaimin Nov 26, 2019
0e023ef
Release 3.17.0
ekoutanov Nov 26, 2019
e16b97a
Next snapshot
ekoutanov Nov 26, 2019
a00364a
Merge pull request #49 from shaaimin/master
ekoutanov Nov 26, 2019
249b844
Correction of getAcls not returning all acls
jcoquerygithub Nov 29, 2019
b429adc
Merge pull request #51 from jcoquerygithub/master
ekoutanov Nov 29, 2019
b005e2b
Release 3.18.0
ekoutanov Dec 2, 2019
9be7851
Next version
ekoutanov Dec 2, 2019
4bf96a6
Stopped fetching GitHub star count. Fixes #52
ekoutanov Dec 5, 2019
6437fd3
Release 3.18.1
ekoutanov Dec 5, 2019
23479b1
Next snapshot
ekoutanov Dec 5, 2019
e96bc44
Update Requirements in README.md
zihengCat Dec 6, 2019
4ec5bd8
Remove superfluous lines
zihengCat Dec 6, 2019
48e0de7
Merge pull request #54 from zihengCat/ziheng_dev
ekoutanov Dec 6, 2019
85a5084
Added "format" parameter to getPartitionOrMessages for handling deser…
mirg Dec 12, 2019
c4491c4
Adding search filter on ACL page
jcoquerymaif Dec 18, 2019
41eacf7
Merge pull request #58 from MAIF/master
ekoutanov Dec 19, 2019
e33d2b9
Merge pull request #57 from mirg/master
ekoutanov Dec 19, 2019
3f4b525
Release 3.19.0
ekoutanov Dec 19, 2019
69de134
Next snapshot
ekoutanov Dec 19, 2019
df227dd
Added support for Protobuf message type
Dec 25, 2019
4e44ca1
update readme with protobuf folder information
Dec 25, 2019
47cac6e
Show and hide protobuf specific option according to format selection.
Dec 25, 2019
81b8795
Fix issue when using without a protobuf desc folder configured.
Dec 25, 2019
1a90e08
ensure input stream get proper closed after use.
Dec 25, 2019
9aeee94
Added filter to input descriptor name for security reason.
Dec 26, 2019
5fd9f64
default to collapse mode for protobuf message type.
Dec 26, 2019
d433588
Added section for protobuf message type.
Jan 6, 2020
ba0b3f1
Reformat using project standard, propagate runtime exception to caller
Jan 6, 2020
767196c
Reformat using project's standard
Jan 6, 2020
e94c86c
New runtime exception for deserialization error.
Jan 6, 2020
b576ee4
Merge pull request #62 from ctrongduc/protobuf_topic_support
ekoutanov Jan 6, 2020
59d054e
Added client.id config
ekoutanov Jan 15, 2020
aedca98
Release 3.20.0
ekoutanov Jan 15, 2020
c79a4a0
Next snapshot
ekoutanov Jan 15, 2020
6d9e5b6
Basic auth for schema registry. Closes #67
ekoutanov Jan 15, 2020
0feb159
Pass on command line arguments to docker
Jan 16, 2020
6652739
Pass on command line arguments to docker.
Jan 16, 2020
ac16dbd
Catch and handle UnsupportedVersionException in describeTopicConfigs …
conorr Jan 16, 2020
fea4cfc
Remove extra env var value
Jan 17, 2020
1522335
Merge pull request #70 from dominics/bug/helm-context-path-duplicate-…
ekoutanov Jan 20, 2020
941dbfa
Merge pull request #68 from jaihind213/master
ekoutanov Jan 20, 2020
07202bb
Return an immutable map
conorr Jan 22, 2020
2b10841
Release 3.21.0
ekoutanov Jan 23, 2020
39b03e5
Next snapshot
ekoutanov Jan 23, 2020
c7b1573
Merge pull request #69 from conorr/describe_configs_unsupported
ekoutanov Jan 23, 2020
89cb977
Update pom.xml
TuncTaylan Jan 28, 2020
e5f2577
Update kafdrop.sh
TuncTaylan Jan 28, 2020
048f3af
Merge pull request #74 from TuncTaylan/patch-2
ekoutanov Jan 28, 2020
c30cf37
Merge pull request #73 from TuncTaylan/patch-1
ekoutanov Jan 28, 2020
c1bf994
Using https for Confluent repo
ekoutanov Jan 30, 2020
db02d38
Release 3.22.0
ekoutanov Jan 30, 2020
70d2c08
Next release
ekoutanov Jan 30, 2020
461567b
Make nodeport optional
luong-komorebi Jan 30, 2020
3220c2c
Merge pull request #75 from luong-komorebi/fix_nodeport
ekoutanov Jan 30, 2020
ea80eba
Released 3.32.0
ekoutanov Feb 4, 2020
c034206
Next snapshot
ekoutanov Feb 4, 2020
f2a4f50
Add cmdArgs as an option for helm chart
Pritesh-Patel Feb 5, 2020
3f6a1b2
Merge pull request #79 from Pritesh-Patel/master
ekoutanov Feb 7, 2020
c4ca40c
Provide type registies for protobuf json format
Feb 7, 2020
b8fc74b
Merge pull request #81 from AndreiIvanitckii/master
ekoutanov Feb 8, 2020
19674c4
fix for base64 decode failures
ritxos Feb 13, 2020
2b27ffc
Merge pull request #82 from ritxos/patch-1
ekoutanov Feb 13, 2020
e367028
update README to have SCHEMAREGISTRY_CONNECT
SpeedEX Feb 18, 2020
fd737b2
Merge pull request #83 from SpeedEX/schema-registry-readme
ekoutanov Feb 18, 2020
28335f3
Copes with transaction markers. Cloes #64
ekoutanov Mar 9, 2020
84db3ea
Search type descriptor in all proto files
Mar 10, 2020
d91be16
Merge pull request #92 from AndreiIvanitckii/search-type-descriptor-i…
ekoutanov Mar 10, 2020
83b57ae
Release 3.24.0
ekoutanov Mar 14, 2020
87d9971
Added annotations field
adityajalkhare Mar 16, 2020
174e9b0
Added annotations field
adityajalkhare Mar 16, 2020
e928756
Merge pull request #94 from adityajalkhare/master
ekoutanov Mar 16, 2020
8e6a86f
Update README.md
patricklucas Mar 30, 2020
f438caa
Update getTopicInfos to only fetch existing topics
IndeedSi Mar 31, 2020
735b602
Add button to delete a topic
stijnvanbever Apr 16, 2020
84c01e8
Initial changes to support avro in keys
nicklester Apr 16, 2020
3d04aed
Merge branch 'master' of https://github.com/nicklester/kafdrop
nicklester Apr 17, 2020
3d4f8fe
Add feature to delete a topic
stijnvanbever Apr 17, 2020
634d364
Remove unused imports
stijnvanbever Apr 17, 2020
60317df
Merge pull request #101 from IndeedSi/master
ekoutanov Apr 17, 2020
e404179
Merge pull request #99 from patricklucas/patch-1
ekoutanov Apr 17, 2020
1ab0660
Fixed java doc errors highlighted by lgtm.com
nicklester Apr 18, 2020
bc33ac3
Merge pull request #108 from stijnvanbever/feature/GH-86
ekoutanov Apr 22, 2020
d3fbbdb
Resolved PR comments
nicklester Apr 23, 2020
b405c46
Merge pull request #107 from nicklester/master
ekoutanov Apr 23, 2020
df7fc10
prevent the user from submitting the view message form if no protobuf…
Apr 25, 2020
56208d1
Merge pull request #113 from aaronwolmutt/hotfix
ekoutanov Apr 25, 2020
da5e777
Release 2.35.0
ekoutanov Apr 29, 2020
750cbb1
Next snapshot
ekoutanov Apr 29, 2020
575643c
Re-released 3.25.0
ekoutanov Apr 29, 2020
efb1f26
Next snapshot
ekoutanov Apr 29, 2020
fb6f019
set protobuf form fields to required when protobuf message type is se…
May 6, 2020
9c161bd
Merge pull request #121 from aaronwolmutt/hotfix
ekoutanov May 6, 2020
32089c3
Release 3.25.1
ekoutanov May 6, 2020
a6b44e3
Next snapshot
ekoutanov May 6, 2020
2316586
Bumping api version for Deployment as
May 19, 2020
4941762
Merge pull request #128 from louisledev/feature/bumping-deployment-ap…
ekoutanov May 22, 2020
94be471
Fix issue in display fix#122
gschaeffer-amadeus May 22, 2020
7454a49
Merge pull request #132 from g-schaeffer/master
kchibui May 30, 2020
e37b011
Configure topic deletion with --topic.deleteEnabled
kchibui May 30, 2020
3df1db0
Merge pull request #136 from obsidiandynamics/delete-btn
kchibui May 30, 2020
286bf82
Support message headers with null values
jchipmunk Jun 2, 2020
2c5cb3f
Merge pull request #139 from jchipmunk/bugfix/support_message_headers…
ekoutanov Jun 4, 2020
d693864
Updated the paths for .js and .css to not be absolute paths so that t…
FrozenInc Jun 8, 2020
48a4df2
Configure topic creation with --topic.createEnabled
Jun 11, 2020
036510b
--topic.createEnabled flag is also checked in the controller code
Jun 11, 2020
652f5b2
Merge pull request #148 from ohjongsung/new-btn
ekoutanov Jun 11, 2020
6d68882
add missing default key in values
jonathan-mothership Jun 12, 2020
4bf2e2a
consistency with how the mountProtoDesc is used
jonathan-mothership Jun 12, 2020
3c3521b
Merge pull request #149 from mothership/fix-lint
ekoutanov Jun 13, 2020
b9b45e4
Merge pull request #146 from FrozenInc/master
ekoutanov Jun 13, 2020
25a43d1
Revert "Updated the paths for .js and .css to not be absolute paths s…
ekoutanov Jun 16, 2020
62662c6
Release 3.27.0
ekoutanov Jun 21, 2020
deaa4f6
Next snapshot
ekoutanov Jun 21, 2020
5e249a4
add test containers
nsteps Jul 10, 2020
2ab6cab
fix(README): adjust run from docker
RafaelGSS Jul 21, 2020
68d5258
Fix typo in KAFKA_BROKERCONNECT port
walkerrandolphsmith Aug 3, 2020
c364258
Add MessagePack Support
VarunWachaspati Aug 5, 2020
bcd521d
Merge pull request #160 from nsteps/test-containres-feature
ekoutanov Aug 8, 2020
242911d
Merge pull request #168 from RafaelGSS/patch-1
ekoutanov Aug 8, 2020
e8491b6
Merge pull request #172 from VarunWachaspati/msgpack_support
ekoutanov Aug 8, 2020
42c5698
Merge pull request #170 from walkerrandolphsmith/master
ekoutanov Aug 24, 2020
a62c331
Reverted port change
ekoutanov Aug 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ target
.factorypath
.vscode
.env
settings.xml
settings.xml

kafka.properties*
kafka.truststore.jks*
kafka.keystore.jks*
117 changes: 117 additions & 0 deletions .mvn/wrapper/MavenWrapperDownloader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;

public class MavenWrapperDownloader {

private static final String WRAPPER_VERSION = "0.5.5";
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";

/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";

/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";

/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";

public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());

// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: " + url);

File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}

private static void downloadFileFromURL(String urlString, File destination) throws Exception {
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
String username = System.getenv("MVNW_USERNAME");
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
}
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}

}
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ services:
jdk:
- openjdk11

cache:
directories:
- $HOME/.m2

branches:
only:
- master
Expand Down
Loading