Skip to content

Commit 1aeac03

Browse files
committed
Switch project structure
1 parent bfb07cf commit 1aeac03

File tree

79 files changed

+26
-2820
lines changed

Some content is hidden

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

79 files changed

+26
-2820
lines changed

.github/workflows/gradle_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16+
submodules: 'true'
1617
- uses: actions/setup-java@v4
1718
with:
1819
distribution: corretto

aoc2015/aoc2015-java/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dependencies {
2-
api(project(":utils"))
2+
api(project(":aoc-utils"))
33

4-
implementation(libs.commons.codec)
5-
implementation(libs.commons.lang3)
4+
implementation(aoc2015Libs.commons.codec)
5+
implementation(aoc2015Libs.commons.lang3)
66

77
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
88
}

aoc2015/aoc2015-kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
alias(libs.plugins.kotlin.jvm)
2+
alias(aoc2015Libs.plugins.kotlin.jvm)
33
}
44

55
dependencies {
6-
api(project(":utils"))
6+
api(project(":aoc-utils"))
77

88
implementation("org.jetbrains.kotlin:kotlin-reflect")
99
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

aoc2015/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
application
3-
alias(libs.plugins.kotlin.jvm)
3+
alias(aoc2015Libs.plugins.kotlin.jvm)
44
}
55

66
val year = 2015

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import org.sonarqube.gradle.SonarTask
55
plugins {
66
id("jacoco-report-aggregation")
77
id("java-library")
8-
alias(libs.plugins.kotlin.jvm) apply false
9-
alias(libs.plugins.sonarqube.plugin)
8+
alias(aoc2015Libs.plugins.kotlin.jvm) apply false
9+
alias(aoc2015Libs.plugins.sonarqube.plugin)
1010
}
1111

1212
dependencies {
@@ -57,8 +57,8 @@ rootProject.allprojects.forEach { currentProject ->
5757
}
5858

5959
currentProject.dependencies {
60-
testImplementation(libs.hamcrest)
61-
testImplementation(libs.junit.jupiter)
60+
testImplementation(aoc2015Libs.hamcrest)
61+
testImplementation(aoc2015Libs.junit.jupiter)
6262
}
6363

6464
currentProject.jacoco {

img/groovy.png

-1.19 KB
Binary file not shown.

img/python.png

-720 Bytes
Binary file not shown.

img/scala.png

-805 Bytes
Binary file not shown.

settings.gradle.kts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@ plugins {
22
id("com.gradle.develocity") version("4.0.2")
33
}
44

5-
rootProject.name = "advent-of-code-2015"
5+
dependencyResolutionManagement {
6+
versionCatalogs {
7+
create("aoc2015Libs") {
8+
from(files("gradle/libs.versions.toml"))
9+
}
10+
}
11+
}
612

713
include("aoc2015")
814
include("aoc2015:aoc2015-java")
915
include("aoc2015:aoc2015-kotlin")
1016

11-
include("utils")
12-
include("utils:utils-java")
13-
include("utils:utils-kotlin")
17+
18+
include("advent-of-code-utils")
19+
apply( "advent-of-code-utils/settings.gradle.kts")
20+
project(":aoc-utils").projectDir = file( path = "$rootDir/advent-of-code-utils/aoc-utils")
21+
project(":aoc-utils:aoc-utils-kotlin").projectDir = file( path = "$rootDir/advent-of-code-utils/aoc-utils/aoc-utils-kotlin")
22+
project(":aoc-utils:aoc-utils-java").projectDir = file( path = "$rootDir/advent-of-code-utils/aoc-utils/aoc-utils-java")
23+
24+
rootProject.name = "advent-of-code-2015"

utils/build.gradle.kts

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

0 commit comments

Comments
 (0)