diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..00a51aff5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# These are explicitly windows files and should use crlf +*.bat text eol=crlf + diff --git a/.gitignore b/.gitignore index f1c0d06e6..6cce2ea2c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,9 @@ out/ .idea/ *.iml hs_err_pid*.log + +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build diff --git a/.idea/copyright/GPLv3.xml b/.idea/copyright/GPLv3.xml index 75633d82e..9e57c7d7e 100644 --- a/.idea/copyright/GPLv3.xml +++ b/.idea/copyright/GPLv3.xml @@ -1,6 +1,6 @@ - - \ No newline at end of file + diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 000000000..df69bb6e1 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,234 @@ +/* + * Minosoft + * Copyright (C) 2020-2022 Moritz Zwerger + * + * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with this program. If not, see . + * + * This software is not affiliated with Mojang AB, the original developer of Minecraft. + */ + +import de.bixilon.kutil.os.Architectures +import de.bixilon.kutil.os.OSTypes +import de.bixilon.kutil.os.PlatformInfo +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + + +plugins { + kotlin("jvm") version "1.7.20" + id("org.openjfx.javafxplugin") version "0.0.13" + application +} + +fun getProperty(name: String): String { + val value = property(name) ?: throw NullPointerException("Can not find $name property") + return value.toString() +} + +group = "de.bixilon.minosoft" +version = "0.1-pre" + +val javafxVersion = getProperty("javafx.version") +val lwjglVersion = getProperty("lwjgl.version") +val ikonliVersion = getProperty("ikonli.version") +val nettyVersion = getProperty("netty.version") +val jacksonVersion = getProperty("jackson.version") +val kutilVersion = getProperty("kutil.version") + + +repositories { + mavenCentral() + maven("https://oss.sonatype.org/content/repositories/snapshots") +} + +buildscript { + dependencies { + classpath("de.bixilon", "kutil", "1.17") + } +} + +var lwjglNatives = "" +var zstdNatives = "" +var javafxNatives = "" + +when (PlatformInfo.OS) { + OSTypes.LINUX -> { + lwjglNatives += "linux" + zstdNatives += "linux" + javafxNatives += "linux" + + when (PlatformInfo.ARCHITECTURE) { + Architectures.AMD64 -> { + zstdNatives += "_amd64" + } + + Architectures.AARCH64, Architectures.ARM -> { + lwjglNatives += "-arm64" + zstdNatives += "_aarch64" + javafxNatives += "-aarch64" + } + + else -> throw IllegalArgumentException("Can not determinate linux natives on ${PlatformInfo.ARCHITECTURE}") + } + } + + OSTypes.MAC -> { + lwjglNatives += "macos" + zstdNatives += "darwin" + javafxNatives += "mac" + + when (PlatformInfo.ARCHITECTURE) { + Architectures.AMD64, Architectures.X86 -> { + zstdNatives += "_x86_64" + } + + Architectures.AARCH64, Architectures.ARM -> { + lwjglNatives += "-arm64" + zstdNatives += "_aarch64" + javafxNatives += "-aarch64" + } + + else -> throw IllegalArgumentException("Can not determinate macos natives on ${PlatformInfo.ARCHITECTURE}") + } + } + + OSTypes.WINDOWS -> { + lwjglNatives += "windows" + zstdNatives += "win" + javafxNatives += "win" + + when (PlatformInfo.ARCHITECTURE) { + Architectures.AMD64 -> { + zstdNatives += "_amd64" + } + + Architectures.X86 -> { + lwjglNatives += "-x86" + zstdNatives += "-x86" + javafxNatives += "-x86" + } + + else -> throw IllegalArgumentException("Can not determinate windows natives on ${PlatformInfo.ARCHITECTURE}") + } + } + + else -> { + throw IllegalArgumentException("Can not determinate natives for ${PlatformInfo.OS} on ${PlatformInfo.ARCHITECTURE}") + } +} + +fun DependencyHandler.javafx(name: String) { + implementation("org.openjfx", "javafx-$name", javafxVersion, classifier = javafxNatives) +} + +fun DependencyHandler.ikonli(name: String) { + implementation("org.kordamp.ikonli", "ikonli-$name", ikonliVersion) +} + +fun DependencyHandler.jackson(group: String, name: String) { + implementation("com.fasterxml.jackson.$group", "jackson-$group-$name", jacksonVersion) +} + +fun DependencyHandler.netty(name: String) { + implementation("io.netty", "netty-$name", nettyVersion) +} + +fun DependencyHandler.lwjgl(name: String) { + var artifactId = "lwjgl" + if (name.isNotEmpty()) { + artifactId += "-$name" + } + implementation("org.lwjgl", artifactId, lwjglVersion) + runtimeOnly("org.lwjgl", artifactId, lwjglVersion, classifier = "natives-$lwjglNatives") +} + +dependencies { + implementation("org.slf4j", "slf4j-api", "2.0.3") + implementation("com.google.guava", "guava", "31.1-jre") + implementation("dnsjava", "dnsjava", "3.5.1") + implementation("net.sourceforge.argparse4j", "argparse4j", "0.9.0") + implementation("org.jline", "jline", "3.21.0") + implementation("org.l33tlabs.twl", "pngdecoder", "1.0") + implementation("com.github.oshi", "oshi-core", "6.2.2") + implementation("com.github.luben", "zstd-jni", "1.5.2-3", classifier = zstdNatives) + implementation("org.apache.commons", "commons-lang3", "3.12.0") + implementation("org.kamranzafar", "jtar", "2.3") + implementation("org.reflections", "reflections", "0.10.2") + implementation("it.unimi.dsi", "fastutil-core", "8.5.9") + testImplementation("org.objenesis", "objenesis", "3.3") + + // javafx + javafx("graphics") + javafx("controls") + javafx("fxml") + + // ikonli + ikonli("fontawesome5-pack") + ikonli("javafx") + + // jackson + jackson("module", "kotlin") + jackson("datatype", "jsr310") + + + // de.bixilon + implementation("de.bixilon", "kutil", kutilVersion) + implementation("de.bixilon", "jiibles", "1.1.1") + implementation("de.bixilon", "kotlin-glm", "0.9.9.1-6") + implementation("de.bixilon", "mbf-kotlin", "0.2.1") { exclude("com.github.luben", "zstd-jni") } + implementation("de.bixilon.javafx", "javafx-svg", "0.3") { exclude("org.openjfx", "javafx-controls") } + + // netty + netty("buffer") + netty("handler") + + + // lwjgl + implementation(platform("org.lwjgl:lwjgl-bom:$lwjglVersion")) + lwjgl("") + lwjgl("glfw") + lwjgl("openal") + lwjgl("opengl") + lwjgl("stb") + + // kotlin + implementation(kotlin("reflect")) + testImplementation(kotlin("test")) + + + // platform specific + if (PlatformInfo.OS == OSTypes.LINUX) { + val nettyNatives = when (PlatformInfo.ARCHITECTURE) { + Architectures.AMD64, Architectures.X86 -> "x86_64" + Architectures.ARM, Architectures.AARCH64 -> "aarch64" + else -> throw IllegalArgumentException("Can not determinate netty natives for ${PlatformInfo.ARCHITECTURE}") + } + implementation("io.netty", "netty-transport-native-epoll", nettyVersion, classifier = "linux-$nettyNatives") + } else { + compileOnly("io.netty", "netty-transport-native-epoll", nettyVersion) + } +} + +tasks.test { + useJUnitPlatform() +} +java { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 +} + +tasks.withType { + kotlinOptions.jvmTarget = "11" + // kotlinOptions.useK2 = true // ToDo: Really? boosts the performance a lot +} + +application { + mainClass.set("de.bixilon.minosoft.Minosoft") +} +javafx { + version = javafxVersion + modules("javafx.controls", "javafx.fxml") +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 000000000..6e8674fd5 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,20 @@ +# +# Minosoft +# Copyright (C) 2020-2022 Moritz Zwerger +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. If not, see . +# +# This software is not affiliated with Mojang AB, the original developer of Minecraft. +# +kotlin.daemon.jvmargs=-Xmx1500M +kotlin.code.style=official +javafx.version=19 +lwjgl.version=3.3.2-SNAPSHOT +ikonli.version=12.3.1 +netty.version=4.1.82.Final +jackson.version=2.13.4 +kutil.version=1.17 diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..249e5832f Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..9a0db3353 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,18 @@ +# +# Minosoft +# Copyright (C) 2020-2022 Moritz Zwerger +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. If not, see . +# +# This software is not affiliated with Mojang AB, the original developer of Minecraft. +# + +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 000000000..8a9288f18 --- /dev/null +++ b/gradlew @@ -0,0 +1,231 @@ +#!/bin/sh + +# +# Minosoft +# Copyright (C) 2020-2022 Moritz Zwerger +# +# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with this program. If not, see . +# +# This software is not affiliated with Mojang AB, the original developer of Minecraft. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# 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"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# 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. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 000000000..107acd32c --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "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. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +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. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/pom.xml b/pom.xml deleted file mode 100644 index b6623d03c..000000000 --- a/pom.xml +++ /dev/null @@ -1,578 +0,0 @@ - - - - - 4.0.0 - - de.bixilon - Minosoft - 0.1-pre - - - - org.jetbrains.kotlin - kotlin-maven-plugin - ${kotlin.version} - - - compile - compile - - compile - - - - test-compile - test-compile - - test-compile - - - - - ${maven.compiler.target} - - ${project.basedir}/src/test/java - ${project.basedir}/src/integration-test/kotlin - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - - default-compile - none - - - default-testCompile - none - - - java-compile - compile - - compile - - - - java-test-compile - test-compile - - testCompile - - - - - ${maven.compiler.source} - ${maven.compiler.target} - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.3.0 - - - - jar-with-dependencies - - - - - - make-assembly - package - - single - - - - - de.bixilon.minosoft.Minosoft - - - - - - - - pl.project13.maven - git-commit-id-plugin - 3.0.1 - - - get-the-git-infos - - revision - - - - - ${project.basedir}/.git - git - false - true - ${project.build.outputDirectory}/assets/minosoft/git.json - json - - false - false - -dirty - - - git.remote.* - - - - - org.apache.maven.plugins - maven-surefire-report-plugin - 2.22.2 - - - org.apache.maven.plugins - maven-failsafe-plugin - 2.22.1 - - - pre-integration-tests - pre-integration-test - - - de/bixilon/minosoft/setup/** - - - - pre-integration-tests - - - - integration-tests - integration-test - - - - de/bixilon/minosoft/test/** - - - - - integration-tests - - - - - - - - - - - natives-linux-amd64 - - - unix - amd64 - - - - linux - linux_amd64 - linux - x86_64 - - - - natives-linux-aarch64 - - - unix - aarch64 - - - - linux-arm64 - linux_aarch64 - linux-aarch64 - aarch64 - - - - natives-macos-amd64 - - - mac - amd64 - - - - macos - darwin_x86_64 - mac - - - - natives-macos-x86_64 - - - mac - x86_64 - - - - macos - darwin_x86_64 - mac - - - - natives-macos-aarch64 - - - mac - aarch64 - - - - macos-arm64 - darwin_aarch64 - mac-aarch64 - - - - natives-windows-amd64 - - - windows - amd64 - - - - windows - win_amd64 - win - - - - natives-windows-x86 - - - windows - x86 - - - - windows-x86 - win_x86 - win-x86 - - - - - generic-linux - - - linux - - - - - io.netty - netty-transport-native-epoll - ${netty.version} - linux-${netty.natives.epoll} - - - - - not-generic-linux - - - !linux - - - - - io.netty - netty-transport-native-epoll - ${netty.version} - provided - - - - - - - UTF-8 - de.bixilon.minosoft.Minosoft - 11 - ${maven.compiler.source} - 19 - 1.7.20 - 3.3.2-SNAPSHOT - 12.3.1 - 4.1.82.Final - 2.13.4 - - - - - - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - - - - - - - - - org.lwjgl - lwjgl-bom - ${lwjgl.version} - import - pom - - - - - - - - org.slf4j - slf4j-api - 2.0.3 - - - com.google.guava - guava - 31.1-jre - - - dnsjava - dnsjava - 3.5.1 - - - org.openjfx - javafx-controls - ${javafx.version} - ${javafx.natives} - - - org.openjfx - javafx-fxml - ${javafx.version} - ${javafx.natives} - - - org.xeustechnologies - jcl-core - 2.8 - - - net.sourceforge.argparse4j - argparse4j - 0.9.0 - - - org.jline - jline - 3.21.0 - - - org.jetbrains.kotlin - kotlin-test - ${kotlin.version} - test - - - de.bixilon - jiibles - 1.1.1 - - - org.lwjgl - lwjgl - ${lwjgl.version} - - - org.lwjgl - lwjgl-glfw - ${lwjgl.version} - - - org.lwjgl - lwjgl-openal - ${lwjgl.version} - - - org.lwjgl - lwjgl-opengl - ${lwjgl.version} - - - org.lwjgl - lwjgl-stb - ${lwjgl.version} - - - org.lwjgl - lwjgl - ${lwjgl.version} - natives-${lwjgl.natives} - - - org.lwjgl - lwjgl-glfw - ${lwjgl.version} - natives-${lwjgl.natives} - - - org.lwjgl - lwjgl-openal - ${lwjgl.version} - natives-${lwjgl.natives} - - - org.lwjgl - lwjgl-opengl - ${lwjgl.version} - natives-${lwjgl.natives} - - - org.lwjgl - lwjgl-stb - ${lwjgl.version} - natives-${lwjgl.natives} - - - org.l33tlabs.twl - pngdecoder - 1.0 - - - de.bixilon - kotlin-glm - 0.9.9.1-6 - - - com.github.oshi - oshi-core - 6.2.2 - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - ${kotlin.version} - - - org.jetbrains.kotlin - kotlin-reflect - ${kotlin.version} - - - com.github.luben - zstd-jni - 1.5.2-3 - ${zstd.natives} - - - de.bixilon - mbf-kotlin - 0.2.1 - - - com.github.luben - zstd-jni - - - - - org.kordamp.ikonli - ikonli-fontawesome5-pack - ${ikonli.version} - - - org.kordamp.ikonli - ikonli-javafx - ${ikonli.version} - - - org.apache.commons - commons-lang3 - 3.12.0 - - - com.fasterxml.jackson.module - jackson-module-kotlin - ${jackson.version} - - - com.fasterxml.jackson.datatype - jackson-datatype-jsr310 - ${jackson.version} - - - org.kamranzafar - jtar - 2.3 - - - org.reflections - reflections - 0.10.2 - - - de.bixilon.javafx - javafx-svg - 0.3 - - - de.bixilon - kutil - 1.17 - - - io.netty - netty-buffer - ${netty.version} - - - io.netty - netty-handler - ${netty.version} - - - it.unimi.dsi - fastutil-core - 8.5.9 - - - org.junit.jupiter - junit-jupiter-api - 5.9.1 - test - - - diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 000000000..f4a79c40f --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,21 @@ +/* + * Minosoft + * Copyright (C) 2020-2022 Moritz Zwerger + * + * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with this program. If not, see . + * + * This software is not affiliated with Mojang AB, the original developer of Minecraft. + */ + +rootProject.name = "minosoft" + +pluginManagement { + repositories { + gradlePluginPortal() + mavenCentral() + } +}