Skip to content

Commit 8ad5e2f

Browse files
committed
Configure gradle project
1 parent 14ac963 commit 8ad5e2f

File tree

94 files changed

+212
-231
lines changed

Some content is hidden

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

94 files changed

+212
-231
lines changed

.idea/compiler.xml

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

.idea/gradle.xml

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

.idea/jarRepositories.xml

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

.idea/misc.xml

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

.idea/modules.xml

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

README.md

Lines changed: 1 addition & 1 deletion

build.gradle

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,37 @@
44
* This is a general purpose Gradle build.
55
* To learn more about Gradle by exploring our Samples at https://docs.gradle.org/8.3/samples
66
*/
7+
plugins {
8+
id 'java'
9+
id "com.adarshr.test-logger" version "3.2.0"
10+
id "checkstyle"
11+
}
12+
13+
sourceSets {
14+
main {
15+
java {
16+
srcDirs = ['src/main/java', 'scripts']
17+
}
18+
}
19+
}
20+
21+
repositories {
22+
mavenCentral()
23+
}
24+
25+
dependencies {
26+
// Use JUnit test framework.
27+
testImplementation 'junit:junit:4.13.2'
28+
}
29+
30+
java {
31+
toolchain {
32+
languageVersion = JavaLanguageVersion.of(11)
33+
}
34+
}
35+
36+
checkstyle {
37+
def archive = configurations.checkstyle.resolve().find { it.name.startsWith("checkstyle") }
38+
config = resources.text.fromArchiveEntry(archive, "google_checks.xml")
39+
}
40+

scripts/algorithms/patternFinding/RunKMP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import src.algorithms.patternFinding.KMP;
1+
package algorithms.patternFinding;
22

33
import java.util.List;
44

scripts/algorithms/sorting/RunCountingSort.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import src.algorithms.sorting.countingSort.CountingSort;
1+
package algorithms.sorting;
2+
3+
import algorithms.sorting.countingSort.CountingSort;
24

35
public class RunCountingSort {
46

src/main/java/algorithms/graphs/breadthFirstSearch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package src.algorithms.graphs;
1+
package algorithms.graphs;
22

33
import java.util.*;
44

5-
import src.algorithms.graphs.util.BinaryTreeNode;
6-
import src.algorithms.graphs.util.GraphNode;
5+
import algorithms.graphs.util.BinaryTreeNode;
6+
import algorithms.graphs.util.GraphNode;
77

88
/**
99
* Implementation of BFS

0 commit comments

Comments
 (0)