Skip to content

Commit 51e51bf

Browse files
authored
Merge pull request #1161 from Nxer/replace-buildsrc-with-plugin
Replace buildSrc with standalone Gradle plugin
2 parents cb6cafc + 0843f44 commit 51e51bf

File tree

11 files changed

+11
-212
lines changed

11 files changed

+11
-212
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//version: 1707058017
22
//
33
plugins {
4+
id 'com.github.ElytraServers.elytra-conventions' version 'v1.1.2'
45
id 'com.gtnewhorizons.gtnhconvention'
56
}
67

buildSrc/.gitignore

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

buildSrc/build.gradle.kts

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

buildSrc/src/main/groovy/TwistVersions.groovy

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

buildSrc/src/main/groovy/twist_gradle/ManifestLoader.groovy

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

buildSrc/src/main/groovy/twist_gradle/entity/Manifest.groovy

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

buildSrc/src/main/groovy/twist_gradle/entity/Mod.groovy

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

buildSrc/src/main/groovy/twist_gradle/util/TwistFileUtils.groovy

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

buildSrc/src/test/groovy/TestMainManifestLoader.groovy

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

dependencies.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
3535
*/
3636
dependencies {
37+
elytraModpackVersion {
38+
setGtnhVersion("2.8.0")
39+
}
40+
3741
implementation(gtnh("GT5-Unofficial"))
3842
implementation(gtnh("GTNHLib"))
3943
implementation(gtnh("AE2FluidCraft-Rework"))
@@ -108,7 +112,7 @@ dependencies {
108112
* @param classifier the classifier
109113
* @return the generated notation
110114
*/
111-
static String gtnh(String name, String classifier = "dev") {
115+
String gtnh(String name, String classifier = "dev") {
112116
// com.github.GTNewHorizons:{name}:{version of name}:{classifier}
113-
return "com.github.GTNewHorizons:${name}:${TwistVersions[name]}:${classifier}"
117+
return project.elytraModpackVersion.gtnhdev(name)
114118
}

0 commit comments

Comments
 (0)