Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 51 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,7 @@ tableau {
project {
group = "com.ldtteam"
publisher = "LDTTeam"
modId = "domum_ornamentum"
}

sourceSets {
api {
isPartOfPrimaryJar = true
neogradle {
isModSource = true
}
}
main {
dependencies {
implementation sourceSets.named('api')
}
}
modId = "blockui"
}

maven {
Expand All @@ -27,4 +13,53 @@ tableau {
usingGit()
})
}
}
}

dependencies {
testImplementation 'junit:junit:4.13.2'
}

// NeoGradle 7.1.x does not strip @OnlyIn annotations that Vineflower adds back
// during decompilation for MC 26.x. The NeoForm and UserDev patches expect them
// removed before nested type declarations. We also restore blank-line separators.
tasks.matching { it.name == 'neoFormPatch' }.configureEach {
doFirst {
def decompileJar = project.file("build/neoForm/neoFormJoined26.2-2/steps/decompile/outputs.jar")
if (!decompileJar.exists()) return

def workDir = new File(project.buildDir, "onlyin-fix")
workDir.deleteDir()
workDir.mkdirs()

def zipTree = project.zipTree(decompileJar)
def javaFiles = []
zipTree.visit { details ->
def dest = new File(workDir, details.path)
if (details.directory) {
return
}
if (!dest.name.endsWith('.java')) {
return
}

dest.parentFile.mkdirs()
details.copyTo(dest)
javaFiles << dest
}

javaFiles.each { f ->
def text = f.text
def fixed = text.replaceAll(
/(?m)^( +)@OnlyIn\s*\([^)]*\)\n(\1(?:public |private |protected )?(?:static |final |abstract )?(?:class |interface |record |enum |@interface ))/,
'$2')
fixed = fixed.replaceAll(
/(?m)^(\}+)\n( +(?:public|private|protected)\s+(?:static\s+)?(?:class |record |interface |enum ))/,
'$1\n\n$2')
if (fixed != text) f.text = fixed
}

def ant = new groovy.ant.AntBuilder()
ant.jar(destfile: decompileJar.absolutePath, basedir: workDir, update: true)
workDir.deleteDir()
}
}
33 changes: 21 additions & 12 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache=false

local.version=0.0.1
modId=blockui
modGroup=com.ldtteam
local.version=0.0.1-local

javaVersion=25
useJavaToolChains=true

modId=blockui
type=MOD
description=XML Based Minecraft UI Library
# Minecraft and NeoForge
minecraft.version=26.2
minecraft.additionalVersions=
neoforge.version=26.2.0.66

#The currently running forge.
neoforge.version=26.1.0.0-alpha.11+snapshot-7
fml_range=[11,)
neoforge_range=[26.2,)
minecraft_range=[26.2, 27)
#Semicolon seperated list of mc versions, which are marked as compatible on curseforge
additionalMinecraftVersions=

curseId=522992
usesCurse=true
githubUrl=https://github.com/ldtteam/BlockUI
gitUrl=https://github.com/ldtteam/BlockUI.git
gitConnectUrl=https://github.com/ldtteam/BlockUI.git
projectUrl=https://github.com/ldtteam/BlockUI

### Minecraft
minecraft.version=26.1-snapshot-7
minecraft.additionalVersions=
curse.id=522992
usesCurse=true

useDefaultTestSystem=true
runtimeSourceSets=main
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
9 changes: 3 additions & 6 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pluginManagement {
}

plugins {
id 'com.ldtteam.tableau' version '0.0.87'
id 'com.ldtteam.tableau' version '0.0.96-j21.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
}

Expand All @@ -19,5 +19,4 @@ rootProject.name = 'blockui'
features {
usesGit = true
usesCurse = true
usesParchment = true
}
}
121 changes: 0 additions & 121 deletions src/main/java/com/ldtteam/blockui/AtlasManager.java

This file was deleted.

Loading