aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle2
-rw-r--r--gradle.properties4
-rw-r--r--settings.gradle2
-rw-r--r--src/main/resources/META-INF/mods.toml2
4 files changed, 6 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index a3ff7bb..14f3be1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,7 +14,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'eclipse'
-archivesBaseName = name + '-' + mcVersion
+archivesBaseName = project.name + '-' + project.mcVersion
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
diff --git a/gradle.properties b/gradle.properties
index cf5e124..832ac67 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -3,8 +3,8 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
-name=Iceberg
-group=com.anthonyhilyard.iceberg
+name=${rootProject.name}
+group=com.anthonyhilyard.${name.toLowerCase()}
author=anthonyhilyard
version=1.0.12
mcVersion=1.17.1
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..d318b0e
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1,2 @@
+// Set the root project name so that the workspace folder name doesn't mess stuff up.
+rootProject.name = "Iceberg" \ No newline at end of file
diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml
index 63fbef3..7623938 100644
--- a/src/main/resources/META-INF/mods.toml
+++ b/src/main/resources/META-INF/mods.toml
@@ -4,7 +4,7 @@ license="CC BY-NC-ND 4.0"
[[mods]]
modId="iceberg"
-version="${version}"
+version="${file.jarVersion}"
displayName="Iceberg"
displayURL="https://anthonyhilyard.com/"
updateJSONURL="https://mc-curse-update-checker.herokuapp.com/520110"