Skip to content

Commit a4e06dd

Browse files
committed
Moved patterns to a module to satisfy IntelliJ/AS
1 parent 2392ff4 commit a4e06dd

20 files changed

+31
-27
lines changed

build.gradle

-27
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,3 @@ buildscript {
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
13-
14-
apply plugin: 'kotlin'
15-
16-
repositories {
17-
mavenCentral()
18-
}
19-
20-
dependencies {
21-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
22-
implementation("org.jetbrains.kotlin:kotlin-reflect")
23-
testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2"
24-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.2"
25-
testImplementation("org.assertj:assertj-core:3.11.1")
26-
}
27-
28-
test {
29-
// Enable JUnit 5 (Gradle 4.6+).
30-
useJUnitPlatform()
31-
32-
// Always run tests, even when nothing changed.
33-
dependsOn 'cleanTest'
34-
35-
// Show test results.
36-
testLogging {
37-
events "passed", "skipped", "failed"
38-
}
39-
}

patterns/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'kotlin'
2+
3+
repositories {
4+
mavenCentral()
5+
}
6+
7+
sourceCompatibility = "8"
8+
targetCompatibility = "8"
9+
10+
dependencies {
11+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
12+
implementation("org.jetbrains.kotlin:kotlin-reflect")
13+
testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2"
14+
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.2"
15+
testImplementation("org.assertj:assertj-core:3.11.1")
16+
}
17+
18+
test {
19+
// Enable JUnit 5 (Gradle 4.6+).
20+
useJUnitPlatform()
21+
22+
// Always run tests, even when nothing changed.
23+
dependsOn 'cleanTest'
24+
25+
// Show test results.
26+
testLogging {
27+
events "passed", "skipped", "failed"
28+
}
29+
}
30+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
include ':patterns'
12
rootProject.name = 'design-patterns-kotlin'

0 commit comments

Comments
 (0)