Skip to content

Commit a307cea

Browse files
committed
initial commit
0 parents  commit a307cea

31 files changed

+858
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/maven.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on: [ push, pull_request ]
7+
8+
jobs:
9+
build:
10+
name: Build for JDK ${{ matrix.java }}
11+
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'zrdj/java-primitives' }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
java: [ 8, 11, 17, 21 ]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/cache@v1
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
22+
restore-keys: |
23+
${{ runner.os }}-maven-
24+
- name: Set up JDK ${{ matrix.java }}
25+
uses: actions/setup-java@v2
26+
with:
27+
java-version: ${{ matrix.java }}
28+
distribution: 'temurin'
29+
cache: maven
30+
- name: Build with Maven
31+
run: mvn -B -U compile test --file pom.xml
32+
env:
33+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}

.gitignore

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Created by https://www.gitignore.io/api/intellij,windows,java,maven
2+
3+
### Intellij ###
4+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
5+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
6+
7+
# User-specific stuff:
8+
.idea/**
9+
.idea/workspace.xml
10+
.idea/tasks.xml
11+
.idea/dictionaries
12+
.idea/vcs.xml
13+
.idea/jsLibraryMappings.xml
14+
15+
# Sensitive or high-churn files:
16+
.idea/dataSources.ids
17+
.idea/dataSources.xml
18+
.idea/dataSources.local.xml
19+
.idea/sqlDataSources.xml
20+
.idea/dynamic.xml
21+
.idea/uiDesigner.xml
22+
23+
# Gradle:
24+
.idea/gradle.xml
25+
.idea/libraries
26+
27+
# Mongo Explorer plugin:
28+
.idea/mongoSettings.xml
29+
30+
## File-based project format:
31+
*.iws
32+
33+
## Plugin-specific files:
34+
35+
# IntelliJ
36+
/out/
37+
38+
# mpeltonen/sbt-idea plugin
39+
.idea_modules/
40+
41+
# JIRA plugin
42+
atlassian-ide-plugin.xml
43+
44+
# Crashlytics plugin (for Android Studio and IntelliJ)
45+
com_crashlytics_export_strings.xml
46+
crashlytics.properties
47+
crashlytics-build.properties
48+
fabric.properties
49+
50+
### Intellij Patch ###
51+
*.iml
52+
53+
54+
### Windows ###
55+
# Windows image file caches
56+
Thumbs.db
57+
ehthumbs.db
58+
59+
# Folder config file
60+
Desktop.ini
61+
62+
# Recycle Bin used on file shares
63+
$RECYCLE.BIN/
64+
65+
# Windows Installer files
66+
*.cab
67+
*.msi
68+
*.msm
69+
*.msp
70+
71+
# Windows shortcuts
72+
*.lnk
73+
74+
75+
### Java ###
76+
*.class
77+
78+
# Mobile Tools for Java (J2ME)
79+
.mtj.tmp/
80+
81+
# Package Files #
82+
*.jar
83+
*.war
84+
*.ear
85+
86+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
87+
hs_err_pid*
88+
89+
### Maven ###
90+
target/
91+
pom.xml.tag
92+
pom.xml.releaseBackup
93+
pom.xml.versionsBackup
94+
pom.xml.next
95+
release.properties
96+
dependency-reduced-pom.xml
97+
buildNumber.properties
98+
.mvn/timing.properties
99+
100+
.DS_Store

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Aleksandar Damjanovic
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[![License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)]()
2+
[![](https://jitpack.io/v/ZrdJ/java-primitives.svg)](https://jitpack.io/#ZrdJ/java-primitives)
3+
![GitHub Workflow Status (branch)](https://github.com/zrdj/java-primitives/actions/workflows/maven.yml/badge.svg)
4+
5+
# java-primitives
6+
7+
collection of extended primitive convenience types
8+
9+
## Maven
10+
11+
Add the Jitpack repository to your build file
12+
13+
```xml
14+
15+
<repositories>
16+
<repository>
17+
<id>jitpack.io</id>
18+
<url>https://jitpack.io</url>
19+
</repository>
20+
</repositories>
21+
```
22+
23+
Release artifact
24+
25+
```xml
26+
27+
<dependency>
28+
<groupId>com.github.zrdj</groupId>
29+
<artifactId>java-primitives</artifactId>
30+
<version>0.1.0</version>
31+
</dependency>
32+
```
33+
34+
## Motivation
35+
36+
37+
38+

pom.xml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.github.zrdj</groupId>
7+
<artifactId>java-primitives</artifactId>
8+
<version>0.1.0</version>
9+
<packaging>jar</packaging>
10+
11+
<name>java-primitives</name>
12+
<description>collection of predefined primitives for all kind of types</description>
13+
<url>https://github.com/zrdj/java-primitives</url>
14+
<developers>
15+
<developer>
16+
<id>codejanovic</id>
17+
<name>Aleksandar Damjanovic</name>
18+
<email>[email protected]</email>
19+
<roles>
20+
<role>Project-Administrator</role>
21+
<role>Developer</role>
22+
</roles>
23+
</developer>
24+
</developers>
25+
26+
<licenses>
27+
<license>
28+
<name>MIT License</name>
29+
<url>https://opensource.org/licenses/MIT</url>
30+
<distribution>repo</distribution>
31+
</license>
32+
</licenses>
33+
34+
<scm>
35+
<connection>scm:git:git://github.com/zrdj/java-primitives.git</connection>
36+
<developerConnection>scm:git:[email protected]:zrdj/java-primitives.git</developerConnection>
37+
<url>https://github.com/zrdj/java-primitives.git</url>
38+
<tag>HEAD</tag>
39+
</scm>
40+
41+
<properties>
42+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43+
<maven.compiler.source>1.8</maven.compiler.source>
44+
<maven.compiler.target>1.8</maven.compiler.target>
45+
</properties>
46+
47+
<dependencies>
48+
<dependency>
49+
<groupId>junit</groupId>
50+
<artifactId>junit</artifactId>
51+
<version>4.13.2</version>
52+
<scope>test</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.assertj</groupId>
56+
<artifactId>assertj-core</artifactId>
57+
<version>3.25.1</version>
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.jusecase</groupId>
62+
<artifactId>builders</artifactId>
63+
<version>0.3.1</version>
64+
<scope>test</scope>
65+
</dependency>
66+
</dependencies>
67+
68+
<build>
69+
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-compiler-plugin</artifactId>
73+
<version>3.12.1</version>
74+
<configuration>
75+
<source>${maven.compiler.source}</source>
76+
<target>${maven.compiler.target}</target>
77+
</configuration>
78+
</plugin>
79+
<!-- Sources -->
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-source-plugin</artifactId>
83+
<version>3.3.0</version>
84+
<executions>
85+
<execution>
86+
<id>attach-sources</id>
87+
<goals>
88+
<goal>jar-no-fork</goal>
89+
</goals>
90+
</execution>
91+
</executions>
92+
</plugin>
93+
94+
<!-- Javadoc -->
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-javadoc-plugin</artifactId>
98+
<version>3.6.3</version>
99+
<executions>
100+
<execution>
101+
<id>attach-javadocs</id>
102+
<goals>
103+
<goal>jar</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
</plugin>
108+
109+
</plugins>
110+
</build>
111+
</project>

0 commit comments

Comments
 (0)