Skip to content

Commit

Permalink
Gradle configuration updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brukzen committed Apr 4, 2022
1 parent f4908da commit 744635c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
22 changes: 17 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.16.5-0.1.0-alpha'
group = 'com.blukzen.createlab' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
group = 'com.blukzen.createlab'
archivesBaseName = 'createlab'

java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.
Expand Down Expand Up @@ -131,7 +130,6 @@ dependencies {
// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
// compile "some.group:artifact:version"
runtimeOnly fg.deobf("curse.maven:improvedbackpacks-270457:3509641")

// Real examples
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
Expand All @@ -157,7 +155,7 @@ jar {
"Specification-Vendor": "createlab",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${this.version}",
"Implementation-Version": "${modVersion}",
"Implementation-Vendor" :"createlab",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
Expand All @@ -178,7 +176,21 @@ publishing {
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
name "repsy"
url "https://repsy.io/mvn/blukzen/minecraft/"
// Set credentials in GRADLE_USER_HOME
credentials {
username = "${maven_username}"
password = "${maven_password}"
}
}
}
}

task release() {
dependsOn build

doLast {
println "modVersion"
}
}
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
modVersion = '1.16.5-0.1.0'

org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.daemon=false
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
modLoader="javafml" #mandatory
loaderVersion="[36,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
license="All rights reserved"

[[mods]] #mandatory
modId="createlab" #mandatory
version="${file.jarVersion}" #mandatory
displayName="Create Lab" #mandatory
logoFile="examplemod.png" #optional
credits="" #optional
authors="Blukzen" #optional
authors="https://github.com/Blukzen" #optional
description='''
Test laboratory dimension for the Create mod.
'''
Expand Down

0 comments on commit 744635c

Please sign in to comment.