-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a186ad
commit b565467
Showing
10 changed files
with
358 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,91 @@ | ||
plugins { | ||
id 'fabric-loom' version '0.12-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
|
||
archivesBaseName = project.archives_base_name | ||
version = project.mod_version | ||
group = project.maven_group | ||
|
||
repositories { | ||
maven { | ||
name = "ModMenu" | ||
url = "https://maven.terraformersmc.com/releases/" | ||
} | ||
maven { | ||
name = 'Roundaround Maven' | ||
allowInsecureProtocol = true | ||
url = "https://maven.rnda.dev/releases" | ||
} | ||
} | ||
|
||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
// Test using real account | ||
modImplementation "com.ptsmods:devlogin:2.1" | ||
|
||
// ModMenu integration | ||
modCompileOnly "com.terraformersmc:modmenu:${project.mod_menu_version}" | ||
|
||
// RoundaLib for config screen | ||
modImplementation "me.roundaround:roundalib:${project.roundalib_version}" | ||
include "me.roundaround:roundalib:${project.roundalib_version}" | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
it.options.encoding = "UTF-8" | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.archives_base_name}"} | ||
} | ||
} | ||
|
||
tasks.publish.dependsOn build | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId project.archives_base_name | ||
version = project.mod_version + "+" + project.minecraft_version | ||
|
||
artifact(remapJar) { | ||
builtBy remapJar | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
allowInsecureProtocol = true | ||
url = "https://maven.rnda.dev/releases" | ||
credentials { | ||
username = selfHostedMavenUser | ||
password = selfHostedMavenPass | ||
} | ||
authentication { | ||
basic(BasicAuthentication) | ||
} | ||
} | ||
} | ||
} | ||
plugins { | ||
id 'fabric-loom' version '0.12-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
|
||
archivesBaseName = project.archives_base_name | ||
version = project.mod_version | ||
group = project.maven_group | ||
|
||
repositories { | ||
maven { | ||
name = "ModMenu" | ||
url = "https://maven.terraformersmc.com/releases/" | ||
} | ||
maven { | ||
name = 'Roundaround Maven' | ||
allowInsecureProtocol = true | ||
url = "https://maven.rnda.dev/releases" | ||
} | ||
} | ||
|
||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
// Test using real account | ||
modImplementation "com.ptsmods:devlogin:2.1" | ||
|
||
// ModMenu integration | ||
modCompileOnly "com.terraformersmc:modmenu:${project.mod_menu_version}" | ||
|
||
// RoundaLib for config screen | ||
modImplementation "me.roundaround:roundalib:${project.roundalib_version}" | ||
include "me.roundaround:roundalib:${project.roundalib_version}" | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
it.options.encoding = "UTF-8" | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.archives_base_name}"} | ||
} | ||
} | ||
|
||
tasks.publish.dependsOn build | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId project.archives_base_name | ||
version = project.mod_version + "+" + project.minecraft_version | ||
|
||
artifact(remapJar) { | ||
builtBy remapJar | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
allowInsecureProtocol = true | ||
url = "https://maven.rnda.dev/releases" | ||
credentials { | ||
username = selfHostedMavenUser | ||
password = selfHostedMavenPass | ||
} | ||
authentication { | ||
basic(BasicAuthentication) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Thu May 26 00:27:06 EDT 2022 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.