Reduce default log spam in dev envs and unify version setting
This commit is contained in:
parent
9cad07b82d
commit
9024376f8c
|
@ -169,6 +169,8 @@ subprojects {
|
|||
|
||||
setupRepositories(repositories)
|
||||
}
|
||||
|
||||
version = rootProject.version
|
||||
}
|
||||
|
||||
task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: jar) {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
archivesBaseName = "libjf-base"
|
||||
version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
}
|
|
@ -20,5 +20,6 @@ public class LibJf {
|
|||
.addSerializationExclusionStrategy(new HiddenAnnotationExclusionStrategy())
|
||||
.setPrettyPrinting()
|
||||
.create();
|
||||
public static boolean DEV = FabricLoader.getInstance().isDevelopmentEnvironment();
|
||||
// Only ever set through the libjf-unsafe-v0 testmod or user code since it causes logspam
|
||||
public static boolean DEV = false;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
archivesBaseName = "libjf-config-v0"
|
||||
version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
moduleDependencies(project, ["libjf-base", "libjf-unsafe-v0"])
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
archivesBaseName = "libjf-data-manipulation-v0"
|
||||
version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
moduleDependencies(project, ["libjf-base", "libjf-unsafe-v0"])
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
archivesBaseName = "libjf-data-v0"
|
||||
version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
moduleDependencies(project, ["libjf-base"])
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
archivesBaseName = "libjf-devutil-v0"
|
||||
version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
moduleDependencies(project, ["libjf-base"])
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.spongepowered.asm.mixin.Overwrite;
|
|||
public class MinecraftClientMixin {
|
||||
/**
|
||||
* @author JFronny
|
||||
* @reason The social interactions service will not work in dev envs and only produces log spam
|
||||
*/
|
||||
@Overwrite
|
||||
private UserApiService createSocialInteractionsService(YggdrasilAuthenticationService yggdrasilAuthenticationService, RunArgs runArgs) {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
archivesBaseName = "libjf-unsafe-v0"
|
||||
version = rootProject.version
|
||||
|
||||
dependencies {
|
||||
moduleDependencies(project, ["libjf-base"])
|
||||
|
|
|
@ -14,5 +14,6 @@ public class UnsafeEntryTest implements UltraEarlyInit {
|
|||
" '|..' .||. '|.' .||. '|..'|' .||.....| '|..'|' .||. .||. '| \n" +
|
||||
" .. | \n" +
|
||||
" '' ");
|
||||
LibJf.DEV = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue