Skip to content

Commit 2e202ea

Browse files
committed
build: cleanup refs to :common
1 parent dd626ac commit 2e202ea

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

build-logic/conventions/src/main/kotlin/freecam.common.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ repositories {
4343
maven("https://maven.terraformersmc.com/")
4444
}
4545

46-
sourceSets.main {
47-
resources.srcDir("src/generated/resources")
48-
}
49-
50-
tasks.named("processResources") {
51-
dependsOn(":common:${project.name}:stonecutterGenerate")
46+
tasks.processResources {
47+
dependsOn(tasks.named("stonecutterGenerate"))
5248
}

build-logic/conventions/src/main/kotlin/freecam.loaders.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ val commonResources: Configuration by configurations.creating {
1111
}
1212

1313
dependencies {
14-
val commonPath = commonNode.hierarchy.toString()
15-
compileOnly(project(path = commonPath))
16-
commonJava(project(path = commonPath, configuration = "commonJava"))
17-
commonResources(project(path = commonPath, configuration = "commonResources"))
14+
compileOnly(commonNode.project)
15+
commonJava(project(path = commonNode.project.path, configuration = "commonJava"))
16+
commonResources(project(path = commonNode.project.path, configuration = "commonResources"))
1817
}
1918

2019
tasks {

0 commit comments

Comments
 (0)