1- import org.jetbrains.changelog.Changelog
2- import org.jetbrains.gradle.ext.Gradle
1+ import org.jetbrains.gradle.ext.Gradle
32
43plugins {
54 id ' java'
65 id ' java-library'
76 id ' maven-publish'
87 id ' org.jetbrains.gradle.plugin.idea-ext' version ' 1.1.10'
98 id ' org.jetbrains.changelog' version ' 2.2.1'
10- id ' xyz.wagyourtail.unimined' version ' 1.4.1 '
9+ id ' xyz.wagyourtail.unimined' version ' 1.4.9-kappa '
1110}
1211
1312apply from : ' gradle/scripts/helpers.gradle'
@@ -33,13 +32,13 @@ version = propertyString('mod_version')
3332group = propertyString(' root_package' )
3433
3534base {
36- archivesName. set( propertyString(' mod_id' ) )
35+ archivesName = propertyString(' mod_id' )
3736}
3837
3938
4039java {
4140 toolchain {
42- languageVersion. set( JavaLanguageVersion . of(21 ) )
41+ languageVersion = JavaLanguageVersion . of(21 )
4342 }
4443 if (propertyBool(' generate_sources_jar' )) {
4544 withSourcesJar()
@@ -64,9 +63,9 @@ unimined.minecraft {
6463
6564 cleanroom {
6665 if (propertyBool(' use_access_transformer' )) {
67- accessTransformer ' src/main/resources/META-INF/' + propertyString(' access_transformer_locations' )
66+ accessTransformer " src/main/resources/META-INF/${ propertyString('access_transformer_locations')} "
6867 }
69- loader " 0.3.13 -alpha"
68+ loader " 0.3.31 -alpha"
7069 runs. config(" client" ) {
7170 jvmArgs extra_jvm_args
7271 }
@@ -205,18 +204,6 @@ test {
205204 }
206205}
207206
208- String parserChangelog () {
209- if (! file(' CHANGELOG.md' ). exists()) {
210- throw new GradleException (' publish_with_changelog is true, but CHANGELOG.md does not exist in the workspace!' )
211- }
212- String parsedChangelog = changelog. renderItem(
213- changelog. get(propertyString(' mod_version' )). withHeader(false ). withEmptySections(false ),
214- Changelog.OutputType . MARKDOWN )
215- if (parsedChangelog. isEmpty()) {
216- throw new GradleException (' publish_with_changelog is true, but the changelog for the latest version is empty!' )
217- }
218- return parsedChangelog
219- }
220207
221208def injectTags () {
222209 var target = new File (" ${ rootProject.projectDir} /src/main/java/${ root_package.replace('.', '/')} /${ mod_id} /Reference.java" )
0 commit comments