Skip to content

Commit 6c8151f

Browse files
authored
Merge pull request TheAlgorithms#902 from renjithgr/Development
Use Gradle instead of Maven
2 parents 3750999 + 98982f8 commit 6c8151f

File tree

11 files changed

+293
-69
lines changed

11 files changed

+293
-69
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ Java.iml
22
.idea/*
33
out/
44
*.iml
5+
.gradle
6+
target
7+
build

build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
id 'java'
3+
}
4+
5+
repositories {
6+
mavenLocal()
7+
maven {
8+
url = 'http://repo.maven.apache.org/maven2'
9+
}
10+
}
11+
12+
dependencies {
13+
testCompile 'org.junit.jupiter:junit-jupiter-api:5.5.0'
14+
}
15+
16+
group = 'algorithm'
17+
version = '1.0-SNAPSHOT'
18+
description = 'java-algorithm'
19+
sourceCompatibility = '1.8'

gradle/wrapper/gradle-wrapper.jar

53.9 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 0 additions & 64 deletions
This file was deleted.

settings.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
5+
rootProject.name = 'java-algorithm'

src/main/java/com/designpatterns/creational/factory/PolygonFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* In class-based programming, the factory method pattern is a creational pattern that uses factory methods to deal
55
* with the problem of creating objects without having to specify the exact class of the object that will be created.
6-
* This is done by creating objects by calling a factory methodeither specified in an interface and implemented by
7-
* child classes, or implemented in a base class and optionally overridden by derived classesrather than by calling
6+
* This is done by creating objects by calling a factory method-either specified in an interface and implemented by
7+
* child classes, or implemented in a base class and optionally overridden by derived classes-rather than by calling
88
* a constructor.
99
*
1010
* @see <a href="https://en.wikipedia.org/wiki/Factory_method_pattern">Factory Pattern</a>

src/main/java/com/designpatterns/structural/adapter/MovableAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
/**
44
* An Adapter pattern acts as a connector between two incompatible interfaces that otherwise cannot be connected
5-
* directly. An Adapter wraps an existing class with a new interface so that it becomes compatible with the clients
5+
* directly. An Adapter wraps an existing class with a new interface so that it becomes compatible with the client's
66
* interface.
77
* <br>
88
* The main motive behind using this pattern is to convert an existing interface into another interface that the client
9-
* expects. Its usually implemented once the application is designed.
9+
* expects. It's usually implemented once the application is designed.
1010
*
1111
* @see <a href="https://en.wikipedia.org/wiki/Adapter_pattern">Adapter Pattern</a>
1212
*/

0 commit comments

Comments
 (0)