Skip to content

Commit 96b38e7

Browse files
author
Psilo
committed
initial commit
1 parent 2ecb4e3 commit 96b38e7

File tree

6 files changed

+147
-0
lines changed

6 files changed

+147
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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/parentpom/Information.java

.travis.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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:
51+
secure: $GITHUB_API_KEY
52+
file: $ARTIFACT_ID.$POM_VERSION.zip
53+
on:
54+
tags: true
55+
branch: master

Information.template

+7
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+
}

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# parent-javalin-pom
2+
3+
The parent POM file for our libraries and projects based on [Javalin](https://javalin.io/).
4+
5+
It's based on the [parent-pom project](https://github.com/UnterrainerInformatik/java-parent-pom) available on GitHub as well.
6+
7+
# Usage
8+
9+
Reference it as parent in your POM file.
10+
11+
```java
12+
<parent>
13+
<groupId>info.unterrainer.commons</groupId>
14+
<artifactId>parent-javalin-pom</artifactId>
15+
<version>[current-verison]</version>
16+
</parent>
17+
```

pom.xml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.12</version>
9+
</parent>
10+
11+
<modelVersion>4.0.0</modelVersion>
12+
<groupId>info.unterrainer.commons</groupId>
13+
<artifactId>parent-javalin-pom</artifactId>
14+
<version>0.0.1</version>
15+
<name>ParentJavalinPom</name>
16+
<packaging>pom</packaging>
17+
<url>https://github.com/UnterrainerInformatik/java-parent-javalin-pom</url>
18+
<description>The parent-pom for all our java projects based on Javalin.</description>
19+
20+
<dependencies>
21+
<!-- ALL PROJECTS ############################################### -->
22+
<dependency>
23+
<groupId>io.javalin</groupId>
24+
<artifactId>javalin</artifactId>
25+
<version>3.13.4</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.eclipse.jetty</groupId>
29+
<artifactId>jetty-http</artifactId>
30+
<version>9.4.38.v20210224</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.eclipse.jetty</groupId>
34+
<artifactId>jetty-server</artifactId>
35+
<version>9.4.38.v20210224</version>
36+
</dependency>
37+
<!-- TEST-SCOPE ################################################# -->
38+
39+
</dependencies>
40+
41+
</project>

0 commit comments

Comments
 (0)