Skip to content

Commit fdfc373

Browse files
Merge branch 'master' into BAEL-1717
2 parents 2146aa2 + e725c02 commit fdfc373

521 files changed

Lines changed: 9770 additions & 8821 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ before_install:
44
- echo "MAVEN_OPTS='-Xmx2048M -Xss128M -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC -XX:-UseGCOverheadLimit'" > ~/.mavenrc
55

66
install: skip
7-
script: travis_wait 60 mvn -q test
7+
script: travis_wait 60 mvn -q install
88

99
sudo: required
1010

‎JGit/pom.xml‎

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,42 @@
1111
<groupId>com.baeldung</groupId>
1212
<artifactId>parent-modules</artifactId>
1313
<version>1.0.0-SNAPSHOT</version>
14-
</parent>
15-
14+
</parent>
15+
16+
<repositories>
17+
<repository>
18+
<id>jgit-repository</id>
19+
<url>https://repo.eclipse.org/content/groups/releases/</url>
20+
</repository>
21+
</repositories>
22+
23+
<!-- Core Library -->
24+
<dependencies>
25+
<dependency>
26+
<groupId>org.eclipse.jgit</groupId>
27+
<artifactId>org.eclipse.jgit</artifactId>
28+
<version>${org.eclipse.jgit.version}</version>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.eclipse.jgit</groupId>
32+
<artifactId>org.eclipse.jgit.archive</artifactId>
33+
<version>${org.eclipse.jgit.version}</version>
34+
</dependency>
35+
<dependency>
36+
<groupId>commons-io</groupId>
37+
<artifactId>commons-io</artifactId>
38+
<version>${commons-io.version}</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>org.slf4j</groupId>
42+
<artifactId>slf4j-simple</artifactId>
43+
<version>${org.slf4j.version}</version>
44+
</dependency>
45+
</dependencies>
46+
1647
<properties>
1748
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<maven.compiler.source>1.8</maven.compiler.source>
19-
<maven.compiler.target>1.8</maven.compiler.target>
49+
<org.eclipse.jgit.version>4.5.0.201609210915-r</org.eclipse.jgit.version>
2050
</properties>
21-
<repositories>
22-
<repository>
23-
<id>jgit-repository</id>
24-
<url>https://repo.eclipse.org/content/groups/releases/</url>
25-
</repository>
26-
</repositories>
2751

28-
<!-- Core Library -->
29-
<dependencies>
30-
<dependency>
31-
<groupId>org.eclipse.jgit</groupId>
32-
<artifactId>org.eclipse.jgit</artifactId>
33-
<version>4.5.0.201609210915-r</version>
34-
</dependency>
35-
<dependency>
36-
<groupId>org.eclipse.jgit</groupId>
37-
<artifactId>org.eclipse.jgit.archive</artifactId>
38-
<version>4.5.0.201609210915-r</version>
39-
</dependency>
40-
<dependency>
41-
<groupId>commons-io</groupId>
42-
<artifactId>commons-io</artifactId>
43-
<version>2.5</version>
44-
</dependency>
45-
<dependency>
46-
<groupId>org.slf4j</groupId>
47-
<artifactId>slf4j-simple</artifactId>
48-
<version>1.7.21</version>
49-
</dependency>
50-
</dependencies>
5152
</project>

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ This project is **a collection of small and focused tutorials** each covering a
1717
Most of the tutorial projects are focused on the `Spring Framework` (and `Spring Security`).
1818
In additional to Spring, the following technologies are in focus: `core Java`, `Jackson`, `HttpClient`, `Guava`.
1919

20+
Building the project
21+
====================
22+
To do the full build, do: `mvn install -Dgib.enabled=false`
23+
2024

2125
Working with the code in Eclipse
2226
================================
@@ -29,3 +33,4 @@ Any IDE can be used to work with the projects, but if you're using Eclipse, cons
2933
CI - Jenkins
3034
================================
3135
This tutorials project is being built **[>> HERE](https://rest-security.ci.cloudbees.com/job/tutorials-unit/)**
36+

‎Twitter4J/pom.xml‎

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.mabsisa</groupId>
5-
<artifactId>Twitter4J</artifactId>
6-
<packaging>jar</packaging>
7-
<version>1.0-SNAPSHOT</version>
8-
<name>Twitter4J</name>
9-
<url>http://maven.apache.org</url>
10-
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.mabsisa</groupId>
5+
<artifactId>Twitter4J</artifactId>
6+
<packaging>jar</packaging>
7+
<version>1.0-SNAPSHOT</version>
8+
<name>Twitter4J</name>
9+
<url>http://maven.apache.org</url>
10+
1111
<parent>
1212
<groupId>com.baeldung</groupId>
1313
<artifactId>parent-modules</artifactId>
1414
<version>1.0.0-SNAPSHOT</version>
15-
</parent>
16-
17-
<properties>
18-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20-
<java.version>1.8</java.version>
21-
</properties>
15+
</parent>
16+
17+
<properties>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20+
<java.version>1.8</java.version>
21+
</properties>
2222

2323
<dependencies>
24-
<dependency>
25-
<groupId>org.twitter4j</groupId>
26-
<artifactId>twitter4j-stream</artifactId>
27-
<version>4.0.6</version>
28-
</dependency>
24+
<dependency>
25+
<groupId>org.twitter4j</groupId>
26+
<artifactId>twitter4j-stream</artifactId>
27+
<version>4.0.6</version>
28+
</dependency>
2929
</dependencies>
30-
30+
3131
<build>
32-
<finalName>${project.artifactId}</finalName>
33-
<resources>
34-
<resource>
35-
<directory>src/main/resources</directory>
36-
</resource>
37-
</resources>
38-
<plugins>
39-
<plugin>
40-
<groupId>org.apache.maven.plugins</groupId>
41-
<artifactId>maven-surefire-plugin</artifactId>
42-
<version>${maven-surefire-plugin.version}</version>
43-
<configuration>
44-
<excludes>
45-
<exclude>**/ApplicationTest.java</exclude>
46-
</excludes>
47-
</configuration>
48-
</plugin>
49-
</plugins>
50-
</build>
32+
<finalName>${project.artifactId}</finalName>
33+
<resources>
34+
<resource>
35+
<directory>src/main/resources</directory>
36+
</resource>
37+
</resources>
38+
<plugins>
39+
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
41+
<artifactId>maven-surefire-plugin</artifactId>
42+
<version>${maven-surefire-plugin.version}</version>
43+
<configuration>
44+
<excludes>
45+
<exclude>**/ApplicationTest.java</exclude>
46+
</excludes>
47+
</configuration>
48+
</plugin>
49+
</plugins>
50+
</build>
5151

5252
</project>

‎activejdbc/pom.xml‎

Lines changed: 51 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,58 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.baeldung</groupId>
55
<artifactId>activejdbc</artifactId>
66
<version>1.0-SNAPSHOT</version>
77
<packaging>jar</packaging>
88
<name>activejdbc</name>
99
<url>http://maven.apache.org</url>
10-
<properties>
11-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<activejdbc.version>1.4.13</activejdbc.version>
13-
<environments>development.test,development</environments>
14-
</properties>
15-
<parent>
10+
11+
<parent>
1612
<artifactId>parent-modules</artifactId>
1713
<groupId>com.baeldung</groupId>
1814
<version>1.0.0-SNAPSHOT</version>
1915
</parent>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>junit</groupId>
20+
<artifactId>junit</artifactId>
21+
<version>${junit.version}</version>
22+
<scope>test</scope>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.javalite</groupId>
26+
<artifactId>activejdbc</artifactId>
27+
<version>${activejdbc.version}</version>
28+
<exclusions>
29+
<exclusion>
30+
<groupId>opensymphony</groupId>
31+
<artifactId>oscache</artifactId>
32+
</exclusion>
33+
</exclusions>
34+
</dependency>
35+
<dependency>
36+
<groupId>mysql</groupId>
37+
<artifactId>mysql-connector-java</artifactId>
38+
<version>${mysql.connector.version}</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>org.slf4j</groupId>
42+
<artifactId>slf4j-simple</artifactId>
43+
<version>${org.slf4j.version}</version>
44+
</dependency>
45+
</dependencies>
46+
2047
<build>
2148
<plugins>
2249
<plugin>
2350
<groupId>org.apache.maven.plugins</groupId>
2451
<artifactId>maven-compiler-plugin</artifactId>
25-
<version>3.6.0</version>
52+
<version>${maven-compiler-plugin.version}</version>
2653
<configuration>
27-
<source>1.8</source>
28-
<target>1.8</target>
54+
<source>${java.version}</source>
55+
<target>${java.version}</target>
2956
<encoding>UTF-8</encoding>
3057
</configuration>
3158
</plugin>
@@ -54,14 +81,14 @@
5481
<dependency>
5582
<groupId>mysql</groupId>
5683
<artifactId>mysql-connector-java</artifactId>
57-
<version>5.1.34</version>
84+
<version>${mysql.connector.version}</version>
5885
</dependency>
5986
</dependencies>
6087
</plugin>
6188
<plugin>
6289
<groupId>org.apache.maven.plugins</groupId>
6390
<artifactId>maven-surefire-plugin</artifactId>
64-
<version>2.18.1</version>
91+
<version>${maven-surefire-plugin.version}</version>
6592
<configuration>
6693
<reportFormat>brief</reportFormat>
6794
<trimStackTrace>true</trimStackTrace>
@@ -78,35 +105,7 @@
78105
</plugin>
79106
</plugins>
80107
</build>
81-
<dependencies>
82-
<dependency>
83-
<groupId>junit</groupId>
84-
<artifactId>junit</artifactId>
85-
<version>4.12</version>
86-
<scope>test</scope>
87-
</dependency>
88-
<dependency>
89-
<groupId>org.javalite</groupId>
90-
<artifactId>activejdbc</artifactId>
91-
<version>${activejdbc.version}</version>
92-
<exclusions>
93-
<exclusion>
94-
<groupId>opensymphony</groupId>
95-
<artifactId>oscache</artifactId>
96-
</exclusion>
97-
</exclusions>
98-
</dependency>
99-
<dependency>
100-
<groupId>mysql</groupId>
101-
<artifactId>mysql-connector-java</artifactId>
102-
<version>5.1.34</version>
103-
</dependency>
104-
<dependency>
105-
<groupId>org.slf4j</groupId>
106-
<artifactId>slf4j-simple</artifactId>
107-
<version>1.7.9</version>
108-
</dependency>
109-
</dependencies>
108+
110109
<repositories>
111110
<repository>
112111
<id>snapshots1</id>
@@ -119,6 +118,7 @@
119118
</snapshots>
120119
</repository>
121120
</repositories>
121+
122122
<pluginRepositories>
123123
<pluginRepository>
124124
<id>snapshots2</id>
@@ -131,4 +131,13 @@
131131
</snapshots>
132132
</pluginRepository>
133133
</pluginRepositories>
134-
</project>
134+
135+
<properties>
136+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
137+
<activejdbc.version>1.4.13</activejdbc.version>
138+
<environments>development.test,development</environments>
139+
<org.slf4j.version>1.7.9</org.slf4j.version>
140+
<mysql.connector.version>5.1.34</mysql.connector.version>
141+
</properties>
142+
143+
</project>

‎akka-streams/pom.xml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
43
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+
<artifactId>akka-streams</artifactId>
6+
<name>akka-streams</name>
7+
58
<parent>
69
<artifactId>parent-modules</artifactId>
710
<groupId>com.baeldung</groupId>
811
<version>1.0.0-SNAPSHOT</version>
912
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
<artifactId>akka-streams</artifactId>
12-
<name>akka-streams</name>
1313

1414
<dependencies>
1515
<dependency>
@@ -23,6 +23,7 @@
2323
<version>${akkastreams.version}</version>
2424
</dependency>
2525
</dependencies>
26+
2627
<properties>
2728
<akkastreams.version>2.5.2</akkastreams.version>
2829
</properties>

‎algorithms/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
- [A Maze Solver in Java](http://www.baeldung.com/java-solve-maze)
2121
- [Create a Sudoku Solver in Java](http://www.baeldung.com/java-sudoku)
2222
- [Displaying Money Amounts in Words](http://www.baeldung.com/java-money-into-words)
23+
- [A Collaborative Filtering Recommendation System in Java](http://www.baeldung.com/java-collaborative-filtering-recommendations)

0 commit comments

Comments
 (0)