Skip to content

Commit 859b6dc

Browse files
author
Gerald Unterrainer
committed
initial commit
1 parent 4b8eeb2 commit 859b6dc

File tree

13 files changed

+488
-0
lines changed

13 files changed

+488
-0
lines changed

.classpath

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10+
<attributes>
11+
<attribute name="maven.pomderived" value="true"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15+
<attributes>
16+
<attribute name="optional" value="true"/>
17+
<attribute name="maven.pomderived" value="true"/>
18+
<attribute name="test" value="true"/>
19+
</attributes>
20+
</classpathentry>
21+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
22+
<attributes>
23+
<attribute name="maven.pomderived" value="true"/>
24+
<attribute name="test" value="true"/>
25+
</attributes>
26+
</classpathentry>
27+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-13">
28+
<attributes>
29+
<attribute name="maven.pomderived" value="true"/>
30+
</attributes>
31+
</classpathentry>
32+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
33+
<attributes>
34+
<attribute name="maven.pomderived" value="true"/>
35+
</attributes>
36+
</classpathentry>
37+
<classpathentry kind="output" path="target/classes"/>
38+
</classpath>

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
/target/
25+
26+
src/main/java/info/unterrainer/commons/jreutils/Information.java
27+
28+
.settings/

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>rest-client</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

.travis.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
########################
2+
### VARIABLES NEEDED ###
3+
########################
4+
# RELEASE Set to true to release a ZIP-file on github (there has to be a
5+
# target/ directory for that)
6+
#
7+
### Deploy
8+
# GITHUB_API_KEY The api-key of github used to push a release-file
9+
# GPG_EXECUTABLE should be 'gpg2'
10+
# GPG_OWNERTRUST The 'ownertrust' export from the key-file used to sign (base64 encoded)
11+
# GPG_SECRET_KEYS The 'secret-key' export from the key-file used to sign (base64 encoded)
12+
# GPG_PASSPHRASE The passphrase used when generating the GPG-key you're now importing
13+
# MAVEN_CENTRAL 'true' if you want to deploy to maven-central; 'false' or undefined if not
14+
# SONATYPE_PASSWORD The password of your sonatype-account used to push to maven-central
15+
# SONATYPE_USERNAME The userName of your sonatype-account used to push to maven-central
16+
#
17+
####################
18+
### GENERAL INFO ###
19+
####################
20+
# - The 'deploy' step in Travis isn't the same process as the rest. So you have to re-source
21+
# the functions into that process. More than that it isn't a full sh process like with the
22+
# script-phase. So you cannot even source from there directly. That's why the source
23+
# command is IN the deploy.sh script.
24+
25+
language: java
26+
jdk:
27+
- openjdk14
28+
before_install:
29+
- git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
30+
- source travis/functions.Java.sh
31+
- tr_setProjectSubdir Java
32+
- source $TRAVIS/before_install.sh
33+
install:
34+
- source $TRAVIS/install.sh
35+
before_script:
36+
- source $TRAVIS/before_script.sh
37+
script:
38+
- source $TRAVIS/script.sh
39+
40+
before_deploy: ./$TRAVIS/before_deploy.sh
41+
deploy:
42+
- provider: script
43+
skip_cleanup: true
44+
script: ./$TRAVIS/deploy.sh
45+
on:
46+
branch: master
47+
- provider: releases
48+
skip_cleanup: true
49+
overwrite: true
50+
api_key: $GITHUB_API_KEY
51+
file: $ARTIFACT_ID.$POM_VERSION.zip
52+
on:
53+
tags: true
54+
branch: master

Information.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package @package@;
2+
3+
public class Information {
4+
public static final String name = "@name@";
5+
public static final String buildTime = "@buildTime@";
6+
public static final String pomVersion = "@pomVersion@";
7+
}

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<parent>
6+
<groupId>info.unterrainer.commons</groupId>
7+
<artifactId>parent-pom</artifactId>
8+
<version>0.1.19</version>
9+
</parent>
10+
11+
<modelVersion>4.0.0</modelVersion>
12+
<artifactId>rest-client</artifactId>
13+
<version>0.0.1</version>
14+
<name>RestClient</name>
15+
<packaging>jar</packaging>
16+
17+
<properties>
18+
<mainclass>info.unterrainer.commons.restclient.RestClient</mainclass>
19+
<name>REST-Client</name>
20+
<package-path>info/unterrainer/commons/restclient</package-path>
21+
<packg-string>info.unterrainer.commons.restclient</packg-string>
22+
</properties>
23+
24+
<dependencies>
25+
<dependency>
26+
<groupId>info.unterrainer.commons</groupId>
27+
<artifactId>serialization</artifactId>
28+
<version>0.1.3</version>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.squareup.okhttp3</groupId>
32+
<artifactId>okhttp</artifactId>
33+
<version>3.14.9</version>
34+
</dependency>
35+
</dependencies>
36+
</project>

0 commit comments

Comments
 (0)