Skip to content

Commit

Permalink
feat: 1.20.5 (#2)
Browse files Browse the repository at this point in the history
* deps: bump takenaka and Gradle

* feat: 1.20.5, client mappings

* fix: include 1.8.9
  • Loading branch information
zlataovce authored Apr 24, 2024
1 parent aaeed5a commit 1fe3424
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish bundle with Gradle
Expand Down
14 changes: 6 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import me.kcra.takenaka.core.mapping.ancestry.impl.computeIndices
import me.kcra.takenaka.core.mapping.resolve.impl.*
import me.kcra.takenaka.core.util.objectMapper
import me.kcra.takenaka.generator.common.provider.impl.*
import me.kcra.takenaka.generator.web.JDK_17_BASE_URL
import me.kcra.takenaka.generator.web.WebGenerator
import me.kcra.takenaka.generator.web.buildWebConfig
import me.kcra.takenaka.generator.web.modularClassSearchIndexOf
Expand Down Expand Up @@ -45,7 +44,7 @@ group = "me.kcra.takenaka" // change me
// format: <oldest version>+<newest version>[-SNAPSHOT]
// this is included in META-INF/MANIFEST.MF under Implementation-Version
// be nice to people who use the bundles and don't change the format
version = "1.8.8+1.20.4" // change me
version = "1.8.8+1.20.5" // change me

/**
* A three-way choice of mappings.
Expand All @@ -56,7 +55,7 @@ enum class PlatformTristate(val wantsClient: Boolean, val wantsServer: Boolean)
SERVER(false, true)
}

val platform = PlatformTristate.SERVER // change me
val platform = PlatformTristate.CLIENT_SERVER // change me

/**
* The root cache workspace.
Expand Down Expand Up @@ -111,11 +110,10 @@ val yarnProvider = YarnMetadataProvider(sharedCacheWorkspace, xmlMapper)
val mappingConfig = buildMappingConfig {
version(
manifest
.range("1.8.8", "1.20.4") { // change me
.range("1.8.8", "1.20.5") { // change me
// exclude 1.16 and 1.10.1, they don't have most mappings and are basically not used at all
// exclude 1.8.9, client-only update - no Spigot mappings, no thank you
// exclude 1.9.1 and 1.9.3 - no mappings at all
exclude("1.16", "1.10.1", "1.8.9", "1.9.1", "1.9.3")
exclude("1.16", "1.10.1", "1.9.1", "1.9.3")

// include only releases, no snapshots
includeTypes(Version.Type.RELEASE)
Expand Down Expand Up @@ -291,7 +289,7 @@ val webConfig = buildWebConfig {

transformer(CSSInliningTransformer("cdn.jsdelivr.net"))
transformer(MinifyingTransformer())
index(objectMapper.modularClassSearchIndexOf(JDK_17_BASE_URL))
index(objectMapper.modularClassSearchIndexOf("https://docs.oracle.com/en/java/javase/21/docs/api"))

replaceCraftBukkitVersions("spigot")
friendlyNamespaces("mojang", "spigot", "yarn", "searge", "intermediary", "source")
Expand Down Expand Up @@ -330,7 +328,7 @@ publishing {
artifact(createBundle)
pom {
name.set("mappings")
description.set("A mapping bundle with a basic set of mappings for Mojang-based server development.")
description.set("A mapping bundle with a basic set of mappings for Mojang-based server and client development.")
url.set("https://github.com/zlataovce/mappings") // change me
developers {
developer {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
takenaka = "1.1.1-SNAPSHOT"
takenaka = "1.1.2"

[libraries]
generator-web = { group = "me.kcra.takenaka", name = "generator-web", version.ref = "takenaka" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
14 changes: 7 additions & 7 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -202,11 +202,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
Expand Down
20 changes: 10 additions & 10 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down

0 comments on commit 1fe3424

Please sign in to comment.