Skip to content

Commit

Permalink
fix gra
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Dec 18, 2023
1 parent 998b712 commit b25ad37
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
28 changes: 19 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ ext {
]
}
MAPPING_CHANNEL = 'official'
MC_VERSION = '1.20.2-pre2'
MC_VERSION = '1.20.1'
MAPPING_VERSION = MC_VERSION
MC_NEXT_VERSION = '1.21'
MCP_VERSION = '20230911.115402'
MCP_VERSION = '20230612.114412'
SNAPSHOT = false

SPI_VERSION = '7.0.1'
Expand Down Expand Up @@ -1025,6 +1025,7 @@ project(':forge') {
}

genPatches {
// finalizedBy checkAndFixPatches
autoHeader true
lineEnding = '\n'
}
Expand Down Expand Up @@ -1361,7 +1362,7 @@ project(':forge') {
}
}

task installerJar(type: InstallerJar, dependsOn: [genClientBinPatches, genServerBinPatches, installerJson, launcherJson, 'signUniversalJar']) {
task installerJar(type: InstallerJar, dependsOn: [genClientBinPatches, genServerBinPatches, 'signUniversalJar', launcherJson, installerJson]) {
packedDependencies = PACKED_DEPS
from(extraTxts)
from(rootProject.file('/forge_installer_logo.png')) {
Expand Down Expand Up @@ -1475,10 +1476,6 @@ project(':forge') {
rename { 'data/user_jvm_args.txt' }
}
}

tasks.register('devInstallerJar', DevInstallerJar) {
input = installerJar.archiveFile
}

license {
header = file("$rootDir/LICENSE-header.txt")
Expand All @@ -1490,15 +1487,29 @@ project(':forge') {
main {
files.from files("$rootDir/src/main/java")
}
test {
files.from files("$rootDir/src/test/java")
}
}
}

tasks.register('genAllData') {
dependsOn 'forge_data'
dependsOn 'forge_data', 'forge_test_data'
}

tasks.eclipse.dependsOn('genEclipseRuns')

if (project.hasProperty('UPDATE_MAPPINGS')) {
extractRangeMap {
sources.from sourceSets.test.java.srcDirs
addDependencies compileTestJava.classpath
}
applyRangeMap {
sources.from sourceSets.test.java.srcDirs
}
sourceSets.test.java.srcDirs.each { extractMappedNew.addTarget it }
}

tasks.named('javadoc', Javadoc).configure {
description 'Generates the combined javadocs for the FML projects and the main Forge project'
var includedProjects = [ ':fmlcore', ':fmlloader', ':javafmllanguage', ':mclanguage' ]
Expand Down Expand Up @@ -1582,7 +1593,6 @@ project(':forge') {
artifact universalJar
artifact installerJar
//TODO: installer-win
artifact makeMdk
artifact userdevJar
artifact sourcesJar
}
Expand Down
9 changes: 8 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ plugins {
dependencyResolutionManagement {
versionCatalogs {
libs {
library('securemodules', 'net.minecraftforge:securemodules:2.2.3') // Needs unsafe
// Terminal Console Appender.. essentually make pretty colors in the console, but it's been a PITA
library('terminalconsoleappender', 'net.minecrell:terminalconsoleappender:1.2.0')
version('jline', '3.21.0')
library('jline-reader', 'org.jline', 'jline-reader' ).versionRef('jline')
library('jline-terminal', 'org.jline', 'jline-terminal' ).versionRef('jline')
bundle('terminalconsoleappender', ['terminalconsoleappender', 'jline-reader', 'jline-terminal'])
//Ketting libs
library('jline-jansi', 'org.jline', 'jline-terminal-jansi').versionRef('jline')
library('jline-jansi', 'org.jline', 'jline-terminal-jansi').version('3.21.0')
library('jansi', 'org.fusesource.jansi', 'jansi').version('1.18')
library('jline', 'jline', 'jline').version('2.13')
bundle('jline-extras', ['jline-jansi', 'jansi', 'jline']) //Apparently the order here is important, don't ask me why, magic.
Expand Down

0 comments on commit b25ad37

Please sign in to comment.