Files
celeritas/common/build.gradle
embeddedt 31ca03e1c4 Refactor GUI & options logic to be mostly common
Squashed commit of the following:

commit 99a6a0623d99bd604325504422eb646470c90319
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Sat Aug 23 21:06:58 2025 -0400

    Fix 1.18

commit b026c9d0ac931dfb7d7e7fb6ff69acc456781115
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Sat Aug 23 20:44:39 2025 -0400

    Fixes for 1.21.1

commit 8933cf77477a22297cbb7327482848be390d2caf
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Sat Aug 23 20:37:13 2025 -0400

    Fix wrong render method being called

commit e927d0ac8a6588da7c747d7b1ccefabca3d23f46
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Sat Aug 23 20:25:31 2025 -0400

    Fix some keys on 1.12

commit 0bb83066bb
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Thu Aug 21 22:34:27 2025 -0400

    [vintage] use common GUI framework

commit 493fae7bf4
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Thu Aug 21 21:46:51 2025 -0400

    Move more GUI code to common

commit 037b391a09
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Thu Aug 21 21:37:08 2025 -0400

    Move a lot of GUI code to common

commit 1d31630a25
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Thu Aug 21 21:17:11 2025 -0400

    More refactors

commit 9450adb90a
Author: embeddedt <42941056+embeddedt@users.noreply.github.com>
Date:   Thu Aug 21 20:56:56 2025 -0400

    Begin refactoring GUI
2025-08-23 21:07:17 -04:00

87 lines
2.2 KiB
Groovy

plugins {
id 'java-library'
id 'maven-publish'
}
group = "org.embeddedt.celeritas"
version = rootProject.version
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
def lwjglVersion = "3.3.1"
def lwjglNatives = "natives-linux"
implementation(platform("org.lwjgl:lwjgl-bom:$lwjglVersion"))
implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-opengl"
runtimeOnly(group: "org.lwjgl", name: "lwjgl", classifier: lwjglNatives)
runtimeOnly(group: "org.lwjgl", name: "lwjgl-opengl", classifier: lwjglNatives)
implementation "org.joml:joml:1.10.5"
implementation "it.unimi.dsi:fastutil:7.1.0"
implementation "org.apache.logging.log4j:log4j-api:2.0-beta9"
compileOnly "org.jetbrains:annotations:24.1.0"
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("org.ow2.asm:asm:9.6")
implementation("org.ow2.asm:asm-tree:9.6")
implementation("org.ow2.asm:asm-util:9.6")
implementation "com.google.code.gson:gson:2.10.1"
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test', Test) {
useJUnitPlatform()
maxHeapSize = '1G'
testLogging {
events "passed"
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId 'celeritas-common'
from components.java
}
}
repositories {
maven {
name = "taumcRepository"
url = uri("https://maven.taumc.org/releases")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_SECRET")
}
authentication {
basic(BasicAuthentication)
}
}
}
}
tasks.withType(Jar).configureEach {
from(rootProject.file("COPYING"))
from(rootProject.file("COPYING.LESSER"))
}
jar {
manifest {
attributes([
"Lwjgl3ify-Aware": "true"
])
}
}