Skip to content

Commit

Permalink
build: make terasology-common for easy inclusion of things applicable…
Browse files Browse the repository at this point in the history
… to all subprojects
  • Loading branch information
keturn committed May 21, 2022
1 parent 8a322cb commit 8fadf22
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
3 changes: 2 additions & 1 deletion build-logic/src/main/kotlin/facade.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Copyright 2021 The Terasology Foundation
// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

import org.terasology.gradology.JAR_COLLECTION
import org.terasology.gradology.namedAttribute

plugins {
application
id("terasology-common")
}

val dirNatives: String by rootProject.extra
Expand Down
7 changes: 7 additions & 0 deletions build-logic/src/main/kotlin/terasology-common.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

plugins {
id("terasology-repositories")
id("terasology-metrics")
}
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/terasology-module.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 The Terasology Foundation
// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

// Simple build file for modules - the one under the Core module is the template, will be copied as needed to modules
Expand All @@ -11,7 +11,7 @@ plugins {
`java-library`
idea
eclipse
id("terasology-metrics")
id("terasology-common")
}

val moduleMetadata = ModuleMetadataForGradle.forProject(project)
Expand Down
2 changes: 1 addition & 1 deletion engine-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
plugins {
id "java-library"
id "org.jetbrains.gradle.plugin.idea-ext"
id "terasology-metrics"
id "terasology-common"
}

// Grab all the common stuff like plugins to use, artifact repositories, code analysis config
Expand Down
1 change: 0 additions & 1 deletion facades/PC/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import kotlin.test.fail
plugins {
application
id("terasology-dist")
id("terasology-metrics")
id("facade")
}

Expand Down
5 changes: 3 additions & 2 deletions subsystems/DiscordRPC/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright 2021 The Terasology Foundation
// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

plugins {
java
`java-library`
id("terasology-common")
}

apply(from = "$rootDir/config/gradle/common.gradle")
Expand All @@ -12,4 +13,4 @@ dependencies {
implementation(project(":engine"))
api("com.jagrosh:DiscordIPC:0.4")
implementation("ch.qos.logback:logback-classic:1.2.3")
}
}
3 changes: 2 additions & 1 deletion subsystems/TypeHandlerLibrary/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright 2021 The Terasology Foundation
// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

plugins {
java
`java-library`
id("terasology-common")
}

apply(from = "$rootDir/config/gradle/publish.gradle")
Expand Down

0 comments on commit 8fadf22

Please sign in to comment.