Skip to content

Commit 6e7c611

Browse files
Merge branch 'main' into kotlin
2 parents 45a1f9e + ea500ba commit 6e7c611

9 files changed

Lines changed: 56 additions & 57 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@v7
1616
- name: Set up JDK
1717
uses: actions/setup-java@v5
1818
with:
1919
java-version: '25'
2020
distribution: 'temurin'
2121
- uses: gradle/actions/setup-gradle@v6
22-
with:
23-
gradle-version: 9.6.1
2422
name: Set up Gradle
2523
- name: Add permission
2624
run: chmod +x ./gradlew

.github/workflows/release-to-cf-mr.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
contents: write
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v6
13+
uses: actions/checkout@v7
1414
with:
1515
fetch-depth: 0
1616

@@ -21,8 +21,6 @@ jobs:
2121
distribution: 'temurin'
2222

2323
- uses: gradle/actions/setup-gradle@v6
24-
with:
25-
gradle-version: 9.6.1
2624
name: Set up Gradle
2725

2826
- name: Add permission
@@ -35,7 +33,7 @@ jobs:
3533
id: changes
3634
uses: simbo/changes-between-tags-action@v1
3735

38-
- uses: Kir-Antipov/mc-publish@v3.3.0
36+
- uses: Kir-Antipov/mc-publish@v3
3937
with:
4038
# Only include this section if you wish to publish
4139
# your assets on Modrinth.

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,20 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@v7
1515
- name: Set up JDK
1616
uses: actions/setup-java@v5
1717
with:
1818
java-version: '25'
1919
distribution: 'temurin'
2020
- uses: gradle/actions/setup-gradle@v6
21-
with:
22-
gradle-version: 9.6.1
2321
name: Set up Gradle
2422
- name: Add permission
2523
run: chmod +x ./gradlew
2624
- name: Execute Gradle build
2725
run: ./gradlew build
2826

29-
- uses: ncipollo/release-action@v1.21.0
27+
- uses: ncipollo/release-action@v1
3028
with:
3129
artifacts: "build/libs/*"
3230
generateReleaseNotes: true

build.gradle.kts

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,50 +11,51 @@ plugins {
1111
kotlin("jvm") version "2.4.0"
1212
id("com.gradleup.shadow") version "9.5.1"
1313
id("org.jetbrains.gradle.plugin.idea-ext") version "1.4.1"
14-
id("xyz.wagyourtail.unimined") version "1.4.26-kappa"
14+
id("xyz.wagyourtail.unimined") version "1.4.35-kappa"
1515
id("net.kyori.blossom") version "2.2.0"
1616
}
1717

18-
val mod_version: String by project
19-
val root_package: String by project
20-
val mod_id: String by project
21-
val mod_name: String by project
18+
val mod_version: String = project.property("mod_version") as String
19+
val root_package: String = project.property("root_package") as String
20+
val mod_id: String = project.property("mod_id") as String
21+
val mod_name: String = project.property("mod_name") as String
2222

2323
require(mod_version.isNotEmpty()) { "mod_version is empty!" }
2424
require(root_package.isNotEmpty()) { "root_package is empty!" }
2525
require(mod_id.isNotEmpty()) { "mod_id is empty!" }
2626
require(mod_name.isNotEmpty()) { "mod_name is empty!" }
2727

28-
val generate_sources_jar: String by project
28+
val generate_sources_jar: String = project.property("generate_sources_jar") as String
2929
val generateSourcesJar = generate_sources_jar.toBoolean()
30-
val generate_javadocs_jar: String by project
30+
val generate_javadocs_jar: String = project.property("generate_javadocs_jar") as String
3131
val generateJavadocsJar = generate_javadocs_jar.toBoolean()
32-
val minecraft_username: String by project
33-
val extra_jvm_args: String by project
34-
val enable_shadow: String by project
32+
val minecraft_username: String = project.property("minecraft_username") as String
33+
val extra_jvm_args: String = project.property("extra_jvm_args") as String
34+
val enable_shadow: String = project.property("enable_shadow") as String
3535
val enableShadow = enable_shadow.toBoolean()
36-
val use_access_transformer: String by project
36+
val use_access_transformer: String = project.property("use_access_transformer") as String
3737
val useAccessTransformer = use_access_transformer.toBoolean()
38-
val is_coremod: String by project
38+
val is_coremod: String = project.property("is_coremod") as String
3939
val isCoremod = is_coremod.toBoolean()
40-
val coremod_includes_mod: String by project
40+
val coremod_includes_mod: String = project.property("coremod_includes_mod") as String
4141
val coremodIncludesMod = coremod_includes_mod.toBoolean()
42-
val coremod_plugin_class_name: String by project
43-
val use_asset_mover: String by project
42+
val coremod_plugin_class_name: String = project.property("coremod_plugin_class_name") as String
43+
val use_asset_mover: String = project.property("use_asset_mover") as String
4444
val useAssetMover = use_asset_mover.toBoolean()
45-
val asset_mover_version: String by project
46-
val enable_junit_testing: String by project
45+
val asset_mover_version: String = project.property("asset_mover_version") as String
46+
val enable_junit_testing: String = project.property("enable_junit_testing") as String
4747
val enableJunitTesting = enable_junit_testing.toBoolean()
48-
val show_testing_output: String by project
48+
val show_testing_output: String = project.property("show_testing_output") as String
4949
val showTestingOutput = show_testing_output.toBoolean()
50-
val enable_foundation_debug: String by project
50+
val enable_foundation_debug: String = project.property("enable_foundation_debug") as String
5151
val enableFoundationDebug = enable_foundation_debug.toBoolean()
52-
val mod_description: String by project
53-
val mod_authors: String by project
54-
val mod_credits: String by project
55-
val mod_url: String by project
56-
val mod_update_json: String by project
57-
val mod_logo_path: String by project
52+
val mod_description: String = project.property("mod_description") as String
53+
val mod_authors: String = project.property("mod_authors") as String
54+
val mod_credits: String = project.property("mod_credits") as String
55+
val mod_url: String = project.property("mod_url") as String
56+
val mod_update_json: String = project.property("mod_update_json") as String
57+
val mod_logo_path: String = project.property("mod_logo_path") as String
58+
val mod_issue_tracker: String = project.property("mod_issue_tracker") as String
5859

5960
val access_transformer_locations: String = "${mod_id}_at.cfg"
6061

@@ -92,11 +93,11 @@ kotlin {
9293
}
9394

9495
configurations {
95-
val contain by creating
96+
val contain = create("contain")
9697
implementation { extendsFrom(contain) }
97-
val modCompileOnly by creating
98+
val modCompileOnly = create("modCompileOnly")
9899
compileOnly { extendsFrom(modCompileOnly) }
99-
val modRuntimeOnly by creating
100+
val modRuntimeOnly = create("modRuntimeOnly")
100101
runtimeOnly { extendsFrom(modRuntimeOnly) }
101102
}
102103

@@ -113,7 +114,7 @@ unimined.minecraft {
113114
if (useAccessTransformer) {
114115
accessTransformer("${rootProject.projectDir}/src/main/resources/$access_transformer_locations")
115116
}
116-
loader("0.5.17-alpha")
117+
loader("0.6.10-alpha")
117118
runs.all {
118119
args.addAll(listOf("--username", minecraft_username))
119120
if (extra_jvm_args.isNotEmpty()) {
@@ -144,10 +145,8 @@ unimined.minecraft {
144145
}
145146

146147
mods {
147-
val modCompileOnly by configurations.getting
148-
val modRuntimeOnly by configurations.getting
149-
remap(modCompileOnly)
150-
remap(modRuntimeOnly)
148+
remap(configurations.getByName("modCompileOnly"))
149+
remap(configurations.getByName("modRuntimeOnly"))
151150
}
152151
}
153152

@@ -188,6 +187,7 @@ sourceSets {
188187
property("mod_url", mod_url)
189188
property("mod_update_json", mod_update_json)
190189
property("mod_logo_path", mod_logo_path)
190+
property("mod_issue_tracker", mod_issue_tracker)
191191
}
192192
}
193193
}
@@ -220,7 +220,7 @@ idea {
220220
}
221221
}
222222
taskTriggers {
223-
afterSync(tasks.named("genSources"))
223+
beforeSync(tasks.named("genSources"))
224224
}
225225
}
226226
}
@@ -229,7 +229,7 @@ idea {
229229
tasks.jar {
230230
archiveClassifier = "dev"
231231
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
232-
val contain by configurations.getting
232+
val contain = configurations.getByName("contain")
233233
if (!contain.isEmpty) {
234234
into("/") {
235235
from(contain)

buildSrc/src/main/kotlin/dependencies.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
java
33
}
44

5-
val enable_lwjglx: String by project
5+
val enable_lwjglx: String = project.property("enable_lwjglx") as String
66
val enableLwjglx = enable_lwjglx.toBoolean()
77

88
repositories {
@@ -29,12 +29,13 @@ repositories {
2929
mavenLocal() // Must be last for caching to work
3030
}
3131
dependencies {
32-
compileOnly("com.cleanroommc:sponge-mixin:0.20.13+mixin.0.8.7")
33-
implementation("io.github.chaosunity.forgelin:Forgelin-Continuous:2.4.0.0")
3432
if (enableLwjglx) {
3533
compileOnly("com.cleanroommc:lwjglx:1.0.0")
3634
}
3735

36+
add("modImplementation", "io.github.chaosunity.forgelin:Forgelin-Continuous:2.4.0.0")
37+
add("modImplementation", "mezz:jei:4.33.0:dev")
38+
3839
// Example - Dependency descriptor:
3940
// 'com.google.code.gson:gson:2.8.6' << group: com.google.code.gson, name:gson, version:2.8.6
4041
// 'group:name:version:classifier' where classifier is optional

buildSrc/src/main/kotlin/publishing.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
val publish_to_maven: String by project
1+
val publish_to_maven: String = project.property("publish_to_maven") as String
22
val publishToMaven = publish_to_maven.toBoolean()
3-
val maven_name: String by project
4-
val maven_url: String by project
5-
val root_package: String by project
6-
val mod_id: String by project
3+
val maven_name: String = project.property("maven_name") as String
4+
val maven_url: String = project.property("maven_url") as String
5+
val root_package: String = project.property("root_package") as String
6+
val mod_id: String = project.property("mod_id") as String
77

88
plugins {
99
`maven-publish`

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ mod_update_json =
3232
mod_authors =
3333
mod_credits =
3434
mod_logo_path =
35+
mod_issue_tracker =
3536

3637
# Run Configurations
3738
# If multiple arguments/tweak classes are stated, use spaces as the delimiter

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/resource-templates/mcmod.info

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
"credits": "{{ mod_credits }}",
99
"url": "{{ mod_url }}",
1010
"updateJSON": "{{ mod_update_json }}",
11-
"logoFile": "{{ mod_logo_path }}"
12-
}]
11+
"logoFile": "{{ mod_logo_path }}",
12+
"modProperties": {
13+
"issueTrackerUrl": "{{ mod_issue_tracker }}"
14+
}
15+
}]

0 commit comments

Comments
 (0)