Skip to content

Commit 9b09d47

Browse files
committed
+ fix gradle
+ add remote build logic + up gradle to 8.8
1 parent 13e277d commit 9b09d47

File tree

14 files changed

+186
-247
lines changed

14 files changed

+186
-247
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "remote-build-logic"]
2+
path = remote-build-logic
3+
url = https://github.com/GT-IMPACT/BuildConfig.git
4+
branch = main

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# ImpactAPI
1+
# ImpactAPI
2+
3+
[![Latest Release](https://img.shields.io/github/v/tag/GT-IMPACT/ImpactAPI?label=Latest&sort=semver)](https://github.com/GT-IMPACT/ImpactAPI/releases/latest)

build-logic/plugins/build.gradle.kts

Lines changed: 0 additions & 11 deletions
This file was deleted.

build-logic/plugins/src/main/kotlin/CommonMinecraft.kt

Lines changed: 0 additions & 43 deletions
This file was deleted.

build-logic/plugins/src/main/kotlin/minecraft.gradle.kts

Lines changed: 0 additions & 37 deletions
This file was deleted.

build-logic/plugins/src/main/kotlin/publish.gradle.kts

Lines changed: 0 additions & 89 deletions
This file was deleted.

build-logic/settings.gradle.kts

Lines changed: 0 additions & 33 deletions
This file was deleted.

build.gradle.kts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
1-
plugins {
2-
alias(libs.plugins.buildconfig)
3-
id("minecraft")
4-
id("publish")
5-
}
1+
import settings.getVersionMod
62

7-
repositories {
8-
mavenCentral()
9-
mavenLocal()
3+
plugins {
4+
alias(libs.plugins.setup.minecraft)
5+
alias(libs.plugins.setup.publish)
6+
id(libs.plugins.buildconfig.get().pluginId)
107
}
118

129
val modId: String by extra
1310
val modName: String by extra
1411
val modGroup: String by extra
1512

13+
extra.set("modVersion", getVersionMod())
14+
1615
buildConfig {
1716
packageName("space.impact.$modId")
1817
buildConfigField("String", "MODID", "\"${modId}\"")
1918
buildConfigField("String", "MODNAME", "\"${modName}\"")
20-
buildConfigField("String", "VERSION", "\"${project.version}\"")
19+
buildConfigField("String", "VERSION", "\"${getVersionMod()}\"")
2120
buildConfigField("String", "GROUPNAME", "\"${modGroup}\"")
2221
useKotlinOutput { topLevelConstants = true }
2322
}
2423

24+
repositories {
25+
maven("https://maven.accident.space/repository/maven-public/") {
26+
mavenContent {
27+
includeGroup("space.impact")
28+
includeGroupByRegex("space\\.impact\\..+")
29+
}
30+
}
31+
}
32+
2533
dependencies {
2634
compileOnly(fileTree(mapOf("dir" to "libs/", "include" to listOf("*.jar"))))
2735
}

gradle.properties

Lines changed: 115 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,116 @@
1-
modGroup = space.impact
2-
modId = impactapi
1+
rfg.disableDependencyDeobfuscation=false
2+
3+
# Human-readable mod name, available for mcmod.info population.
34
modName = ImpactAPI
5+
6+
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
7+
# Conventionally lowercase.
8+
modId = impactapi
9+
10+
# Root package of the mod, used to find various classes in other properties,
11+
# mcmod.info substitution, enabling assertions in run tasks, etc.
12+
modGroup = space.impact
13+
14+
# Whether to use modGroup as the maven publishing group.
15+
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
16+
useModGroupForPublishing = false
17+
18+
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
19+
autoUpdateBuildScript = false
20+
21+
# Version of Minecraft to target
22+
minecraftVersion = 1.7.10
23+
24+
# Version of Minecraft Forge to target
25+
forgeVersion = 10.13.4.1614
26+
27+
# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
28+
channel = stable
29+
30+
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
31+
mappingsVersion = 12
32+
33+
# Defines other MCP mappings for dependency deobfuscation.
34+
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
35+
36+
# Select a default username for testing your mod. You can always override this per-run by running
37+
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
38+
developmentEnvironmentUserName = Developer
39+
40+
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
41+
# See https://github.com/bsideup/jabel for details on how this works.
42+
enableModernJavaSyntax = false
43+
44+
# Enables injecting missing generics into the decompiled source code for a better coding experience.
45+
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
46+
enableGenericInjection = true
47+
48+
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
49+
# leave this property empty.
50+
# Example value: (apiPackage = api) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.api
51+
apiPackage =
52+
53+
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
54+
# There can be multiple files in a space-separated list.
55+
# Example value: mymodid_at.cfg nei_at.cfg
56+
accessTransformersFile =
57+
58+
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
59+
usesMixins = false
60+
61+
# Adds some debug arguments like verbose output and export
62+
usesMixinDebug = false
63+
64+
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
65+
mixinPlugin =
66+
67+
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
68+
mixinsPackage =
69+
70+
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
71+
# This parameter is for legacy compatibility only
72+
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
73+
coreModClass =
74+
75+
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
76+
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
77+
containsMixinsAndOrCoreModOnly = false
78+
79+
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
80+
forceEnableMixins = false
81+
82+
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
83+
# responsibility to check the license and request permission for distribution if required.
84+
usesShadowedDependencies = true
85+
86+
# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
87+
# their own classes, making the minimization unreliable.
88+
minimizeShadowedDependencies = true
89+
90+
# If disabled, won't rename the shadowed classes.
91+
relocateShadowedDependencies = true
92+
93+
# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
94+
includeWellKnownRepositories = true
95+
96+
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
97+
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
98+
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
99+
usesMavenPublishing = true
100+
101+
mavenPublishUrl = https://maven.accident.space/repository/maven-releases/
102+
103+
mavenGroupId = space.impact
104+
105+
disableSpotless = true
106+
107+
# Disable git-based version detection, make sure to set project.version to a sensible value yourself
108+
gtnh.modules.gitVersion = false
109+
110+
# Disable all GTNH code style checks (like Spotless autoformatting, CheckStyle rules, and any future additions)
111+
gtnh.modules.codeStyle = false
112+
113+
# Disables lwjgl3ify-based utilities for working with and running with modern Java versions
114+
gtnh.modules.modernJava = false
115+
116+
org.gradle.configureondemand=true

0 commit comments

Comments
 (0)