Commit Graph

214 Commits

Author SHA1 Message Date
Username404-59 d8bbab0ff7
Use kotlinx-serialization-json instead of gson and move the macros to the main configuration file 2021-06-01 13:21:02 +02:00
Username404 3313bd7c7d
Use gradle toolchains in the buildscript 2021-06-01 11:27:50 +02:00
Username404 b84ace9d3c
Update the modrinth kotlinforforge dependency versionId 2021-05-30 21:17:47 +02:00
Username404 36e30d2a29
Update kotlinforforge to 1.12.1 and remove the shadowed kotlinx-serialization library 2021-05-30 11:32:15 +02:00
Username404 c69fd56838
Add a cloth config screen 2021-05-29 22:11:05 +02:00
Username404 f7215b4202
Update the ben-manes.versions gradle plugin 2021-05-29 12:26:30 +02:00
Username404 11ace628ac
Only pick the 4 first characters in mcBase (build.gradle.kts) 2021-05-28 18:04:11 +02:00
Username404 486e3afacf
Only keep public class members of discord-rpc 2021-05-28 07:10:14 +02:00
Username404 6552adbf70
Add a DiscordRPC.kt feature 2021-05-27 20:00:35 +02:00
Username404 6f5817389d
Update kotlin & kotlinx-datetime and make the constructor parameters of Macro.kt variables instead of values 2021-05-27 18:45:26 +02:00
Username404 5609e7d224
Update the shadow plugin 2021-05-26 19:53:09 +02:00
Username404 d028baa5d5
Move the homeDir variable in the buildscript 2021-05-21 12:40:03 +02:00
Username404 4dfd850f33
Don't obfuscate fields in Macro.kt 2021-05-20 17:47:32 +02:00
Username404 dae08e3957
Output shrinked .jar files to build directories, and use the compile classpath instead of the runtime one 2021-05-20 13:59:19 +02:00
Username404 22009a53f1
Use gson instead of kotlinx-serialization 2021-05-20 13:23:34 +02:00
Username404 a4802088ea
Fix proguard errors by remapping the shrinked .jar files 2021-05-20 13:23:33 +02:00
Username404 1106b8bdae
Add a missing jmod to the build.gradle.kts 2021-05-19 19:41:13 +02:00
Username404 863bc99c10
Check if java.instrument.jmod is present in the build.gradle.kts file, and add jetbrains annotations 2021-05-19 15:56:10 +02:00
Username404 870c7af084
Check if java.base.jmod is present in the build.gradle.kts file 2021-05-19 14:41:33 +02:00
Username404 de98500a3a
Begin adding a macro system 2021-05-18 22:14:35 +02:00
Username404 8f16eae53b
Search annotations in a specific package, add a MACROS category and a GREEN color 2021-05-18 18:25:12 +02:00
Username404 a74b75c351
Update the architectury and architectury-loom plugins 2021-05-17 15:59:06 +02:00
Username404 daa9255086
Add the indraGit gradle plugin 2021-05-17 15:39:54 +02:00
Username404 218e3f4a82
Only keep "public static INSTANCE" fields 2021-05-17 15:05:10 +02:00
Username404 82de485b17
Don't obfuscate static fields in fr.username404.gui.feature to fix reflection on objects 2021-05-17 14:44:44 +02:00
Username404-59 f9fd9222ef
Fix the ButtonImpl.initialize() method producing null, use reflections8 only on fabric and shadow kotlinx.serialization on forge 2021-05-16 14:44:26 +02:00
Username404-59 cb20a6e744
Use reflections8 instead of reflections 2021-05-15 22:48:51 +02:00
Username404-59 3d08c24c17
Initialize every button in Snowy.kt 2021-05-15 17:15:24 +02:00
Username404-59 9122d5f007
Support Java 16 with Jabel 2021-05-15 13:44:21 +02:00
Username404-59 4805e81dbe
Add Jabel to compile for java 8 but using newer features, fix the ClickBox colors and update gradle 2021-05-15 12:50:42 +02:00
Username404 b524693b2a
Keep the names of classes located in the feature package 2021-05-15 01:48:12 +02:00
Username404-59 3ccee1aa6f
Start a major refactor, split the ClickButton.kt class into the ButtonInfo annotation and the ButtonImpl.kt class 2021-05-14 23:20:41 +02:00
Username404-59 6b64bb3095
Set javaVer to 11 since forge doesn't support java 14 mixins 2021-05-12 17:48:13 +02:00
Username404-59 79d970612d
Remove the java block in build.gradle.kts 2021-05-12 17:30:02 +02:00
Username404-59 44f5b41c29
Target Java 14 2021-05-12 17:24:00 +02:00
Username404-59 00a12bb828
Remove a (now useless) dontwarn call in build.gradle.kts 2021-05-10 18:58:07 +02:00
Username404-59 f5087954f4
Add a modrinth dependency on kotlinforforge 2021-05-08 21:44:23 +02:00
Username404-59 468aac3f63
Allow architectury-loom 0.7.2 2021-05-08 21:01:10 +02:00
Username404-59 2edc9158a0
Update minotaur 2021-05-08 17:56:05 +02:00
Username404-59 25a5380166
Update the kotlin libraries 2021-05-07 10:33:35 +02:00
Username404-59 a2ad88b298
Require architectury-loom 0.7.1.104 or higher 2021-05-05 16:37:44 +02:00
Username404-59 4e1453b94b
Update architectury-loom 2021-05-04 22:07:06 +02:00
Username404-59 f72acaaf9a
Only add the kotlin package as library jar for the proguard gradle task 2021-05-04 14:39:40 +02:00
Username404-59 5c3f606d26
Revert "Support snapshots in the mcBase variable"
This reverts commit 9e0a8fd9683a3e6b48c2d3c8de596a992a38d17f.
2021-05-03 15:24:25 +02:00
Username404-59 31d96c4dbb
Support snapshots in the mcBase variable 2021-05-03 15:20:20 +02:00
Username404-59 0bae4655f9
Add a comment to the build.gradle.kts file 2021-05-03 14:37:12 +02:00
Username404-59 aaa2366164
Downgrade kotlinx-datetime 2021-05-03 14:34:49 +02:00
Username404-59 8a03391c38
Add a kotlin_stdlib_version property to gradle.properties 2021-05-03 14:03:50 +02:00
Username404-59 c9624c9762
Use all available optimizations 2021-05-03 12:47:40 +02:00
Username404-59 9719276292
Fix kotlinx packages 2021-05-03 12:28:12 +02:00
Username404-59 481ebb1b60
Setup fabric-language-kotlin and kotlinforforge 2021-05-03 10:40:27 +02:00
Username404-59 6381b0f6ca
Enable all optimizations except object simplifications 2021-05-02 15:59:49 +02:00
Username404-59 53487c9a4d
Update proguard to 7.1.0-beta3 (and higher) and add mavenCentral to the repositories 2021-05-02 15:45:07 +02:00
Username404-59 601f1d4fd4
Set the minimum version of forgified-fabric-loom to 0.7.0.95. 2021-04-29 14:39:56 +02:00
Username404-59 91508cd1c4
Add maven-local to the repositories and use a maven-style version range for forgified-fabric-loom 2021-04-29 14:00:39 +02:00
Username404-59 61ccb4ae62
Keep forge-specific classes in the proguard gradle task 2021-04-28 21:59:57 +02:00
Username404-59 c2b87fddbc
Add kotlinx-coroutines + kotlinx-datetime, and save Configuration.obtained when it is constructed 2021-04-28 11:33:41 +02:00
Username404-59 282f873da4
Edit the version range of the architectury plugin 2021-04-27 22:20:00 +02:00
Username404-59 8ed7b55054
Shrink the packages a bit more 2021-04-27 20:40:12 +02:00
Username404-59 c19b2ce735
Flatten package hierarchy in the gradle proguard task and set the subprojects groups 2021-04-27 18:59:30 +02:00
Username404-59 b486342ce0
Call mergeinterfacesaggressively in the proguard task 2021-04-27 18:39:11 +02:00
Username404-59 f19de179b9
Remove tests from the check task dependencies 2021-04-27 16:41:23 +02:00
Username404-59 3d1f95b275
Use isJava9Compatible as a property in the root-level build.gradle.kts file 2021-04-27 10:15:11 +02:00
Username404 3a56cd3be2
Revert "Exclude a few things from the java.base.jmod dependency"
This reverts commit e84c497fc8b4919867c413730b9342c3d0d37490.
2021-04-27 03:04:06 +02:00
Username404-59 5365db200a
Exclude a few things from the java.base.jmod dependency 2021-04-27 02:49:54 +02:00
Username404-59 23633a3eeb
Support Java 9 and higher in the proguard task 2021-04-27 02:34:31 +02:00
Username404-59 b6c0988a24
Let the proguard task run on java 9+ 2021-04-27 02:25:08 +02:00
Username404-59 6f43f2de94
Remove jce.jar from the proguard task 2021-04-27 02:06:23 +02:00
Username404-59 3165dcb2a3
Update kotlin 2021-04-27 01:17:46 +02:00
Username404-59 1c6ca8b7ff
Change the version of architectury 2021-04-21 17:08:26 +02:00
Username404-59 2e3b38cf15
Clean the build script a bit 2021-04-21 16:31:32 +02:00
Username404-59 c3b7ae6e3e
Require architectury 3.0.100 or higher in the root-level build.gradle.kts 2021-04-20 22:11:22 +02:00
Username404 b7759bbd31
Fix architectury with kotlin 2021-04-20 15:03:40 +02:00
Username404 48220ec5e1
Revert "Temporarily downgrade architectury"
This reverts commit b719bf19
2021-04-20 15:01:47 +02:00
Username404-59 44b07a02ea
Temporarily downgrade architectury 2021-04-20 10:55:24 +02:00
Username404-59 6175158225
Put the base minecraft version in mod files during processing 2021-04-18 17:01:05 +02:00
Username404-59 9dbe16748f
Add a plugin to check updates. 2021-04-17 21:06:58 +02:00
Username404-59 80953b84c6
Obfuscate packages and parameter names too in the shrinkJar task 2021-04-17 18:48:28 +02:00
Username404-59 f8892fe01b
Delete the jar directories in the gradle clean task. 2021-04-17 15:22:57 +02:00
Username404-59 dc65bd45ae
Don't keep all attributes in the shrinked .jar files 2021-04-17 15:15:15 +02:00
Username404-59 bdddec5cc8
Move the libraryjars method calls in the proguard task. 2021-04-17 14:54:24 +02:00
Username404-59 d47de62bfa
Fix the shrinkJar task 2021-04-17 14:46:37 +02:00
Username404-59 dac1294ee3
Add a configuration made using the config4k library 2021-04-16 22:44:03 +02:00
Username404-59 d978898fe2
Shorten the publishToModrinth task a bit by removing a with() and use the addFile method 2021-04-15 21:08:21 +02:00
Username404-59 20fc1fd80d
Downgrade the fabric-resource-loader version to support versions older than 1.16.2 on fabric and add the minotaur plugin to publish to modrinth in the future 2021-04-15 17:17:49 +02:00
Username404-59 39d00c4ecd
Remove a deprecated option used by kotlin compilation tasks 2021-04-15 12:26:40 +02:00
Username404-59 fb787b3be2
Don't print proguard info about the packages under fr.username404. 2021-04-15 12:09:08 +02:00
Username404-59 701c299576
Fix how the two kotlin compiler arguments are added 2021-04-15 11:06:15 +02:00
Username404-59 86b1640c78
Update kotlin and enable a compiler mode for better lambdas 2021-04-15 10:59:29 +02:00
Username404-59 e4d5230257
Add proguard obfuscation dictionaries. 2021-04-14 20:36:05 +02:00
Username404-59 f609967006
Fix methods being deleted by proguard 2021-04-14 19:33:33 +02:00
Username404-59 f8ddd825ac
Optimize the shrinked jars and obfuscate them 2021-04-14 18:05:20 +02:00
Username404-59 3af606ce79
Remove the Main-Class attribute of .jar files. 2021-04-14 14:35:52 +02:00
Username404-59 b5fe315810
Remove a few line in the main build.gradle.kts file 2021-04-14 14:34:45 +02:00
Username404-59 cf75e7be39
Use proguard to shrink the produced .jar files, and completely remove the exec package + the bundled font. 2021-04-14 13:56:34 +02:00
Username404-59 8a1aa2680d
Update loom for full gradle 7 support 2021-04-13 10:50:56 +02:00
Username404-59 51662011b8
Don't process .ttf files. 2021-04-09 12:23:31 +02:00
Username404-59 4b8c4ae165
Call the minimize method correctly. 2021-04-08 21:55:01 +02:00
Username404-59 9a85f79695
Exclude mixins from minification 2021-04-08 21:50:20 +02:00
Username404-59 5cc170a3dd
Minimize the shadowed dependencies 2021-04-08 21:47:24 +02:00
Username404-59 47b9220ade
Process files that are not .png ones only to fix the mods.toml version field. 2021-04-08 20:32:07 +02:00
Username404-59 95af7d7cb8
Update forge, and fix "duplicate content roots" warnings from IntelliJ. 2021-04-08 17:31:47 +02:00
Username404-59 4d9cb45478
Include the common mod resources in the subprojects. 2021-04-08 16:22:38 +02:00
Username404-59 17b07458f8
Only process .json and .toml files in the ProcessResources gradle task. 2021-04-08 15:48:07 +02:00
Username404-59 fc59271dba
Don't disable the jar task, else every build will fail. 2021-04-08 15:04:05 +02:00
Username404-59 2b785ee9a2
Add a Jenkinsfile and a few other things 2021-04-08 14:13:37 +02:00
Username404-59 184d1f7f8f
Specify the mappings dependency only in the root project, and don't shadow every dependency. 2021-04-08 13:23:45 +02:00
Username404-59 3ff24b89eb
Configure the shadow plugin AFTER applying it. 2021-04-08 12:57:08 +02:00
Username404-59 3439da3e6b
Use a shadowC configuration, make an info window instead of an "installer", and include fabric-resource-loader-v0. 2021-04-08 12:55:20 +02:00
Username404-59 1c22266d7c
Add a package for the installer 2021-04-08 11:45:30 +02:00
Username404-59 d4198589e4
Fully target Java 8. 2021-04-08 11:35:51 +02:00
Username404-59 f0fe913d7c
Add mod information files for fabric and forge. 2021-04-08 10:52:22 +02:00
Username404-59 892e01df21
Fix a relocate statement 2021-04-08 10:22:48 +02:00
Username404-59 08f0a50a55
Initial commit. 2021-04-08 10:18:46 +02:00