Skip to content

Commit a7db809

Browse files
committed
Merge branch 'release/0.0.1'
2 parents 69db6cc + dae91e0 commit a7db809

File tree

24 files changed

+1626
-2
lines changed

24 files changed

+1626
-2
lines changed

.gitignore

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
### NetBeans template
2+
nbproject/private/
3+
build/
4+
nbbuild/
5+
dist/
6+
nbdist/
7+
.nb-gradle/
8+
### Eclipse template
9+
10+
.metadata
11+
bin/
12+
tmp/
13+
*.tmp
14+
*.bak
15+
*.swp
16+
*~.nib
17+
local.properties
18+
.settings/
19+
.loadpath
20+
.recommenders
21+
22+
.DS_Store
23+
.idea/
24+
25+
# External tool builders
26+
.externalToolBuilders/
27+
28+
# Locally stored "Eclipse launch configurations"
29+
*.launch
30+
31+
# PyDev specific (Python IDE for Eclipse)
32+
*.pydevproject
33+
34+
# CDT-specific (C/C++ Development Tooling)
35+
.cproject
36+
37+
# CDT- autotools
38+
.autotools
39+
40+
# Java annotation processor (APT)
41+
.factorypath
42+
43+
# PDT-specific (PHP Development Tools)
44+
.buildpath
45+
46+
# sbteclipse plugin
47+
.target
48+
49+
# Tern plugin
50+
.tern-project
51+
52+
# TeXlipse plugin
53+
.texlipse
54+
55+
# STS (Spring Tool Suite)
56+
.springBeans
57+
58+
# Code Recommenders
59+
.recommenders/
60+
61+
# Scala IDE specific (Scala & Java development for Eclipse)
62+
.cache
63+
.cache-main
64+
.cache-tests
65+
.scala_dependencies
66+
.worksheet
67+
### Java template
68+
# Compiled class file
69+
*.class
70+
71+
# Log file
72+
*.log
73+
74+
# BlueJ files
75+
*.ctxt
76+
77+
# Mobile Tools for Java (J2ME)
78+
.mtj.tmp/
79+
80+
# Package Files #
81+
*.jar
82+
*.war
83+
*.ear
84+
*.zip
85+
*.tar.gz
86+
*.rar
87+
88+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
89+
hs_err_pid*
90+
### JetBrains template
91+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
92+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
93+
94+
# User-specific stuff:
95+
*.iml
96+
.idea/**/workspace.xml
97+
.idea/**/tasks.xml
98+
.idea/dictionaries
99+
100+
# Sensitive or high-churn files:
101+
.idea/**/dataSources/
102+
.idea/**/dataSources.ids
103+
.idea/**/dataSources.xml
104+
.idea/**/dataSources.local.xml
105+
.idea/**/sqlDataSources.xml
106+
.idea/**/dynamic.xml
107+
.idea/**/uiDesigner.xml
108+
109+
# Gradle:
110+
.idea/**/gradle.xml
111+
.idea/**/libraries
112+
113+
# CMake
114+
cmake-build-debug/
115+
cmake-build-release/
116+
117+
# Mongo Explorer plugin:
118+
.idea/**/mongoSettings.xml
119+
120+
## File-based project format:
121+
*.iws
122+
123+
## Plugin-specific files:
124+
125+
# IntelliJ
126+
out/
127+
logs/
128+
129+
# mpeltonen/sbt-idea plugin
130+
.idea_modules/
131+
132+
# JIRA plugin
133+
atlassian-ide-plugin.xml
134+
135+
# Cursive Clojure plugin
136+
.idea/replstate.xml
137+
138+
# Crashlytics plugin (for Android Studio and IntelliJ)
139+
com_crashlytics_export_strings.xml
140+
crashlytics.properties
141+
crashlytics-build.properties
142+
fabric.properties
143+
144+
### Maven template
145+
target/
146+
pom.xml.tag
147+
pom.xml.releaseBackup
148+
pom.xml.versionsBackup
149+
pom.xml.next
150+
release.properties
151+
dependency-reduced-pom.xml
152+
buildNumber.properties
153+
.mvn/timing.properties
154+
155+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
156+
!/.mvn/wrapper/maven-wrapper.jar
157+
158+
### SBT template
159+
# Simple Build Tool
160+
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
161+
162+
dist/*
163+
lib_managed/
164+
src_managed/
165+
project/boot/
166+
project/plugins/project/
167+
.history
168+
.lib/
169+
!sbt-launch.jar
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/
19+
20+
import java.util.Properties;
21+
22+
public class MavenWrapperDownloader {
23+
24+
/**
25+
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
26+
*/
27+
private static final String DEFAULT_DOWNLOAD_URL =
28+
"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
29+
30+
/**
31+
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
32+
* use instead of the default one.
33+
*/
34+
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
35+
".mvn/wrapper/maven-wrapper.properties";
36+
37+
/**
38+
* Path where the maven-wrapper.jar will be saved to.
39+
*/
40+
private static final String MAVEN_WRAPPER_JAR_PATH =
41+
".mvn/wrapper/maven-wrapper.jar";
42+
43+
/**
44+
* Name of the property which should be used to override the default download url for the wrapper.
45+
*/
46+
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
47+
48+
public static void main(String args[]) {
49+
System.out.println("- Downloader started");
50+
File baseDirectory = new File(args[0]);
51+
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
52+
53+
// If the maven-wrapper.properties exists, read it and check if it contains a custom
54+
// wrapperUrl parameter.
55+
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
56+
String url = DEFAULT_DOWNLOAD_URL;
57+
if(mavenWrapperPropertyFile.exists()) {
58+
FileInputStream mavenWrapperPropertyFileInputStream = null;
59+
try {
60+
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
61+
Properties mavenWrapperProperties = new Properties();
62+
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
63+
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
64+
} catch (IOException e) {
65+
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
66+
} finally {
67+
try {
68+
if(mavenWrapperPropertyFileInputStream != null) {
69+
mavenWrapperPropertyFileInputStream.close();
70+
}
71+
} catch (IOException e) {
72+
// Ignore ...
73+
}
74+
}
75+
}
76+
System.out.println("- Downloading from: : " + url);
77+
78+
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
79+
if(!outputFile.getParentFile().exists()) {
80+
if(!outputFile.getParentFile().mkdirs()) {
81+
System.out.println(
82+
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
83+
}
84+
}
85+
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
86+
try {
87+
downloadFileFromURL(url, outputFile);
88+
System.out.println("Done");
89+
System.exit(0);
90+
} catch (Throwable e) {
91+
System.out.println("- Error downloading");
92+
e.printStackTrace();
93+
System.exit(1);
94+
}
95+
}
96+
97+
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
98+
URL website = new URL(urlString);
99+
ReadableByteChannel rbc;
100+
rbc = Channels.newChannel(website.openStream());
101+
FileOutputStream fos = new FileOutputStream(destination);
102+
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
103+
fos.close();
104+
rbc.close();
105+
}
106+
107+
}

.mvn/wrapper/maven-wrapper.jar

47.2 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip

.travis.settings.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
<servers>
6+
<server>
7+
<id>ossrh</id>
8+
<username>${env.OSS_USERNAME}</username>
9+
<password>${env.OSS_PASSWORD}</password>
10+
</server>
11+
</servers>
12+
<profiles>
13+
<profile>
14+
<id>ossrh</id>
15+
<activation>
16+
<activeByDefault>true</activeByDefault>
17+
</activation>
18+
<properties>
19+
<gpg.executable>gpg2</gpg.executable>
20+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
21+
</properties>
22+
</profile>
23+
</profiles>
24+
</settings>

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: java
2+
3+
env:
4+
- MAVEN_OPTS="-Dhttp.agent=Maven"
5+
6+
cache:
7+
directories:
8+
- $HOME/.cache
9+
- $HOME/.m2
10+
11+
script: ./mvnw verify -B -V
12+
13+
after_success:
14+
- bash <(curl -s https://codecov.io/bash)
15+
16+
before_deploy:
17+
- cp .travis.settings.xml $HOME/.m2/settings.xml
18+
- echo $GPG_SECRET_KEYS | base64 --decode | gpg2 --import
19+
20+
deploy:
21+
# Deploy releases
22+
- provider: script
23+
script: ./mvnw deploy -B -V -P release
24+
skip_cleanup: true
25+
on:
26+
tags: true
27+
# Deploy snapshots
28+
- provider: script
29+
script: ./mvnw deploy -B -V
30+
skip_cleanup: true
31+
on:
32+
branch: develop
33+
34+
notifications:
35+
webhooks:
36+
urls:
37+
- "https://webhooks.gitter.im/e/9e04688b0ae124f5a047"
38+
- "https://webhooks.gitter.im/e/869b1a645dc46645e619"
39+
on_success: change
40+
on_failure: always
41+
on_start: never

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# play-repository-java
2-
DDD Repository for Play/Lagom
1+
# DDD Repository pattern for [Lagom](https://www.lagomframework.com)/[Play](https://playframework.com)
2+
3+
TODO
4+
5+
## License
6+
7+
Copyright © 2018 Digital Economy League (https://www.digitalleague.ru/).
8+
9+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
10+
11+
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.
12+

api/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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+
<parent>
6+
<groupId>org.taymyr.play</groupId>
7+
<artifactId>play-repository-java</artifactId>
8+
<version>0.0.1</version>
9+
<relativePath>../pom.xml</relativePath>
10+
</parent>
11+
<artifactId>play-repository-api-java</artifactId>
12+
<packaging>jar</packaging>
13+
<name>Taymyr: DDD Repository API</name>
14+
<dependencies>
15+
<!-- Provided dependencies -->
16+
<dependency>
17+
<groupId>com.typesafe.play</groupId>
18+
<artifactId>play-java_${scala.binary.version}</artifactId>
19+
<scope>provided</scope>
20+
</dependency>
21+
</dependencies>
22+
<build>
23+
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
24+
</build>
25+
</project>

0 commit comments

Comments
 (0)